Results 1 to 6 of 6

Thread: Combobox repeats its items when cliked twice on it

  1. #1

    Thread Starter
    Registered User
    Join Date
    Aug 2020
    Posts
    1

    Combobox repeats its items when cliked twice on it

    i have making form on which a datagridview column when clicked then it shows twicely its items. means if on first click combobox show 3 items say x, y, z , when we click it 2nd time it shows x,y,z, and x,y,z again

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    32,979

    Re: Combobox repeats its items when cliked twice on it

    Have you tried removing the eels from your hovercraft? If not, there's a link in my signature that should be of help.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    105,477

    Re: Combobox repeats its items when cliked twice on it

    You are obviously executing the code that populates a ComboBox twice but we have no idea what that code is or what prompts it to be executed. Mind-reading is a skill that is not generally strong in the programming community so you'll find that it's generally better to actually explain the issue and provide the relevant information rather than wait for us to absorb it from the universe.

  4. #4
    PowerPoster
    Join Date
    Sep 2005
    Location
    Modesto, Ca.
    Posts
    4,554

    Re: Combobox repeats its items when cliked twice on it

    Yeah, are you saying that when you click the combobox the 2nd time the dropdown list is "xyzxyz" Or are you saying when you click the 2nd time the dropdown list appears and the goes away and then dropsdown again.

    As suggested provide a clearer explanation and all relevant code.

  5. #5
    Hyperactive Member Delaney's Avatar
    Join Date
    Nov 2019
    Location
    Paris, France
    Posts
    346

    Re: Combobox repeats its items when cliked twice on it

    Argh , I tried but it didn't work, sorry can't help much

    Name:  unnamed.gif
Views: 33
Size:  13.2 KB
    The best friend of any programmer is a search engine
    "Don't wish it was easier, wish you were better. Don't wish for less problems, wish for more skills. Don't wish for less challenges, wish for more wisdom" (J. Rohn)

  6. #6
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    23,421

    Re: Combobox repeats its items when cliked twice on it

    You're adding your dgv combobox items in the wrong event...

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