-
- Add Icon to shortcuts
by Wuschba
- 0 Replies
- Last post
by Wuschba
- Hi. I want to deploy a simple C#-project, consiting just of 1 exe-file. I added a Setup-Project and shortcuts from the user's desktop and user's programs menu. This works fine, but the shortcuts created don't have the same icon as the .exe. Whats the way to do so I could add a .ico-file to the applications-folder and then set the properties -> icon of the shortcuts to this. But this copies the
-
- Setting existing DataGridViewComboBoxColumn DataSource at runtime
by Yogi
- 2 Replies
- Last post
by Yogi
- I have a datagridview bound to a datasource which contains a datagridviewcomboboxcolumn. I need code to set the Datasource, DisplayMember and ValueMember properties at runtime. Below is code that doesn't work:
Dim cbobox As DataGridViewComboBoxColumn()
cbobox = CType (Client_PhoneDataGridView1.Columns( "Phone_Type" ), DataGridViewComboBoxColumn)
With cbobox
.DataSo
-
- Problem with the control ListBox
by Kidd Liu
- 2 Replies
- Last post
by Kidd Liu
- Working on a project which need to record some information from the user input, so i chose ListBox to store and show the result. Here comes the problem, i set the select mode to MultiSimple, when i choose some information, 3 items for example, then mouseclick the blank area of the ListBox, the last item i selected which is highlighted also , changed the select state to unselected, then another cli
-
- Data Binding Question?
by C#Newbie01
- 4 Replies
- Last post
by Rong-Chun Zhang - MSFT
- I believe this would be a Data Binding Question. I have read up on it a lot, but have not been able to find an answer to my question (Though I see programs that work like I would like mine to, so I know it's possible). I have a dataGridView, which loads some information from my Access 2007 Database. The dataGridView is on my main form and works great thus far. I also have another form with a bunc
-
- testing connection string while setup
by ronlahav
- 2 Replies
- Last post
by PhilWilson
- Dear all
I build an installation for my project binaries.
How can i test my connection string after the guy who install my program had input the connection string parameters.....
i have already created the appropiate form in the setup project wizard to collect data from the Form itself - but i dont know how to manipulate the parameters from the form and how to access them.
can som
-
- connecting to a dbase and fill to a Datagrid
by rkherath
- 1 Replies
- Last post
by alpaslan_aykovan
- I am trying to connect to a dbase file and fil its content to a dataGrid . But i get an error saying
'Z:/aku/Plu' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.
My coding compiles with no error this is a run time error
Plz tell me where i have gone wrong
OleDbConnection con = new
-
- windows
by BrenterX
- 2 Replies
- Last post
by BrenterX
- When I have one window open and I open another it always opens small, even if I drag it bigger.
Please help!
-
- Connecting to SQL Server via SQL Server Authentication
by Basani
- 4 Replies
- Last post
by Ken Tucker
- I have a username and password (SQL Server Authentication) to connect to SQL Server from a WinForm application.
Can anybody tell what are the best practices to store the username and password in a WinForm application
Would there be any problem if I hard-code it in the application
Thanks Basani
-
- bindingsource.addnew and .haschanges
by Mark Dahl
- 5 Replies
- Last post
by never.1981.m.ph
- I have a form that loads in a new state, but the user may decide not to add a new row, but will want to edit an existing row.
When the form opens with no ID for the form, my code calls:
BindingSource.AddNew()
Even if no changes are made to the form, calling:
DirectCast (BindingSource.DataSource, DataSet).HasChanges()
This will always come up as having changed. Is there any w
-
- Can not bind the visible property of controls to class
by Williamq
- 4 Replies
- Last post
by Williamq
- Hi
Just trying to bind the "Visible" property of a windows label control to my class. No luck. The control is always invisible no matter the bool type property of my object is true or false. Tried "Enabled" property of the control and it's work great.
Any idea
Thanks
-
- DataGridView Unbound Row
by Greg Rotman
- 3 Replies
- Last post
by Gavin Jin - MSFT
- I would like to mimic the functionality of either the Messages View or the Task > By Category view found in MS Outlook 2003. I¡¯ve created an object that inherits from DataGridViewRow that can draw itself correctly within the DataGridView however when DataGridView is bound to any data source I haven't found a way to add my custom rows to the DataGridView.
My plan of attack was to sort a Data
-
- ClickOnce application deployment with username/password
by Subbu
- 1 Replies
- Last post
by dhenry
- Hi, I have deployed and published a clickonce application to my company's server. The publish.htm webpage is protected and requires a username/password. When I enter the required credentials and get to the webpage, and click the "Install button" to install the clickonce app, the installation fails with error code : (401) Unathourized. This is due to the username/password lock. How can I
-
- Ignoring Mouse_Down events in C#
by
- 2 Replies
- Last post
by AJama
- I have TreeView on a form with a context menu strip. I want the menustrip not to show when a user clicks an area outside the treenode lists(blank area of the TreeView). I am now handling Mouse_down event to disable the menu but I am seeing a slight blink and I think there must be a better way to handle this. Something like Key_Press e.Handled statement.
private void TV_MouseUp( object
-
- DataGridView UserDeletedRow event does not always fire
by philipsh
- 14 Replies
- Last post
by Tamirro
- If DataGridView has only one row the UserDeletedRow event does not fire! We have two boxes here that confirm this. Can anyone else
This isn't by design is it
VS2005
-
- How can i make a slider menu such as visual studio's toolbox or properties window?
by CagriYuceturk
- 2 Replies
- Last post
by Westor
- How can i make a slider menu such as visual studio's toolbox or properties window Anyone know which control do this for me
thanks a lot..
-
- How to debug a window handle leak?
by Marijn Ros
- 2 Replies
- Last post
by nobugz
- Hi,
We use a custom-made GUI framework, based on the .NET windows forms and two third-party components (one binary, one source code). Our application is leaking between 2 and 180 GDI handles per screen, which means that we run out of handles after about half an hour.
The solution is obviously, to dispose all disposable objects, but my problem is to find the ones we do not yet dispose.
-
- DataGridView slow refresh
by kellis
- 8 Replies
- Last post
by kellis
- I have a DataGridView that I am using to display attributes of messages in MSMQ. To do this, I populate a DataTable and set the DataSource of the DataGridView to the DataTable. The problem is that refreshing takes a long time (i.e. minutes) if there are a lot of messages in the queue (greater than 50000 or so). Is there a faster way of refreshing
I can run the refresh in a separate thread s
-
- Hai Friends... I have to generate comboBoxes for every new row in Datagrid in WINDOWS FORM.Plz Help me.
by boyapati
- 4 Replies
- Last post
by boyapati
- Hai Friends,
I have a DataGrid on a Windows Form. DataGrid Consists of 4 columns, named fieldname,operator,value,choice respectively.
I have add a controls ComboBox for every new row in 2nd column and 4th column and TextBox in 3rd Column.
based on user wish(no of rows) has to be generated in datagrid not morethan.
I am able to add control in the first column in first row onl
-
- async call to web service or BackGroundWorker
by shachar8
- 1 Replies
- Last post
by BinaryCoder
- hi all.
in my winform app i have 2 forms, frmMain and frmExtraData.
when frmMain Loades, i want to load the data for frmExtraData so that when the user will open it, the form will show data imedietly.
** frmExtraData is opend all the time
so, my options are: in the frmMain_Load , start a backgroundWorker, to get the data for FrmExtraData, or run an async call to my webservice, and
-
- Cannot construct GrayScale Bitmaps
by Edsger
- 5 Replies
- Last post
by nobugz
- Problem: When I create a grayscale bitmap and assign the bitmap to a picturebox the application crashes when the picturebox is drawn.
Remarks: The application crashes only when I create a bitmap with the PixelFormat . Format16bppGrayScale, and I use the Bitmap Constructor that takes a IntPtr with Bitmap data.
Below is shown C# code to reproduce the error (Note that the commented
-
- Windows Service deployment project not uninstalling
by Kirk D. Quinbar
- 6 Replies
- Last post
by Kirk D. Quinbar
- Have you ever used a .net deployment project to install a windows service If so, then i ran into an issue recently that maybe you could shed some light on . I am sure I probably did something wrong, but I am experiencing something weird and am not sure if it has something to do with the way the WindowServiceInstaller class was created or if i did something wrong in my deployment project.
-
- C # maskedTextBox
by Kilogn
- 3 Replies
- Last post
by Zhi-Xin Ye - MSFT
- hello ,
I am new to C#, and i am havin a problem,
I have several masked textboxes in a format such as this one " 00.#"
so the user can only enter numerical values such as 00.0 , 30.0 , 35.4, etc...
i will be sending the values to a microcontroller to store these values through a serial port..
the formatting os on such a way tha it will take something
-
- print string by multiple printers
by abdrabaa
- 3 Replies
- Last post
by abdrabaa
- Hi all,
I have multiple printer let say A,B,C and D and I want, when I click a button ( btnClick ),
To print string AA ( strAA ) by printer A and string BB ( strBB ) by printer B, C and D
Pls can any body provide me the code
-
- Date Picker Value / Text
by Poy
- 3 Replies
- Last post
by Rong-Chun Zhang - MSFT
- Hi All - i have been looking around but seems like its a tricky topic..
i am using a DatePicker and i just want the value / text from it to use in another textbox.
i have tried:
Dim instance As DateTimePicker
Dim value As Datetime
value = instance.Value
doesn't work though..
any ideas
-
- Disappearing BindingNavigator - again
by Marek Zgadzaj
- 5 Replies
- Last post
by Marek Zgadzaj
- I have a problem with disappearing BindingNavigator. (VS 2005 Prof. C#). I added a button to BN and after this step BN disappeared. The free container space can be seen in the place where BN was before. To bring the BN from the abyss I need to choice it in properties panel or click its name on form designer. But when I click another control BN disappears. All the rest of controls are visible. I ca