By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,950 Members | 986 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,950 IT Pros & Developers. It's quick & easy.

CheckListBox

P: 2
I'm new to VB.Net

Can anyone tell me what i done wrong ?

If clbSolar.SelectedIndex = True Then
lstSolar.Items.Add("5%")
Else
lstSolar.Items.Add("")
End If


on my listbox, it won't come out.
May 7 '08 #1
Share this Question
Share on Google+
2 Replies


debasisdas
Expert 5K+
P: 8,127
Does SelectedIndex returns a boolean value ?
May 7 '08 #2

P: 20
try this, should work
Expand|Select|Wrap|Line Numbers
  1. if checkedlistbox.getchecked(chekedlistbox.selectedindex) then
  2. ...
  3. end if
  4.  
May 7 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.