473,385 Members | 1,813 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

create form2 obkject in class1.....

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,

Nov 21 '05 #1
2 1178
"Supra" <su*****@rogers.com> schrieb:
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()
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #2
"Supra" <su*****@rogers.com> schrieb:
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()
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Tim Werth | last post by:
I am trying to use reflection to add an event handler for the RowUpdated event of the OracleDataAdapter object (ODP.NET), but the same thing can be said for SqlDataAdapter if you only use...
5
by: Paw Pedersen | last post by:
Is it possible to load a XSD and loop throw the nodes and attributes that you whant filled out, and then generate a XML instance with the trees and data that you have filled data in? And how do...
0
by: trint | last post by:
Can I do it like this? buttonClick.... pe.PrintReport(@"\\WEB1\Shipping1"); pe.PrintReport2(@"\\WEB1\Shipping1"); pe.printCombinedDocuments(Class1.currentdoc); } Class1
13
by: bonk | last post by:
Hello, I am trying to create a dll that internally uses managed types but exposes a plain unmanaged interface. All the managed stuff shall be "wrapped out of sight". So that I would be able to...
6
by: Mythran | last post by:
I have 2 projects, a Web project and a Class Library project. In the class project, I have a class called Class1. Pseudo below: Class Class1 ... Public Static Sub Generate() If True '...
2
by: Bill Nguyen | last post by:
How can I create a shared function to display process progress that can be called from other routines within an application? Any example that I can follow? Thanks Bill
6
by: Supra | last post by:
i have : mainform form2 had 2 textbox class1.vb class2.vb how do i create form2 into class2.vb? i couldn't do better. this is what i do. in class2.vb public class class2
0
by: Supra | last post by:
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...
1
by: Ranginald | last post by:
Hi, My goal is to have a class named class1 that will render a label control on whatever page needs it. I want to instantiate class1 from whatever page, and then call the createLabel() method...
1
by: =?Utf-8?B?c2lwcHl1Y29ubg==?= | last post by:
Hi This is from within an EXE that actaully contains the class - No external assembly I would do Class1 myClass = new Class1(); Now I want
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.