C# help

Post here about scripting and programming for HaloPC (audio, network, ai, etc.)
Post Reply
mr_penguin





Posts: 541
Joined: Thu Feb 08, 2007 5:39 pm
Location: NJ

C# help

Post by mr_penguin »

Where can I find info on learning C#? Microsoft's site has tons of VB things but I can't find much for C# there.
Your mom became oversized. Please make your mom smaller before reposting. :shock:
Infern0 wrote:You just shave the excess bush and burn the leftovers.
User avatar
xzodia




Translator Connoisseur Coagulator

Posts: 1981
Joined: Sun May 15, 2005 10:31 am
Location: UK
Contact:

Post by xzodia »

there should be an option near the top to switch languages
Image
Halo 2 Plugins | Lock-on To Just About Anything | My Sites | Snow Hog
Old Plugins you have, upgrade you must...
Always Maintain a High Quality-To-Crap Ratio.
User avatar
Aumaan Anubis




Connoisseur Bloodhound Renovator

Posts: 2938
Joined: Fri Jun 30, 2006 1:01 pm
Location: Aumaan
Contact:

Post by Aumaan Anubis »

Image
Tural wrote:MrMurder, we're going to hold you to that promise.
It is expected, and demanded.
mr_penguin





Posts: 541
Joined: Thu Feb 08, 2007 5:39 pm
Location: NJ

Post by mr_penguin »

thanks.

for some reason it wouldn't give me that page the other day. The whole bottom part of it was blank.
Your mom became oversized. Please make your mom smaller before reposting. :shock:
Infern0 wrote:You just shave the excess bush and burn the leftovers.
mr_penguin





Posts: 541
Joined: Thu Feb 08, 2007 5:39 pm
Location: NJ

Post by mr_penguin »

How can I open another form by pressing a button?
Your mom became oversized. Please make your mom smaller before reposting. :shock:
Infern0 wrote:You just shave the excess bush and burn the leftovers.
User avatar
Aumaan Anubis




Connoisseur Bloodhound Renovator

Posts: 2938
Joined: Fri Jun 30, 2006 1:01 pm
Location: Aumaan
Contact:

Post by Aumaan Anubis »

Depends. For instance, if you want to open a generic form with C#, you can use...

Code: Select all

private void button1_Click(object sender, EventArgs e)
        {
            Form objform = new Form();
            objform.Show();
        }
But if you want a specific form to load, you can create that form with its specific attributes, and assuming that it is called form2.cs, you can use...

Code: Select all

private void button1_Click(object sender, EventArgs e)
        {
            Form2 objform2 = new Form2();
            objform2.Show();
        }
Image
Tural wrote:MrMurder, we're going to hold you to that promise.
It is expected, and demanded.
Supermodder911




Connoisseur Coroner

Posts: 1262
Joined: Sun Sep 03, 2006 10:43 pm
Location: Michigan

Post by Supermodder911 »

Aumaan Anubis wrote:But if you want a specific form to load, you can create that form with its specific attributes, and assuming that it is called form2.cs, you can use...
The file name doesn't matter. The class name is what you are looking for.
Image
C Wizzle
User avatar
Aumaan Anubis




Connoisseur Bloodhound Renovator

Posts: 2938
Joined: Fri Jun 30, 2006 1:01 pm
Location: Aumaan
Contact:

Post by Aumaan Anubis »

Ahh, you are indeed right.
Image
Tural wrote:MrMurder, we're going to hold you to that promise.
It is expected, and demanded.
Post Reply