| View previous topic :: View next topic |
| What do You Think I should Do? |
| Stay with VB |
|
0% |
[ 0 ] |
| Go to C# |
|
50% |
[ 3 ] |
| Skip C# and go to C++ |
|
0% |
[ 0 ] |
| Screw all of them and go to Delphi |
|
0% |
[ 0 ] |
| Give Up Coding |
|
50% |
[ 3 ] |
|
| Total Votes : 6 |
|
| Author |
Message |
xX0Reaper0Xx Advanced Cheater
Reputation: 0
Joined: 12 Jun 2007 Posts: 57
|
Posted: Sat Mar 15, 2008 6:02 am Post subject: [Need C# Help] |
|
|
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 |
|
 |
samuri25404 Grandmaster Cheater
Reputation: 7
Joined: 04 May 2007 Posts: 955 Location: Why do you care?
|
Posted: Sat Mar 15, 2008 6:58 am Post subject: Re: [Need C# Help] |
|
|
| 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();
|
_________________
|
|
| Back to top |
|
 |
Estx Expert Cheater
Reputation: 0
Joined: 04 Mar 2008 Posts: 172
|
Posted: Sat Mar 15, 2008 8:21 am Post subject: |
|
|
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.
|
|
| Back to top |
|
 |
xX0Reaper0Xx Advanced Cheater
Reputation: 0
Joined: 12 Jun 2007 Posts: 57
|
|
| Back to top |
|
 |
junxuan Master Cheater
Reputation: 0
Joined: 21 Dec 2006 Posts: 495
|
Posted: Sun Mar 16, 2008 6:09 am Post subject: |
|
|
| 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 |
|
 |
Estx Expert Cheater
Reputation: 0
Joined: 04 Mar 2008 Posts: 172
|
Posted: Sun Mar 16, 2008 6:36 am Post subject: |
|
|
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 |
|
 |
xX0Reaper0Xx Advanced Cheater
Reputation: 0
Joined: 12 Jun 2007 Posts: 57
|
|
| Back to top |
|
 |
|