Results 1 to 3 of 3

Thread: Combobox Handling Problem

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2004
    Posts
    9

    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

  2. #2
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263
    Nobody comes into General Developer Forum...

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

  3. #3
    Big D Danial's Avatar
    Join Date
    Jul 2000
    Location
    ASP.Net Forum
    Posts
    2,877

    Re: Combobox Handling Problem

    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...
    [VBF RSS Feed]

    There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.

    If I have been helpful, Please Rate my Post. Thanks.

    This post was powered by :

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width