|
-
Dec 17th, 2003, 11:41 AM
#1
Thread Starter
Lively Member
load a form but don't show the same
Hi friends
I want to load a form from a particular form but the same should not be visible to the user
this is because
I want to add some of the data to the controls of new form from the original form and then i have to show it to the user
in VB6 i used
load formxyz
formxyz.textbox = "New form"
formxyz.show
how i can do this in VB net
please help
with Regards
sameer Mulgaonkar

-
Dec 17th, 2003, 11:55 AM
#2
Hyperactive Member
dim f1 as new myform
(the name of the form you eventully want to show)
create a Public sub say called loadme in myform which:
loads the controls with data you want the user to see:
and then:
myform.loadme(any pararmeters passed as a list)
this will execute that sub
and finally:
myform.showdialog()
shows the form with the controls loaded with the user data you have passed in the Public sub or loaded from other sources
i.e
dim f1 as new myform
myform.loadme(parameter list values to be passed)
myform.showdialog()
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
|