CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2003
    Location
    Chula Vista, CA
    Posts
    51

    CComboBox: change size to fit listbox

    This is probably an easy one for some of you guru's out there.

    I have created a very simple application. It has a single CComBox. After the combo box is created, I read in a list and set the listbox data item of the combobox. After doing this, how do I modify the combo box so that it displays to fit the size of the number of list items?

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396
    The sample you need is (I hope!): A Dynamically-Resized Combo Box
    Victor

  3. #3
    Join Date
    Oct 2003
    Location
    Chula Vista, CA
    Posts
    51
    Thanks Victor. I will give it a shot.

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