CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 10 of 10
  1. #1
    Join Date
    Apr 2006
    Location
    Kolkata, India
    Posts
    278

    Post DropDown style ListBox

    Dear Buddies,
    Hi.!
    After a long time I logged in...Anyway, I searched the net for ListBox dropdown style.
    This means, that when I click the ListBox all items will be shown in dropped down style.,as a ComboBox does.
    But unfortunately I could not find any website where it is mentioned.!!1

    Pls help Guys.

    Thanks
    Rahul

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,395

    Re: DropDown style ListBox

    1. Why don't you want to use combobox?
    2. ListBox does not have "dropdown style". Combobox can have it.
    3. How is your "listbox" supposed to look like in its" norma"l state and in a "dropped down" state?
    Victor Nijegorodov

  3. #3
    Join Date
    Jul 2005
    Posts
    1,083

    Re: DropDown style ListBox

    Also... you could use a PopUp Menu
    JG


    ... If your problem is fixed don't forget to mark your threads as resolved using the Thread Tools menu ...

  4. #4
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,283

    Re: DropDown style ListBox

    The ComboBox has various styles. Have a look into the DropDown Style property. That should be sufficient.

    Do not reinvent the wheel.

  5. #5
    Join Date
    Apr 2006
    Location
    Kolkata, India
    Posts
    278

    Re: DropDown style ListBox

    Thanks Buddies,

    My Listbox will contain only Numbers...
    Starting with 1 till 10 in step 1 format.
    The up arrow will popup to show above 5(That is 6,7,8,9,10) and downarrow will show below 5(That is 1,2,3,4,5) , so the user can select any numbers popup or popdown by mouse.
    Please dont laugh at my ignorance.

    Thanks
    Rahul

  6. #6
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,395

    Re: DropDown style ListBox

    Are you sure the users of your program will love such a non-standard UI?
    Victor Nijegorodov

  7. #7
    Join Date
    Apr 2006
    Location
    Kolkata, India
    Posts
    278

    Re: DropDown style ListBox

    Dear VictorN,

    How do you guess that it will be a non-standard UI?
    I have seen in other programs apart from VB6 this list box pops up with in descending order from 10 to 1 when UP arrow is clicked.
    Similarly,when down arrow is clicked all numbers from 1 to 10 is dropped down !! how to do it?
    Thanks
    Rahul

  8. #8
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,395

    Re: DropDown style ListBox

    Quote Originally Posted by dsrahul View Post
    I have seen in other programs apart from VB6 this list box pops up with in descending order from 10 to 1 when UP arrow is clicked.
    Similarly,when down arrow is clicked all numbers from 1 to 10 is dropped down !! how to do it?
    Start one of these "other programs", then start SPY++ and search for the window class/styles of "this list box" as well as for the messages sent to/from this control.
    Victor Nijegorodov

  9. #9
    Join Date
    Apr 2006
    Location
    Kolkata, India
    Posts
    278

    Re: DropDown style ListBox

    Great Vic,
    You Are a master guide. Thank you. I used James Bond source code explorer and it gave me the code to do it. I purchased jbsce. But to help others I would suggest Sherlock API decoder.

    Thanks.

  10. #10
    Join Date
    Apr 2006
    Location
    Kolkata, India
    Posts
    278

    Resolved Re: DropDown style ListBox

    There are many software reverse engineering things on the net unbelievable. There are programmers who just do magic with existing facilities. Victorian is a genius. Wow. Thank you victor.

Tags for this Thread

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