How to call out another form inside the form

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jun 2009
Posts: 95
Reputation: gingank is an unknown quantity at this point 
Solved Threads: 0
gingank's Avatar
gingank gingank is offline Offline
Junior Poster in Training

How to call out another form inside the form

 
0
  #1
Jun 30th, 2009
I'm a newbie in VB i want to ask if have a vb form 1 if i press the command button "ADD" it will call out the form i do vb form 2

so what is the coding for it ah??

Help me thank you
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 4
Reputation: jp26198926 is an unknown quantity at this point 
Solved Threads: 2
jp26198926 jp26198926 is offline Offline
Newbie Poster

Re: How to call out another form inside the form

 
0
  #2
Jun 30th, 2009
im not sure:

Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. Private Sub Command1_Click()
  2.  
  3. Form2.Show
  4.  
  5. End Sub
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 473
Reputation: abu taher is an unknown quantity at this point 
Solved Threads: 24
abu taher's Avatar
abu taher abu taher is offline Offline
Posting Pro in Training

Re: How to call out another form inside the form

 
0
  #3
Jun 30th, 2009
and if u hide the 1st form then write
me.hide

or

form1.hide
I like sword. Attack or Defense.
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 5
Reputation: pmyk is an unknown quantity at this point 
Solved Threads: 0
pmyk pmyk is offline Offline
Newbie Poster

Re: How to call out another form inside the form

 
0
  #4
Jun 30th, 2009
How to use in Userform2, the name of Userform1, which is received in Userform2 as a variable?
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 1
Reputation: Mung'aro is an unknown quantity at this point 
Solved Threads: 0
Mung'aro Mung'aro is offline Offline
Newbie Poster

Re: How to call out another form inside the form

 
0
  #5
Jul 1st, 2009
the code will be as shown:

private sub command1_CLICK()

form2.show

end sub

this code should be put in the code window for form1 after double clicking the 'ADD' button.
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 5
Reputation: pmyk is an unknown quantity at this point 
Solved Threads: 0
pmyk pmyk is offline Offline
Newbie Poster

Re: How to call out another form inside the form

 
0
  #6
Jul 1st, 2009
Thanks. I do appreciate your reply. I am new to VB.
-P. Michael
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC