Results 1 to 3 of 3

Thread: [2005] ComboBox DropdownStyle

  1. #1

    Thread Starter
    Member
    Join Date
    May 2008
    Posts
    59

    [2005] ComboBox DropdownStyle

    Hi All, I need a help regarding my combobox problem. I want this to be in dropdownlist style always but my problem is it does't accept the value that i need to assign in the run mode, in fact it will always go to index 0.

  2. #2
    Pro Grammar chris128's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    7,604

    Re: [2005] ComboBox DropdownStyle

    Well if you want it to select a different index then use the SelectedIndex property like so:
    vb Code:
    1. MyComboBox.SelectedIndex = 3
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


  3. #3
    PowerPoster sparrow1's Avatar
    Join Date
    May 2005
    Location
    Globetrotter
    Posts
    2,820

    Re: [2005] ComboBox DropdownStyle

    Quote Originally Posted by jbatman
    Hi All, I need a help regarding my combobox problem. I want this to be in dropdownlist style always but my problem is it does't accept the value that i need to assign in the run mode, in fact it will always go to index 0.
    Hi,

    Go to the properties of your combobox and select MaxDropDownItem = 3,
    then during runtime it will show only 3 items.

    Wkr,

    sparrow1
    Wkr,
    sparrow1

    If I helped you, don't forget to Rate my post. Thank you

    I'm using Visual Studio.Net 2003 and
    2005
    How to learn VB.Net Create setup with VB 2005 Drawing for beginners VB.Net Tutorials GDI+ Tutorials
    Video's for beginners

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