R
ray well
i'm loading a combobox from a database in code, by setting the the DataSouce
to a table, and the DisplayMember to a field.
it loads the first row into the text area of the combobox automatically. i
don't want that.
i used to clear it up by setting ComboBox1.Text="", after loading it.
but i had to put the combobox on a tab page of a tab control.
ComboBox1.Text="" works only if the tab page has the focus when that code
executs! how bizzare. i have to load a few comboboxes living on separate tab
pages, and it would be unisightly to change the focus back and forth while
the user is on a specific page.
how can i
1) either load a combobox in code without setting the text area,
2) or clearing the text area of a combobox on a tab page without the page
having the focus
thanks
ray
to a table, and the DisplayMember to a field.
it loads the first row into the text area of the combobox automatically. i
don't want that.
i used to clear it up by setting ComboBox1.Text="", after loading it.
but i had to put the combobox on a tab page of a tab control.
ComboBox1.Text="" works only if the tab page has the focus when that code
executs! how bizzare. i have to load a few comboboxes living on separate tab
pages, and it would be unisightly to change the focus back and forth while
the user is on a specific page.
how can i
1) either load a combobox in code without setting the text area,
2) or clearing the text area of a combobox on a tab page without the page
having the focus
thanks
ray