PC Review Forums Newsgroups Microsoft DotNet Microsoft VB .NET Listbox assigning default

Reply

Listbox assigning default

 
Thread Tools Rate Thread
Old 24-08-2006, 06:03 AM   #1
John
Guest
 
Posts: n/a
Default Listbox assigning default


Hi

How can I highlight (select) via code an item in a list box that has the
value "Current"?

Thanks

Regards


  Reply With Quote
Old 24-08-2006, 09:24 AM   #2
Reg Edit
Guest
 
Posts: n/a
Default Re: Listbox assigning default

listBox1.SelectedIndex = listBox1.FindStringExact("Current");

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off