create form2 obkject in class1.....

S

Supra

how do i create form2 in class1.vb also i needed to make form2 mdichild?
in form2 i had listveiw1...that all this code below will overwrite in
one row

in class1.vb
\\\
\\\
Case "322" 'Lists
Dim sc As String = C(3)
Dim su As String = C(4)
Dim intI3 As Integer = CLi.IndexOf(":")
Dim st As String = CLi.Substring(intI3 + 1)
Dim frmLvw As New form2
frmLvw.AddLists(sc, su, st)
frmLvw.Text = "Lists :" & frmLvw.lvwList.Items.Count
frmlvw.show()
regards,
 
H

Herfried K. Wagner [MVP]

Supra said:
how do i create form2 in class1.vb also i needed to make form2 mdichild?
in form2 i had listveiw1...that all this code below will overwrite in one
row

in class1.vb
\\\
\\\
Case "322" 'Lists
Dim sc As String = C(3)
Dim su As String = C(4)
Dim intI3 As Integer = CLi.IndexOf(":")
Dim st As String = CLi.Substring(intI3 + 1)
Dim frmLvw As New form2
frmLvw.AddLists(sc, su, st)
frmLvw.Text = "Lists :" &
frmLvw.lvwList.Items.Count
frmlvw.show()
regards,


If this code is placed in another MDI child:

\\\
frmlvw.MdiParent = Me.MdiParent
frmlvw.Show()
///

If this code if placed in the MDI container:

\\\
frmlvw.MdiParent = Me
frmlvw.Show()
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top