J
jg
Hi,
Im using a listview on my pocket pc application and this code checks which
item was clicked:
Private Sub MainList_SelectedIndexChanged(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles MainList.SelectedIndexChanged
Dim i As Integer
For i = 0 To ViewList.Items.Count - 1
If MainList.Items.Item(i).Selected Then
dim sth as new form2(i)
sth.show
Exit For
End If
Next
End Sub
When the second form gets initialized it takes an integer in its
constructor, but the problem is that form2 always gets loaded beneath form1
when loaded like this?
Im using a listview on my pocket pc application and this code checks which
item was clicked:
Private Sub MainList_SelectedIndexChanged(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles MainList.SelectedIndexChanged
Dim i As Integer
For i = 0 To ViewList.Items.Count - 1
If MainList.Items.Item(i).Selected Then
dim sth as new form2(i)
sth.show
Exit For
End If
Next
End Sub
When the second form gets initialized it takes an integer in its
constructor, but the problem is that form2 always gets loaded beneath form1
when loaded like this?