| View previous topic :: View next topic |
| Author |
Message |
ssaccount Master Cheater
Reputation: 0
Joined: 29 Aug 2007 Posts: 391 Location: Finland
|
Posted: Wed Apr 16, 2008 12:20 pm Post subject: [C# HELP] Forms |
|
|
This is very noob question but becouse im new with C# i don't know how to open form2 by clicking button in form1?
_________________
Programming in C++
(Or at least trying to ) |
|
| Back to top |
|
 |
--Pillboi-- Grandmaster Cheater Supreme
Reputation: 0
Joined: 06 Mar 2007 Posts: 1383 Location: I don't understand the question. Is this a 1 to 10 thing?
|
Posted: Wed Apr 16, 2008 12:25 pm Post subject: |
|
|
http://forum.cheatengine.org/search.php OR http://google.com/
_________________
Enter darkness, leave the light, Here be nightmare, here be fright...
Earth and Water, Fire and Air. Prepare to meet a creature rare.
Enter now if you dare, Enter now the dragon's lair. |
|
| Back to top |
|
 |
ssaccount Master Cheater
Reputation: 0
Joined: 29 Aug 2007 Posts: 391 Location: Finland
|
Posted: Wed Apr 16, 2008 12:33 pm Post subject: |
|
|
Thx. I found the answer. I just forgot to search -____-
_________________
Programming in C++
(Or at least trying to ) |
|
| Back to top |
|
 |
Stylo Grandmaster Cheater Supreme
Reputation: 3
Joined: 16 May 2007 Posts: 1073 Location: Israel
|
Posted: Wed Apr 16, 2008 12:34 pm Post subject: |
|
|
i believe that section exist because those kind and other kinds of questions about programming . .
anyway about your question
inside your Form1 Source code in the button event click you should call the form by doing this:
| Code: |
Form2 myForm2 = new Form2();
myForm2.ShowDialog();
|
in the code i called to the 2nd Form i created in other class inside the project
and by ShowDialog(); made it visible on the screen (if i'm correct ><)
_________________
Stylo |
|
| Back to top |
|
 |
--Pillboi-- Grandmaster Cheater Supreme
Reputation: 0
Joined: 06 Mar 2007 Posts: 1383 Location: I don't understand the question. Is this a 1 to 10 thing?
|
Posted: Wed Apr 16, 2008 12:36 pm Post subject: |
|
|
I know, I wasn't flaming. It was very easy to find the answer on google, that's all.
_________________
Enter darkness, leave the light, Here be nightmare, here be fright...
Earth and Water, Fire and Air. Prepare to meet a creature rare.
Enter now if you dare, Enter now the dragon's lair. |
|
| Back to top |
|
 |
Stylo Grandmaster Cheater Supreme
Reputation: 3
Joined: 16 May 2007 Posts: 1073 Location: Israel
|
|
| Back to top |
|
 |
ssaccount Master Cheater
Reputation: 0
Joined: 29 Aug 2007 Posts: 391 Location: Finland
|
Posted: Wed Apr 16, 2008 12:45 pm Post subject: |
|
|
| 1qaz wrote: | i believe that section exist because those kind and other kinds of questions about programming . .
anyway about your question
inside your Form1 Source code in the button event click you should call the form by doing this:
| Code: |
Form2 myForm2 = new Form2();
myForm2.ShowDialog();
|
in the code i called to the 2nd Form i created in other class inside the project
and by ShowDialog(); made it visible on the screen (if i'm correct ><) |
Ty. I just was little confused with c# becouse i just changed from vb
_________________
Programming in C++
(Or at least trying to ) |
|
| Back to top |
|
 |
--Pillboi-- Grandmaster Cheater Supreme
Reputation: 0
Joined: 06 Mar 2007 Posts: 1383 Location: I don't understand the question. Is this a 1 to 10 thing?
|
Posted: Wed Apr 16, 2008 1:03 pm Post subject: |
|
|
| 1qaz wrote: | wasn't saying you're flaming deeply sry if u thought i did  |
Np. =) Sorry for thinking that you thought that I was flaming.
ssaccount, sorry if I put you off asking questions.
_________________
Enter darkness, leave the light, Here be nightmare, here be fright...
Earth and Water, Fire and Air. Prepare to meet a creature rare.
Enter now if you dare, Enter now the dragon's lair. |
|
| Back to top |
|
 |
samuri25404 Grandmaster Cheater
Reputation: 7
Joined: 04 May 2007 Posts: 955 Location: Why do you care?
|
Posted: Wed Apr 16, 2008 2:13 pm Post subject: |
|
|
Geez, so many apologies.
Anyways, @OP:
the method ShowDialog() makes your original form unable to access while the second form is open. If you just want to show the form, do (building off the previously posted code)
_________________
|
|
| Back to top |
|
 |
|