Gaming Community
Forum
 
Go Back   D3scene > Software/Hardware > Development
Register Blogs Live view Downloads Marketplace FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read

[TuT] (C#) Introduction to C# Programming Part 1

This is a discussion on [TuT] (C#) Introduction to C# Programming Part 1 within the Development forum part of the Software/Hardware category; Welcome to Wynthar's C# Tutorial Tutorial 1: Your First C# Application Introduction After much thought, I have come to the ...


Welcome on D3scene.com! Make sure to register - it's free and very quick! You have to register before you can post and participate in our discussions with 70000 other registered members. Downloads, user profiles and some forums can only be seen by registered members. After you create your free account you will be able to customize many options, you will have the full access to new hacks, latest cheats and last but not least will see no advertisements at all. We would love to see you around in our community!
Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 04-13-2009, 06:15 AM
Wynthar's Avatar
Advanced Hacker

 
Join Date: Feb 2009
Location: So Cal, USA
Posts: 264
Thanks: 30
Thanked 39 Times in 15 Posts
Reputation: 235
Rep Power: 2
Wynthar has a spectacular aura aboutWynthar has a spectacular aura aboutWynthar has a spectacular aura about
[TuT] (C#) Introduction to C# Programming Part 1

Welcome to Wynthar's C# Tutorial
Tutorial 1: Your First C# Application

Introduction
After much thought, I have come to the conclusion that perhaps the way to start learning how to program in C# is to simply download the Visual C# Express edition, install it. Load up a simple program source, run it, and see what happens. Tweak a few things. See what changes and go from there.

Let's Begin
We will start as simple as displaying a message that just says "Hello World." That's the most common way people start learning to code. So, here's the link to Visual C# Express edition.

Download and Install this : Visual C# 2008 Express Edition
(If you have problems with this step let me know in the comments or PM me. I'll write a separate tutorial just for installing Visual C# Express!)

Once it is installed, run it and this is what you will be presented with...




Next
Go to File->New Project... Select Windows Forms Application. Set the Name to Tutorial1 and click OK.



Next
This is your basic windows form. So, let's add a button. Click on View -> Toolbox This should open up the Toolbox on the right side.



Next
In the tool box, click on the [+] Common Controls to expand that menu. And click on Button.

Now go over to your form, and click in the middle of your form. It should create a button for you.



Next
Okay, now double click on the button you just created. It should be called button1. When you double click it, it will automatically go to the code screen and set up a bit of code that looks like this...



Next
The cursor should automatically be set on a blank line between a line with an open brace { and a line with a close brace }.

Let's enter the following on that blank line: MessageBox.Show("Hello world!");



Next
As you type, you may notice the program gives you suggestions for how to complete the current word. Don't worry too much about that for now.

Now, let's click on the green arrow to Run our application. (F5 should work as well)



Next
Your program should compile, and run. Then you will have a box with a button on it. Press the button.



Finally
Cheers, you have just created your first C# application! I would recommend you try changing the string and see the results. Experiment a bit on your own.

Once you are ready, you can move on to Tutorial 2.

[Next Time]
  • I will expand on this tutorial and show you some more windows forms items
  • We will go over some more code to begin learning to manipulate the flow of the program.

[Later]
  • If I get good feedback, I will continue these tutorials all the way up to making a simple map hack using some common offsets.
  • Please feel free to post your feedback, comments, questions, and other things you might like to see.
  • Thanks for reading guys!

[C# Tutorials]

Last edited by Wynthar; 04-15-2009 at 06:57 PM.
Reply With Quote
The Following 4 Users Say Thank You to Wynthar For This Useful Post:
D3scene
Welcome to D3scene - probably the best location for all Gamers.

To participate in our friendly environment you have to register. After completing registration you will have full access to all threads and features. We care about members and try to make your stay as pleasant as possible. We are unique with the following feature for members - you will not see a single Advertisement!


The best: registration is completely free. It will not cost you a single penny or harm you in any way. You will lose nothing except 1 minute of your time. So why not register? We would be happy to see you around!
  #2  
Old 04-13-2009, 07:45 AM
Banned User

 
Join Date: Oct 2008
Location: Australia
Posts: 2,862
Thanks: 29
Thanked 46 Times in 29 Posts
Reputation: 671
Rep Power: 0
risker is a splendid one to beholdrisker is a splendid one to beholdrisker is a splendid one to beholdrisker is a splendid one to beholdrisker is a splendid one to beholdrisker is a splendid one to behold
Send a message via MSN to risker
Best tut i've seen on C#
For the basic stuff

+Rep
Reply With Quote
  #3  
Old 04-13-2009, 07:59 AM
Sky_King's Avatar
Hacker

 
Join Date: Mar 2009
Location: In the US now
Posts: 181
Thanks: 52
Thanked 10 Times in 6 Posts
Reputation: 143
Rep Power: 1
Sky_King will become famous soon enoughSky_King will become famous soon enough
Wow. Thanks, this is great!
Reply With Quote
  #4  
Old 04-14-2009, 07:36 AM
Morphex's Avatar
Mentor

 
Join Date: Dec 2008
Location: Norway, Ski
Posts: 132
Thanks: 2
Thanked 1 Time in 1 Post
Reputation: 39
Rep Power: 1
Morphex is on a distinguished road
I don't say any thing else then
Reply With Quote
  #5  
Old 05-03-2009, 08:03 PM
PlayerH's Avatar
Premium Member

 
Join Date: Apr 2007
Posts: 670
Thanks: 15
Thanked 4 Times in 3 Posts
Reputation: 305
Rep Power: 4
PlayerH is a jewel in the roughPlayerH is a jewel in the roughPlayerH is a jewel in the roughPlayerH is a jewel in the rough
Wow very nice!Looking for more
Reply With Quote
  #6  
Old 05-06-2009, 04:39 PM
Guru

 
Join Date: Apr 2009
Posts: 90
Thanks: 2
Thanked 0 Times in 0 Posts
Reputation: 1
Rep Power: 1
CQfanatic is an unknown quantity at this point
some of the images doesn't work can you fix it please......ty
Reply With Quote
  #7  
Old 05-06-2009, 05:41 PM
Wynthar's Avatar
Advanced Hacker

 
Join Date: Feb 2009
Location: So Cal, USA
Posts: 264
Thanks: 30
Thanked 39 Times in 15 Posts
Reputation: 235
Rep Power: 2
Wynthar has a spectacular aura aboutWynthar has a spectacular aura aboutWynthar has a spectacular aura about
Try reloading? I just loaded the page and they seem to be working.
Reply With Quote
D3scene
Welcome to D3scene - probably the best location for all Gamers.

To participate in our friendly environment you have to register. After completing registration you will have full access to all threads and features. We care about members and try to make your stay as pleasant as possible. We are unique with the following feature for members - you will not see a single Advertisement!


The best: registration is completely free. It will not cost you a single penny or harm you in any way. You will lose nothing except 1 minute of your time. So why not register? We would be happy to see you around!
Reply

Tags
c#, programming, tutorial

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Evolution of Viruses risker Internet Guides 13 12-29-2008 07:51 AM


All times are GMT +1. The time now is 09:40 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0 ©2009, Crawlability, Inc.
vBulletin style developed by Transverse Styles