CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Aug 1999
    Posts
    2

    Cobo box--moving dropdown box

    I'd like to be able to move the dropdown portion of a combo box. Since I resize the dropdown width by sending the CB_SETDROPPEDWIDTH message to the control, I now need to be able to tell if the dropdown extends the border of my main window. In which case, I want to position the dropdown to the left of the combo. I've tried getting a window handle to it, but to no avail. Any ideas?


  2. #2
    Join Date
    Jul 1999
    Posts
    20

    Re: Cobo box--moving dropdown box

    u really can't move the postition of the dropdown.
    u can get that effect by using 2 controls say a text box and list box. An activex control can be created for this

    rgds
    Praba



  3. #3
    Join Date
    Mar 2009
    Posts
    1

    Thumbs up Re: Cobo box--moving dropdown box

    Combo boxes are a very useful feature of Access and will enhance the look and feel of your forms.

    Let's take an example of countries

    Your form may require name, address and country details. If for example you wanted to record the United Kingdom. The United Kingdom can be known by a few other names. For example UK, England, Great Britain and Britain. Now if you entered a different country name each time you wanted to use the United Kingdom this can be problematic for a number of reasons.

    If you wanted to search on how many customers you have in the UK you would get a misleading result. Your query may bring up all customers in the UK if you enter this as criteria for searching, but what about records that have been entered as 'England'?

    The same problem would occur with the USA, US, America, United States of America

    There is also the possibility of spelling a country incorrectly. If you have one record with Brazil and another with Brasil then when you come to search you will get the wrong results.

    So how can we get around this problem?

    The answer is to use a dropdown box or what is known in Microsoft Access as a combo box. This will also speed up data entry because you will be selecting an item from a list and not typing it in.

    boxyourstuff.com

  4. #4
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Cobo box--moving dropdown box

    Quote Originally Posted by Barkri12 View Post
    Combo boxes are a very useful feature of Access and will enhance the look and feel of your forms.

    boxyourstuff.com
    Who said anything about Access? He mentioned DDCB in the title, and what is your link for?
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  5. #5
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,362

    Re: Cobo box--moving dropdown box

    LOL 10 year old thread to boot

  6. #6
    Join Date
    Jul 2006
    Location
    Germany
    Posts
    3,725

    Re: Cobo box--moving dropdown box

    Not the first one...

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

Featured