running a form from another

  • Thread starter Thread starter Omar Alawna
  • Start date Start date
O

Omar Alawna

Hi I have asked about this before but still could not get a good answer..I
created form1 and added form2 to the project then added some buttons to
form2..now I want to run form2 from form1.I wrote the following in the
form-load event of form1:
dim frm as new form2
form2.show
this will load the form2 but with no controls on it at all and without the
properties i specified for it
I am using VS2003 pro
thanks
 
* "Omar Alawna said:
Hi I have asked about this before but still could not get a good answer..I
created form1 and added form2 to the project then added some buttons to
form2..now I want to run form2 from form1.I wrote the following in the
form-load event of form1:
dim frm as new form2
form2.show
this will load the form2 but with no controls on it at all and without the
properties i specified for it
I am using VS2003 pro

As I asked previously: Does this even occur in a blank project?
 
* (e-mail address removed) (Herfried K. Wagner [MVP]) scripsit:
Should read:

\\\
Dim frm As New Form2()
frm.Show()
///
 
thank you..it is working now with this code
dim frm as new form2
frm.show()
i trried this before did not work i reinstalled vs2003 it is working
now..sorry for disturbing
 
* Omar Alawna said:
thank you..it is working now with this code
dim frm as new form2
frm.show()
i trried this before did not work i reinstalled vs2003 it is working
now..sorry for disturbing

Interesting phenomena.

;->
 
Back
Top