Combobox Handling Problem
Hi All,
I have a Problem using Combobox in VB.NET, here is what is actually happening.
I have a Combobox1 , with Dropdownstyle as Dropdown
I have attached a datasource to the Combobox1, and then I have
combobox1.text="--------Select--------"
All this is done in the Form Load.
But I run the Application and the Form is visible the Text which I have given is not visible instead, the First Item in the Combobox is getting Displayed.
I am Unable find any reason or remedy... please help all u .NET experts out there.
Tanmoy
Re: Combobox Handling Problem
Quote:
Originally posted by tanmoymoitra
Hi All,
I have a Problem using Combobox in VB.NET, here is what is actually happening.
I have a Combobox1 , with Dropdownstyle as Dropdown
I have attached a datasource to the Combobox1, and then I have
combobox1.text="--------Select--------"
All this is done in the Form Load.
But I run the Application and the Form is visible the Text which I have given is not visible instead, the First Item in the Combobox is getting Displayed.
I am Unable find any reason or remedy... please help all u .NET experts out there.
Tanmoy
You need to set the property "DropDownStyle" to DropDown. If you choose DropDownList then first Item will be selected...