PDA

Click to See Complete Forum and Search --> : Combobox Handling Problem


tanmoymoitra
Jul 28th, 2004, 08:50 AM
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

szlamany
Jul 28th, 2004, 11:54 AM
Nobody comes into General Developer Forum...

Post your problem in the Visual Basic .Net Forum here...

Danial
Jul 29th, 2004, 02:45 PM
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...