Click here to Skip to main content
16,004,806 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionFilling A Heart Shape Pin
hannesHTG13-Nov-06 0:44
hannesHTG13-Nov-06 0:44 
QuestionIntercept shutdown? Pin
JDMils12-Nov-06 23:22
JDMils12-Nov-06 23:22 
AnswerRe: Intercept shutdown? Pin
Christian Graus12-Nov-06 23:51
protectorChristian Graus12-Nov-06 23:51 
GeneralRe: Intercept shutdown? Pin
JDMils13-Nov-06 11:53
JDMils13-Nov-06 11:53 
QuestionEdit with Treeview! Pin
Lanmiu_ith12-Nov-06 22:51
Lanmiu_ith12-Nov-06 22:51 
QuestionPopUp with ok and cancel buttons Pin
JayPrakash Kulkarni12-Nov-06 21:03
JayPrakash Kulkarni12-Nov-06 21:03 
AnswerRe: PopUp with ok and cancel buttons Pin
CWIZO12-Nov-06 21:20
CWIZO12-Nov-06 21:20 
Questionchecking items in a checklistBox [modified] Pin
steve_rm12-Nov-06 20:51
steve_rm12-Nov-06 20:51 
Hello,

vb 2005, sql server 2005, winforms.

My problem is that how do I find the index of the number of the checked items. The code below is what I have done so far. However, I con't find any properties that will allow me to find this index number. Any advice would be more grateful

For example, if the has checked indexes 2, 5, 10, 15. How can i find the indexes of the checked items.


<br />
Dim i As Integer <br />
Dim dt As New DataTable() <br />
Dim dr As DataRow <br />
Dim userID As Integer <br />
<br />
dt.Columns.Add("UserID") <br />
dt.Columns.Add("GroupID") <br />
For i = 0 To Me.chkLstSecurityRoles.CheckedItems.Count - 1 <br />
dr = dt.NewRow() <br />
dr("UserID") = userID <br />
dr("GroupID") = 'The index number of the checked item that have been clicked<br />
Next<br />



Thank for you help in advance,

Steve


-- modified at 4:26 Monday 13th November, 2006
AnswerRe: checking items in a checklistBox Pin
The ANZAC15-Nov-06 23:03
The ANZAC15-Nov-06 23:03 
QuestionConsole Application in VB6 Pin
Cmania12-Nov-06 20:13
Cmania12-Nov-06 20:13 
AnswerRe: Console Application in VB6 Pin
ChandraRam13-Nov-06 19:11
ChandraRam13-Nov-06 19:11 
QuestionHow to hide internet explorer menubar,toolbar,addressbar with VB.net code? Pin
TC2812-Nov-06 19:18
TC2812-Nov-06 19:18 
AnswerRe: How to hide internet explorer menubar,toolbar,addressbar with VB.net code? Pin
coolestCoder12-Nov-06 21:04
coolestCoder12-Nov-06 21:04 
GeneralRe: How to hide internet explorer menubar,toolbar,addressbar with VB.net code? Pin
TC2813-Nov-06 19:07
TC2813-Nov-06 19:07 
GeneralRe: How to hide internet explorer menubar,toolbar,addressbar with VB.net code? Pin
coolestCoder14-Nov-06 18:48
coolestCoder14-Nov-06 18:48 
QuestionHow to get status of the of the wave file [modified] Pin
BabuChellathurai12-Nov-06 18:45
BabuChellathurai12-Nov-06 18:45 
Questionsaving items from a checklistbox to a database Pin
steve_rm12-Nov-06 17:51
steve_rm12-Nov-06 17:51 
QuestionHow Syncronize Outlook Address Book P2P via bluetooth Pin
pakning12-Nov-06 17:25
pakning12-Nov-06 17:25 
QuestionTextBox property Pin
andy3812-Nov-06 14:13
andy3812-Nov-06 14:13 
AnswerRe: TextBox property Pin
Christian Graus12-Nov-06 14:20
protectorChristian Graus12-Nov-06 14:20 
QuestionMIME Filter in .net Pin
venom0012-Nov-06 10:52
venom0012-Nov-06 10:52 
Questiontranslation from c#? Pin
ozeegers12-Nov-06 10:31
ozeegers12-Nov-06 10:31 
AnswerRe: translation from c#? Pin
Guffa12-Nov-06 10:51
Guffa12-Nov-06 10:51 
AnswerRe: translation from c#? Pin
Dave Doknjas12-Nov-06 12:34
Dave Doknjas12-Nov-06 12:34 
GeneralRe: translation from c#? Pin
ozeegers12-Nov-06 19:05
ozeegers12-Nov-06 19:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.