In a Windows Form Application, I have a ComboBox1 which gets initialized in InitializeComponent() function. I add the values into it in a different function.
snippet:
public form1()
{
InitializeComponent();
addDataToDropDowns();
}
The problem I have is that, the rows loaded into the ComboBox1 have many characters(/length) and are not to be seen completely width wise.
Is it possible to have a horizontal scrollbar built into the ComboBox1 so that I can see the hidden part of the row too…??
Any ideas/inputs will be appreciated!
Thanks,
Ivar
http://www.codeproject.com/KB/combobox/ComboBoxAutoWidth.aspx
That has code sample that shows how to capture the event and widen the box.
OR, you could have it as a seperate function you manually call, like this:
http://weblogs.asp.net/eporter/archive/2004/09/27/234773.aspx