Results 1 to 3 of 3

Thread: [RESOLVED] Combobox Dropdown Event

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2010
    Posts
    229

    Resolved [RESOLVED] Combobox Dropdown Event

    HI I am Working VB.NET08.
    I am working on the Combobox.
    I was bind the data from Access database to Combobox in the DropDown Event.
    Now whn i click the Dropdown for selecting value , for one click the dropdown list is not showing. Some System.... is coming within few milliseconds it went out for second click the list is coming.

    This happens only whn i click the combobox first time in the form.
    After second time onwards the dropdown list coming properly.

    I don`t know wht happening... Plz any Idea...
    Thanks

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Combobox Dropdown Event

    Why are you binding in the DropDown event? Why aren't you binding when the form loads? If you wait until the user actually displays the drop-down list to populate the drop-down list then obviously it will be empty initially. There are reasons to do this but, unless you have a good one, you should pre-populate the list.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    May 2010
    Posts
    229

    Re: Combobox Dropdown Event

    Thank you Jm I binded controls on the Form load event .
    Now the display values correctly.
    Thanks

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