Click here to Skip to main content
16,008,010 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How can I make a usercontrol that can contain other controls? Pin
Mansourgh2-Feb-07 22:44
Mansourgh2-Feb-07 22:44 
GeneralRe: How can I make a usercontrol that can contain other controls? Pin
Christian Graus2-Feb-07 22:46
protectorChristian Graus2-Feb-07 22:46 
AnswerRe: How can I make a usercontrol that can contain other controls? Pin
Mansourgh2-Feb-07 23:02
Mansourgh2-Feb-07 23:02 
AnswerRe: How can I make a usercontrol that can contain other controls? Pin
TwoFaced3-Feb-07 7:53
TwoFaced3-Feb-07 7:53 
QuestionListView control Pin
CodingYoshi2-Feb-07 13:28
CodingYoshi2-Feb-07 13:28 
AnswerRe: ListView control Pin
MatrixCoder2-Feb-07 14:40
MatrixCoder2-Feb-07 14:40 
GeneralRe: ListView control Pin
CodingYoshi3-Feb-07 12:07
CodingYoshi3-Feb-07 12:07 
GeneralRe: ListView control Pin
TwoFaced3-Feb-07 13:02
TwoFaced3-Feb-07 13:02 
The checked event wasn't added until .net 2.0. The item's checked state doesn't get updated until after the check event gets raised. Therefore the items in the checked collection (during the check event) do not accuratly portray the state of the listview. The newest item will not be included if it's being checked and will be included when it's being unchecked. The good news is there is a pretty simple workaround. Here's how you can do it.
Private Sub ListView1_ItemCheck(ByVal sender As Object, ByVal e As System.Windows.Forms.ItemCheckEventArgs) Handles ListView1.ItemCheck
    'Check new value of item that called this event.  If checked display in console.
    If e.NewValue = CheckState.Checked Then Console.WriteLine(ListView1.Items(e.Index).Text)

    'Display each checked item in the console window
    For Each item As ListViewItem In ListView1.CheckedItems
        'If item is same as item that called this event then ignore it
        If item.Index = e.Index Then Continue For
        Console.WriteLine(item.Text)
    Next
End Sub

AnswerRe: ListView control Pin
TwoFaced3-Feb-07 13:13
TwoFaced3-Feb-07 13:13 
GeneralRe: ListView control Pin
CodingYoshi5-Feb-07 6:02
CodingYoshi5-Feb-07 6:02 
QuestionHow to get members of type found through reflection Pin
cstrader2322-Feb-07 12:37
cstrader2322-Feb-07 12:37 
AnswerRe: How to get members of type found through reflection Pin
Colin Angus Mackay2-Feb-07 14:44
Colin Angus Mackay2-Feb-07 14:44 
GeneralRe: How to get members of type found through reflection Pin
cstrader2322-Feb-07 17:35
cstrader2322-Feb-07 17:35 
GeneralRe: How to get members of type found through reflection Pin
cstrader2324-Feb-07 4:04
cstrader2324-Feb-07 4:04 
QuestionCrystal Report Error when Running VB6.0 Application with .net Application Pin
Ali 1102-Feb-07 2:55
Ali 1102-Feb-07 2:55 
AnswerRe: Crystal Report Error when Running VB6.0 Application with .net Application Pin
aransiola2-Feb-07 3:58
aransiola2-Feb-07 3:58 
QuestionPlease Help me....Small doubt on comboBox of datagridview Pin
priya_p2332-Feb-07 2:51
priya_p2332-Feb-07 2:51 
AnswerRe: Please Help me....Small doubt on comboBox of datagridview Pin
Guffa2-Feb-07 5:46
Guffa2-Feb-07 5:46 
QuestionGetting the name of an instance Pin
edmonson2-Feb-07 0:34
edmonson2-Feb-07 0:34 
AnswerRe: Getting the name of an instance Pin
testy_proconsul2-Feb-07 1:20
testy_proconsul2-Feb-07 1:20 
QuestionHow can insert a ocx control in word document? Pin
Kumar Arun1-Feb-07 23:12
Kumar Arun1-Feb-07 23:12 
QuestionExporting to Excel Pin
Dayekh1-Feb-07 22:47
Dayekh1-Feb-07 22:47 
AnswerRe: Exporting to Excel Pin
Hari Om Prakash Sharma2-Feb-07 1:03
Hari Om Prakash Sharma2-Feb-07 1:03 
AnswerRe: Exporting to Excel Pin
testy_proconsul2-Feb-07 1:23
testy_proconsul2-Feb-07 1:23 
QuestionHelp Regarding Propertygrid Pin
sandipan.neogi@gmail.com1-Feb-07 22:31
sandipan.neogi@gmail.com1-Feb-07 22:31 

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.