Combobox driving me nuts !!!
-
Hi Guys, I have a combobox on a form. As soon as I click on the combobox I am unable to get out of it. The combobox shows me all the data it should, but I am unable to exit the control once selected. I can select any value, and do it any number of times however any attempt to close the form, click on another control in the form, etc fails. The only way out is to stop the debugger. No errors are issued. I've spent an entire day tryin to find the problem and can't. I'd appreciate any ideas please. The datasource is a very simple dataset (dsCorrespondenceMethods) containing a single table (CorrespondenceMethods). This table contains only 2 columns - an ID column and a description column. The table just contains a list of methods of corresponding such as "Email", "Fax", "Post", etc. I've put it into a table just to make any future changes simple and not require recoding of the app. Thanks in advance Mark
-
Hi Guys, I have a combobox on a form. As soon as I click on the combobox I am unable to get out of it. The combobox shows me all the data it should, but I am unable to exit the control once selected. I can select any value, and do it any number of times however any attempt to close the form, click on another control in the form, etc fails. The only way out is to stop the debugger. No errors are issued. I've spent an entire day tryin to find the problem and can't. I'd appreciate any ideas please. The datasource is a very simple dataset (dsCorrespondenceMethods) containing a single table (CorrespondenceMethods). This table contains only 2 columns - an ID column and a description column. The table just contains a list of methods of corresponding such as "Email", "Fax", "Post", etc. I've put it into a table just to make any future changes simple and not require recoding of the app. Thanks in advance Mark
Are you doing any validation anywhere on the form?? I can't replicate the problem, nor can I find any occurances of it.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
Are you doing any validation anywhere on the form?? I can't replicate the problem, nor can I find any occurances of it.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007Thanks for responding Dave. No validation yet. I've put together this form and not being experienced it has taken me days so I'm trying not to start again. The source is a simple DS/table. It saves back to another DS for the client. IF I remove the "Selected Value" from the combobox (so it has nowhere to save back to) the problem still occurs. This means the only thing on the combo box is the bound items to display the list. In an attempt to replicate the behaviour and see if it was the dataset, I created a new form and put a combobox and a textbox onto the form. All worked nicely......so I am still lost...
-
Thanks for responding Dave. No validation yet. I've put together this form and not being experienced it has taken me days so I'm trying not to start again. The source is a simple DS/table. It saves back to another DS for the client. IF I remove the "Selected Value" from the combobox (so it has nowhere to save back to) the problem still occurs. This means the only thing on the combo box is the bound items to display the list. In an attempt to replicate the behaviour and see if it was the dataset, I created a new form and put a combobox and a textbox onto the form. All worked nicely......so I am still lost...
Since you've been tinkering with this for so long, it sounds like there might be a screw up in the designer generated code. I'd recommend removing that ComboBox and re-adding a new one, setting it's properties to what you need, and see what happens.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
Since you've been tinkering with this for so long, it sounds like there might be a screw up in the designer generated code. I'd recommend removing that ComboBox and re-adding a new one, setting it's properties to what you need, and see what happens.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007Good to see we are thinking on the same lines. I already tried it after I responded last, and it resolved the problem with one of the combo boxes but not the second one I am having problems with....but at least it is a start. Many thanks for your help. MArk