By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,798 Members | 1,766 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,798 IT Pros & Developers. It's quick & easy.

Show another form when button clicked

Motoma
Expert 2.5K+
P: 3,235
OK, so i will start with something simplier.
Thanks anyway, dudes.

Oh, i've allmost forgot. I have one more question for c++ users. So: How can i
open a form from another form:
- I have Form1 and Form2
On form1 there's a Button1.
When i click that button i want the other form to show up. I tried but i just can't figure it out. form2->visible->true does not work. I know this is a funny question for u professionals but i have to start somewhere.
Thanks in advance!
In Slovenia we say - Hvala!


-------------------------------------------------------------
Please open me that gate, so i will reach to another site.
Myself.

I believe Form2.Show() is what you are looking for.
Jun 5 '07 #1
Share this Question
Share on Google+
6 Replies


P: 8
i've tried but it just gives me errors.....i'm confuzed
I allso opened some other multi-form apps and there was some code that worked for that app only, but not for my app.
Jun 6 '07 #2

Motoma
Expert 2.5K+
P: 3,235
i've tried but it just gives me errors.....i'm confuzed
I allso opened some other multi-form apps and there was some code that worked for that app only, but not for my app.
Perhaps you better post the relevant code, and please use the [code] tags.
Jun 6 '07 #3

pbmods
Expert 5K+
P: 5,821
i've tried but it just gives me errors.....i'm confuzed
What errors do you get?
Jun 6 '07 #4

Expert 5K+
P: 8,434
What errors do you get?
Guys, do you think you could take this discussion over to the C++ forum?
Jun 7 '07 #5

P: 8
it says that form2 is not an object of form1.....
Jun 7 '07 #6

Motoma
Expert 2.5K+
P: 3,235
it says that form2 is not an object of form1.....
Perhaps you better post the relevant code, and please use the [code] tags.
Jun 7 '07 #7

Post your reply

Sign in to post your reply or Sign up for a free account.