Hide ID column in ListView control
I'm binding ListView control to DataTable. The DataTable have a column named ProductID. Is there any way to hide this column, because I'm gonna need it's value later? ...
I'm binding ListView control to DataTable. The DataTable have a column named ProductID. Is there any way to hide this column, because I'm gonna need it's value later? ...
hi does anyone know how to maximize a form from another formin c# i tried the code below but it wont work Form1 form1 = new Form1(); form1.WindowState = FormWindowState.Maximized; any ideas ...
well i have 2 radio buttons and each one exist in a different groupbox. they they act as they are not related to each other. but i want them to be as they exist in a same form. is there a method to 2 that ? i can do that by handling the the click and unchek the other checkbox but i was wondering if there is a better way? thanks Update: ...
well i have a listbox with some items inside. i want to detect a double click on an item. currently the method i am using have a problem that if a user double click on an empty spot the currently selected item is signaled as double clicked. Update: Please note that this question is not as easy as it seems at first. also note that Timw...
What is the datatype for Color in MSAccess? ...
I have a sample C# windows form here. I need to show the notification icon's context menu when it is left-mouse clicked. I have marked where to write the needed codes as below: private void button1_Click(object sender, EventArgs e) { //Need to show the context menu here } Please help! ...
It's easy to add a rich text editor in web programming, lots of options, while when I turn to do this in WinForm, I have searched for hours, with no good solution. Any one can help to recommend one? Thanks in advance! ...
Hey, I think about create ObservableCollection of controls (Label and Textbox) and add it to TabPage. If text in this textbox will change by user, text parameter in my collection will change ? Please help :) ...
Hi, I am using an picturebox to show the wait gif animation when user presses 'log in' button in my C# form. I added the gif image to the picturebox and set visibility to false. When user clicks on the login button i set the visibility of the picturebox to true. the problem is that gif animation does not appear if set the visible proper...
I have a checkedlistbox that's bound to a generic list of custom type. When I remove other items on the list, the display is okay, but when I remove the last item on the list, the list shows up w/ the type name instead of the displayname. _selResolutions.RemoveAt(selIndex); cklResolutions.DataSource = null; cklResolutions.BeginUpdate();...
Hi, I have a windows form app. The main form has a textbox, and a button to launch another form. When the other form is launched, both forms are on screen (but the launched form is modal). The child form has a textbox and button, and when the button is pressed, I want the textbox on the main form (the parent) to be updated with the valu...
I have an application that runs on my computer and the computers of my colleagues at work. I sometimes push out updates for this application and want the application to detect this automatically (perhaps via database) and shut down and re-open to install the new updates. I know how I can close an application, but don't know how I can ...
Hi I have a Crystal Report set up to run with my windows forms application. I am passing a string to the SelectionFormula of the report. What I am doing is: I have 3 tables - StockFile, BranchFile and Supplier A Stock item is created when that item is added to branch stock, an item can be moved around branches until it is sold, so c...
I have a method Modify which doing a operation ClientModify inside. public bool Modify() { bool retval = false; retval = Spa.ClientModify(col); } Here what i wanted is the ClientModify should perform only after three events completed in the eventhandler "ServerEvents" otherwise it should return(retval ) false .How can i do t...
Has anybody had any luck getting NUnitForms working in a 64-bit environment? I'm particularly interested in Windows Server 2003 x64. Whenever I try to run my unit tests I get the following error: System.ComponentModel.Win32Exception : The parameter is incorrect This seems to be related to the MouseController.Press() method. ...
I have a winform project with a splash form (as described in the first answer of this question : http://stackoverflow.com/questions/510765/c-winforms-startup-splash-form-not-hiding). When I use this splashform the mainform loose the focus. I want to bring it to the front as soon as I close the splashform with Form.BringToFront() but it ...
So I have a collection that I have in a listbox right now, which displays each item in the collection. I want to turn the listbox into a gridview, so I can add checkboxes and other drop downs. I am unable to find a tutorial that explains how to do this. For the example my collection has 2 items, each item has multiple columns. [0] ...
I've been asked to investigate the possibility of using a single .csproj file to run both interactive and unit tests. I've been able to get the windows forms project changed over to run msTests but now I'm not finding a way to run the windows forms/interactive side. Is there a way to do this? ...
So, maybe this is a bad design; I don't know. But say I have a DataTable with a column that holds int values; these values are in fact meant to represent some enum type that I have in my project. What I'd like to do is have a DataGridView bound to this table and have the column display the name of the enum rather than the integer value ...
In the code below, the combo box named "ConnectionType" shows the selected item, but one cannot change the selected item (it seems like there is only one item in the combo box). If I comment out the line typeCol.DataPropertyName = "ConnectionTypeName"; then the combo box is selectable, but the correct item is not selected, of course....