Results 1 to 3 of 3

Thread: ListBox Control (Solved)

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2002
    Location
    India
    Posts
    49

    ListBox Control (Solved)

    Hi Everybody,

    I am very new for VB.Net. I have Problem In ListBox Control in VB.Net.

    In Vb6 we can specify the List Box Control like
    List1.ListIndex=0

    How to specify same like in VB.Net?

    i hope ur valuable solutions/suggestions. Please help me.

    Thanks
    Manesh
    Last edited by manesh; Jun 4th, 2003 at 01:19 AM.
    ========================
    Think Twice when u Start or Stop.
    ========================

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Try setting the selecteditem or selectedindex property to the value.
    VB Code:
    1. Listbox1.SelectedIndex=0

  3. #3

    Thread Starter
    Member
    Join Date
    Mar 2002
    Location
    India
    Posts
    49
    Hi Edneeis,

    Thanks lot.......to u

    Manesh
    ========================
    Think Twice when u Start or Stop.
    ========================

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