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 


[Need C# Help]

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  

What do You Think I should Do?
Stay with VB
0%
 0%  [ 0 ]
Go to C#
50%
 50%  [ 3 ]
Skip C# and go to C++
0%
 0%  [ 0 ]
Screw all of them and go to Delphi
0%
 0%  [ 0 ]
Give Up Coding
50%
 50%  [ 3 ]
Total Votes : 6

Author Message
xX0Reaper0Xx
Advanced Cheater
Reputation: 0

Joined: 12 Jun 2007
Posts: 57

PostPosted: Sat Mar 15, 2008 6:02 am    Post subject: [Need C# Help] Reply with quote

Okay i got sick of Visual Basic's limited options and i didn't want to rush onto a language i don't understand (C++) but im not sure how to load a form in C#. Its not the same as Visual Basic's easy <Name>.Load can anyone help me?
_________________
Definitions:
Leecher - A Noob who steals Files and Posts it somewhere else without credits to the creator.
Noob - A higher form of being that instead of stealing Begs and asks Stupid Questions.
Flamer - Someone who has experience and totally despises noob questions and leechers.
Back to top
View user's profile Send private message MSN Messenger
samuri25404
Grandmaster Cheater
Reputation: 7

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

PostPosted: Sat Mar 15, 2008 6:58 am    Post subject: Re: [Need C# Help] Reply with quote

cloud0410 wrote:
Okay i got sick of Visual Basic's limited options and i didn't want to rush onto a language i don't understand (C++) but im not sure how to load a form in C#. Its not the same as Visual Basic's easy <Name>.Load can anyone help me?


You have to create a new instance of a form (I'm assuming the forms in VB were static):

Code:

formtoload newform = new formtoload();
newform.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
Estx
Expert Cheater
Reputation: 0

Joined: 04 Mar 2008
Posts: 172

PostPosted: Sat Mar 15, 2008 8:21 am    Post subject: Reply with quote

Yeah, samurai's right.

But as you progress in coding, you will learn a lot of things like that.

Personally, C# is my favorite language because it's a cross between quite a few languages, and because I can also develop XNA games for my 360 lol (I'm part of the XNA Creators Club).

Since you started in VB, your next best step would probably be C#, then C/C++ (or if you're smart/need a challenge, you could goto C++ first).

It's better to start at the hard things and then work your way down through the easy things. That doesn't apply to everything though of course, and more so a personal opinion anyway. Laughing
Back to top
View user's profile Send private message
xX0Reaper0Xx
Advanced Cheater
Reputation: 0

Joined: 12 Jun 2007
Posts: 57

PostPosted: Sun Mar 16, 2008 2:18 am    Post subject: Reply with quote

all that code does is load an Empty form, i want to load a form that has already been created.



The form on the left is what i want to load the one on the right is the one that loads.

_________________
Definitions:
Leecher - A Noob who steals Files and Posts it somewhere else without credits to the creator.
Noob - A higher form of being that instead of stealing Begs and asks Stupid Questions.
Flamer - Someone who has experience and totally despises noob questions and leechers.
Back to top
View user's profile Send private message MSN Messenger
junxuan
Master Cheater
Reputation: 0

Joined: 21 Dec 2006
Posts: 495

PostPosted: Sun Mar 16, 2008 6:09 am    Post subject: Reply with quote

yes c# is rather good and easy to learn,unlike c++ im yet to venture that far,also dun use c# to code stuff like crackme's as c# .net can be decompiled
Back to top
View user's profile Send private message
Estx
Expert Cheater
Reputation: 0

Joined: 04 Mar 2008
Posts: 172

PostPosted: Sun Mar 16, 2008 6:36 am    Post subject: Reply with quote

It can be encrypted (like everything else), so doesn't really matter if you use C# to make CrackMe's.

To load existing forms you use the exact same code provided by samurai, you might have misunderstood it and used an incorrect variable.

Here's an example:
Code:
        private void button1_Click(object sender, EventArgs e)
        {
            Form2 frm2 = new Form2(); // another pre-made form (you can use this line outside of a function for global access)
            frm2.Show();

            //or

            Form1 frm1 = new Form1(); // current form (don't use outside of functions in this class, will cause overflow)
            frm1.Show();
        }


That code assumes you created a default windows application project, added a button with default properties, and added a Windows Form (auto generated as Form2).

Here is a picture of the result from running that code..
Back to top
View user's profile Send private message
xX0Reaper0Xx
Advanced Cheater
Reputation: 0

Joined: 12 Jun 2007
Posts: 57

PostPosted: Mon Mar 17, 2008 3:28 am    Post subject: Reply with quote

Estx wrote:
It can be encrypted (like everything else), so doesn't really matter if you use C# to make CrackMe's.

To load existing forms you use the exact same code provided by samurai, you might have misunderstood it and used an incorrect variable.

Here's an example:
Code:
        private void button1_Click(object sender, EventArgs e)
        {
            Form2 frm2 = new Form2(); // another pre-made form (you can use this line outside of a function for global access)
            frm2.Show();

            //or

            Form1 frm1 = new Form1(); // current form (don't use outside of functions in this class, will cause overflow)
            frm1.Show();
        }


That code assumes you created a default windows application project, added a button with default properties, and added a Windows Form (auto generated as Form2).

Here is a picture of the result from running that code..


Thank you it worked perfectly. Very Happy

_________________
Definitions:
Leecher - A Noob who steals Files and Posts it somewhere else without credits to the creator.
Noob - A higher form of being that instead of stealing Begs and asks Stupid Questions.
Flamer - Someone who has experience and totally despises noob questions and leechers.
Back to top
View user's profile Send private message MSN Messenger
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