Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[C# HELP] Forms

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
ssaccount
Master Cheater
Reputation: 0

Joined: 29 Aug 2007
Posts: 391
Location: Finland

PostPosted: Wed Apr 16, 2008 12:20 pm    Post subject: [C# HELP] Forms Reply with quote

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 Very Happy)
Back to top
View user's profile Send private message
--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?

PostPosted: Wed Apr 16, 2008 12:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
ssaccount
Master Cheater
Reputation: 0

Joined: 29 Aug 2007
Posts: 391
Location: Finland

PostPosted: Wed Apr 16, 2008 12:33 pm    Post subject: Reply with quote

--Pillboi-- wrote:
http://forum.cheatengine.org/search.php OR http://google.com/


Thx. I found the answer. I just forgot to search -____-

_________________
Programming in C++
(Or at least trying to Very Happy)
Back to top
View user's profile Send private message
Stylo
Grandmaster Cheater Supreme
Reputation: 3

Joined: 16 May 2007
Posts: 1073
Location: Israel

PostPosted: Wed Apr 16, 2008 12:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
--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?

PostPosted: Wed Apr 16, 2008 12:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
Stylo
Grandmaster Cheater Supreme
Reputation: 3

Joined: 16 May 2007
Posts: 1073
Location: Israel

PostPosted: Wed Apr 16, 2008 12:39 pm    Post subject: Reply with quote

wasn't saying you're flaming Confused deeply sry if u thought i did Surprised
_________________
Stylo
Back to top
View user's profile Send private message
ssaccount
Master Cheater
Reputation: 0

Joined: 29 Aug 2007
Posts: 391
Location: Finland

PostPosted: Wed Apr 16, 2008 12:45 pm    Post subject: Reply with quote

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 Very Happy

_________________
Programming in C++
(Or at least trying to Very Happy)
Back to top
View user's profile Send private message
--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?

PostPosted: Wed Apr 16, 2008 1:03 pm    Post subject: Reply with quote

1qaz wrote:
wasn't saying you're flaming Confused deeply sry if u thought i did Surprised

Np. =) Sorry for thinking that you thought that I was flaming. Wink
ssaccount, sorry if I put you off asking questions. Sad

_________________

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
View user's profile Send private message
samuri25404
Grandmaster Cheater
Reputation: 7

Joined: 04 May 2007
Posts: 955
Location: Why do you care?

PostPosted: Wed Apr 16, 2008 2:13 pm    Post subject: Reply with quote

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)

Code:

myForm2.Show();

_________________
Wiccaan wrote:

Oh jeez, watchout I'm a bias person! Locked.


Auto Assembly Tuts:
In Depth Tutorial on AA
Extended
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites