Answer Questions
Paul_G DataGridView DisplayIndex doesn't keep positions
I have a problem with the DataGridView. I place a DGV on a form and add some databound columns. Then I add some non-databound colums. Then I re-order the columns in the column designer using the up-down buttons. Everything ok so far. But when I run the application, the order of the columns are shuffled. How can this be The only workaround so far, has been to set the DisplayIndex of each column in code. But I would expect the designed colum ...Show All
jrcran UPDATE: MDI-List Property bug??
Hello all, i"ve written an application in visual Studio .Net (visual basic) but encounterd some sort of bug... Please look into the following: Situation ------------------------------------------------ .net framework 1.1 studio.net -> visualbasic Main-form contains: Mdi-container property = true menu-item ...Show All
yandrea font color changing
Now I need to change the color of a font using a line of code, I've tried several combinations but have had no success. Thanks again I know that but how do you change it using code button1.ForeColor = Color .Red; any control has this property The font itself don't have a color property but any control ForeColor property sets the font color. You saved my *** again That's somewhat weird. Label contro ...Show All
Kevin Collins BaseDirectory is not what I expected
so I am loading my app from http://localhost/foo/ when I run this: string appbase = AppDomain.CurrentDomain.BaseDirectory; it returns http://localhost and not http://localhost/foo as I would expect if this is the expected behavior, then how can I dynamically get http://localhost/foo/ po ...Show All
Vijey Ashok how to bind 2 columns to same lookup table with combobox?
Following seems NOT to work but maybe i found the solution (see below) this.p1ComboBox.DataSource = personView; this.p1ComboBox.DisplayMember = "lastname"; this.p1ComboBox.ValueMember = "pid"; & ...Show All
bvanderw Max controls in controls collection of panel?
I am adding UserControls to a Panel at runtime based on the Datarows in my DataSet. When the count gets to 357, the program generates an exception of "'System.ComponentModel.Win32Exception' occurred in system.windows.forms.dll, Additional information: Error creating&n ...Show All
ajay.andrews Setting DataGridViewComboBoxCell.Value gives DataError
Hi, I'll try to get this all in once post, but I'm sure there will be followups for more detail. I have a BindingList<T> bound to a BindingSource and then bound to a DataGridViewComboBoxColumn. There are Business Objects in the BindingList, and they all have public properties which I wish to display. The DisplayMember and ValueMember properties are all set appropriately, and do what you'd expect. Since using the Designer is&nbs ...Show All
mhnyborg Row Selection in Datagrid
IN vb.net Could some one please let me know the event to select the row of the datagrid If user click on any cell for eg I click on the 2nd cell in the 3rd row it should select the 3rd row Thanks I think may be w ...Show All
IvanLieb PropertyGrid Language
Hi, I have a PropertyGrid that its being populated dinamically with Form properties. The problem is that I need those properties to be displayed in Portuguese and not in English. Is this possible I've seen ways to change the language of propertygrids, but those propertygrids were populated with classes defined by the developer. Thanks in advance ...Show All
James CACN How to disable the Xp Visual Style for a control ?
Hi, I would like to know if it is possible to disable the Xp Visual style for a specific control I have a progressbar in my C# Winform application, and i can't use style = continuous. The only way i found to remove the Xp visual style is this sample: [Private Declare Function SetWindowTheme Lib "uxtheme.dll" ( _ ByVal hWnd As Long, ByVal pszSubAppName As Long, ByVal pszSubIdList ...Show All
max909 Losing events in MDI forms (1.0 vs 1.1 framework difference)
I have an MDI parent form with two mdi children. Each MDI child has two textboxes on it. On version 1.0 of the framework, if you switch from one form to the other and then tab to the next textbox, a 'LEAVE' event is ...Show All
lbalogh Getting a IVsRunningDocumentTable error when tring to add webservice
Hello. I have the Visual C# Express Beta2 and when i try to add a webservice to my project i get a Microsoft.VisualStudio.Interop.IVsRunningDocumentTable must be installed for this operation to succed Ensure that this service is available Anybody know what could be wrong, is there something that i need to install . I got the same problem when I try to add reference from one of my Web Services (loc ...Show All
RodTorres DataBinding to ComboBox, setting to -1 index
I am making a database interface with VS 2003. I use a bunch of comboboxes so that the user can select from a list of items stored in the database. For example, a user chooses a Tester for a particular test, the list of Testers is in a seperate table. I am generating the combobox list with databinding, but I want to have it default to -1 index, just like a combobox does when you manually add items. I have tried setting th ...Show All
RJButler Limiting borders on MDI Forms
Hello! I have a MDI Parent Form with a Menu Strip. When I activate the child form, I can move it beyond the border of the parent form (creating a scroll on it). I can also move the child's form header to the back of the parent’s form menu strip. Is there any way to limit the area where the user can move the child form inside the parent form In my case the child shouldnt exceed the border of the parent form or be moved to the back of the ...Show All
BradWest Can I bind DataGridView to my objects?
Hi, Are there any scenarios that describe how to bind a DataGridView to your own Objects I've been to this useful website and there are no examples for this scenario: http://msdn2.microsoft.com/library/k39d6s23(en-us,vs.80).aspx) I have a class that represents my data record - say it's a 'Person' object with name, phone, address etc - I want these objects to be represented as one row in a data grid. If possible, I also want to bind them to t ...Show All
