display first item in the Combobox


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: display first item in the Combobox

Hybrid View

  1. #1
    Join Date
    Aug 2004
    Posts
    43,023

    display first item in the Combobox

    [Originally posted by Ram]

    Hi friends,

      I am not able to higlight the first item of the ComboBox . when i display the form the combo box should display the first item in the list.Can anyone help me out with this.

    Thanks in Advance
    Ram

  2. #2
    Join Date
    Aug 2004
    Posts
    43,023

    Re:display first item in the Combobox

    [Originally posted by Coyote]

    This should do it.
    After you add all you items -

    Combo1.ListIndex = 0 ' Display first item in list

    Also, if you don't want the first item to display but want to identify to the user what it is. You can use something like:

    Combo1.Text = "** Select Name **"

    Anyway hope this helps:
    >>Coyote<<


  3. #3
    Join Date
    Aug 2004
    Posts
    43,023

    Re:Re:display first item in the Combobox

    [Originally posted by Ram]

    Thank you very much for the reply.It worked fine for me.

    good day
    Ram

  4. #4
    Join Date
    Aug 2004
    Posts
    43,023

    Re:Re:display first item in the Combobox

    [Originally posted by Ram]

    Thank you very much for the reply.It worked fine for me.

    good day
    Ram

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center