|
-
Sep 25th, 2002, 09:00 AM
#1
Thread Starter
Addicted Member
Parm pass into a form load
I want to show a form from a another form by clicking a button.
In doing so I wish to pass a couple values into the form I wish to show. In VB 6.0 I always used global variable which is bad, want to do it the "right way" in .NET, cant figure it out..
Thanks
Tom
-
Sep 25th, 2002, 09:09 AM
#2
create you form class an oveloaded New method with the parameters you need.
Code:
Public Sub New(blah as blah, blah as blah)
MyBase.New()
End Sub
then when you create the form
Dim myform As New FormBlah(blah, blah)
-
Sep 25th, 2002, 09:20 AM
#3
Thread Starter
Addicted Member
Thanks, I will try it out! (NT)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|