running another form

O

Omar Alawna

Hi..I have the main form setup..and now i had to add another form to the
project..when i run the form2 from form1_load event like this:
results.show() ,the form will show but without any of the properties i
specified for it..and no controls on it even..form1 runs fine though..How
can i fix this..thanks
by the way in form1 i wrote dim form2 as new form to access form 2
 
H

Herfried K. Wagner [MVP]

* "Omar Alawna said:
Hi..I have the main form setup..and now i had to add another form to the
project..when i run the form2 from form1_load event like this:
results.show() ,the form will show but without any of the properties i
specified for it..and no controls on it even..form1 runs fine though..How
can i fix this..thanks
by the way in form1 i wrote dim form2 as new form to access form 2

That should work. Are you performing heavy processing directly after
showing the 2nd form?
 
O

Omar Alawna

No heavy processing..i did not even write any code for the second form..only
put some buttons and textboxes.
Do you know any other way to do it?
thanks
 
O

Omar Alawna

No heavy processing..i did not even write any code for the second form..only
put some buttons and textboxes.
Do you know any other way to do it?
thanks
 
H

Herfried K. Wagner [MVP]

* "Omar Alawna said:
No heavy processing..i did not even write any code for the second form..only
put some buttons and textboxes.
Do you know any other way to do it?

Please post the code you use to show the 2nd form exactly as you use it
in your project.
 
F

frosty

how about writing your dim statement for form2 as:
dim frm2 as new form2 (or whatever you named your second form)

sounds like you are creating a second form (which form2 should be inheriting
from)

-frosty
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top