The McLeodGaming forums were permanently closed on April 30th, 2020. You are currently viewing a read-only archive.
View unanswered posts | View active topics It is currently Fri May 15, 2020 9:28 am



 [ 13 posts ] 
Coder's Help Guide (C# ; C++ ; VisualBasic ) 
Author Message
User avatar

Joined: Mon Aug 11, 2008 6:40 am
Posts: 1648
Location: ... Not America
This here is a guide that will help you start off with Visual Basic, C#, and C++.

Introduction
Here is what you should use, it's also free.

C#: http://www.microsoft.com/express/vcsharp/
Visual Basic: http://www.microsoft.com/express/vb/Default.aspx
C++: http://www.microsoft.com/express/vc/Default.aspx

C# codes will be green
C++will be this colour
Visual Basicwill be blue
Let's start: Shall we?


Your First Applications
We should start by making a pathetic Application.

To start making that:

Open up your Express Edition

Go to File and New

Click Window's Form Application

Name it whatever you like, C++:User's name it with the first textbox

Now, we got ourselves what is know known as "Form1".

You can explore it a little, but not alot to explore

Now, if your toolbox isn't open, press Ctrl+Alt+X

Now, look for the tool "Label","Button", and "Textbox" and put it anywhere on your app

Go to the properties for the Label and go down to the font

Beside it, you see a plus

Go down to size, and make it whatever you like

Now, click the button twice, and you will be brought to Form1.vs or Form1.cs, depends on your product

Now put in this code

Visual Basic
Code:
label1.Text = textbox1.Text

C#
Code:
label1.Text = textbox1.Text;

C++
Code:
this->label1->Text = this->textbox1->Text;


Now try out the application

If there is a problem with this tutorial, tell me.


Mon Jan 19, 2009 5:28 pm
User avatar

Joined: Sat Aug 16, 2008 8:38 am
Posts: 6670
Location: Darkest Antartica
Country: Pakistan (pk)
Gender: Male
Skype: Thaiberium
Currently Playing: The Game
Why not try a simple "Hello world" console application before you start making Windows Forms Programs?? It's like trying to run before you can walk. Or are you assuming people who read this know about object-oriented programming already?

EDIT: I will gladly help with Java if you are interested.

_________________
Image


Tue Jan 20, 2009 2:09 am

Joined: Tue Jan 20, 2009 7:40 am
Posts: 7
Thaiberium wrote:
Why not try a simple "Hello world" console application before you start making Windows Forms Programs?? It's like trying to run before you can walk. Or are you assuming people who read this know about object-oriented programming already?

EDIT: I will gladly help with Java if you are interested.

True, but that's as easy as 1 code, that's why I tried something harder for starters

PS: You can help with Java if you want


Tue Jan 20, 2009 7:42 am

Joined: Wed Oct 22, 2008 7:46 pm
Posts: 278
Location: Florida
Gender: Male
... how the crap do u open the app. I tried clicking the "Start Debugging" and the "Start without Debugging" but it gives me the same error message.


Mon Jan 26, 2009 5:48 pm
User avatar

Joined: Mon Aug 11, 2008 6:40 am
Posts: 1648
Location: ... Not America
You had a build error you need to solve


Tue Feb 03, 2009 3:49 pm
User avatar

Joined: Fri Feb 13, 2009 5:08 pm
Posts: 3
The most important thing for me learning .net was www.MSDN.com, it has the whole .Net library and its made by Microsoft. It also has beginner guides that might help a lot.


P.S. I learned object oriented VB in Excel before i even knew about Visual Studio Express.

_________________
Poethemonk
Download / play my games Here
Image


Sat May 16, 2009 3:39 pm
User avatar

Joined: Mon Aug 11, 2008 10:15 am
Posts: 111
Location: Nothing
here is a good place to learn C++ and he teaches batch programming and html
http://www.youtube.com/user/MasterJake7 ... 7_oLrixrq4

_________________
Image
Get a 4-in-1 wireless controller to use with your xbox or GC maybe that PS2 or your computer
90% of teens today would die if Myspace had a system failure and was completely destroyed. If you are one of the 10% that would be laughing, copy and paste this to your signature.


Sat Sep 05, 2009 1:35 pm
SSF2 Developer
User avatar

Joined: Mon Aug 11, 2008 6:41 am
Posts: 982
Location: Lost in binary.
Country: United States (us)
Gender: Anime Girl
i can projram in java id anyone needs help
i have greefoot and blue j too
gunna get netbeans soon too, when i feel like it

_________________
Adopted by Spikeman & capcomflash.
Old Quotes: show
Kiki wrote:
I feel so proud...I knew a web lingo that he didn't.

Cleod9 wrote:
So Sirto I guess you could say the whole experience was... sir-REAL eh?
Ok that wasn't funny at all, I apologize.


Sat Sep 05, 2009 8:22 pm
User avatar

Joined: Fri Mar 27, 2009 8:55 pm
Posts: 282
Location: Why do you want to know you perv!
Gender: Male
Skype: lomeli1241
Currently Playing: Kingdom Hearts Re:Coded (JP)
Wait. On the C++ we put the code in this section
Code:
#pragma endregion
   private: System::Void button1_Click(System::Object^  sender, System::EventArgs^  e) {
//here right?
       }
   };
}


When I put the code in there, it says I have a build error. The VB one works find though.

_________________
Image
Image
Give cred 2 Doromac
Mes Amis: show
BICURIOUS GEORGE
daniel
King Master X12
Neo_Fire_Sonic
Racerx52
Sora
Tycron
Tyli
User Avatar
yoh
Envoyez-moi un message pour être mon ami! Ha! That's French 4 Pm to be Friends


Sun Jan 10, 2010 2:08 pm
WWW

Joined: Wed Oct 21, 2009 4:23 pm
Posts: 107
Gender: Male
sora12 wrote:
Wait. On the C++ we put the code in this section
Code:
#pragma endregion
   private: System::Void button1_Click(System::Object^  sender, System::EventArgs^  e) {
//here right?
       }
   };
}


When I put the code in there, it says I have a build error. The VB one works find though.

depends, what is your code?


Sun Jan 10, 2010 6:54 pm
User avatar

Joined: Fri Mar 27, 2009 8:55 pm
Posts: 282
Location: Why do you want to know you perv!
Gender: Male
Skype: lomeli1241
Currently Playing: Kingdom Hearts Re:Coded (JP)
I just started C++ so I'm following Captain Mew's instructions.

_________________
Image
Image
Give cred 2 Doromac
Mes Amis: show
BICURIOUS GEORGE
daniel
King Master X12
Neo_Fire_Sonic
Racerx52
Sora
Tycron
Tyli
User Avatar
yoh
Envoyez-moi un message pour être mon ami! Ha! That's French 4 Pm to be Friends


Sun Jan 10, 2010 7:08 pm
WWW

Joined: Wed Oct 21, 2009 4:23 pm
Posts: 107
Gender: Male
sora12 wrote:
I just started C++ so I'm following Captain Mew's instructions.

oh, well yeah, you do insert the code inbetween the brackets after
Code:
 private: System::Void button1_Click(System::Object^  sender, System::EventArgs^  e)


Sun Jan 10, 2010 7:14 pm
User avatar

Joined: Fri Mar 27, 2009 8:55 pm
Posts: 282
Location: Why do you want to know you perv!
Gender: Male
Skype: lomeli1241
Currently Playing: Kingdom Hearts Re:Coded (JP)
Claus wrote:
oh, well yeah, you do insert the code inbetween the brackets after
Code:
 private: System::Void button1_Click(System::Object^  sender, System::EventArgs^  e)

But it still says Build Error.

_________________
Image
Image
Give cred 2 Doromac
Mes Amis: show
BICURIOUS GEORGE
daniel
King Master X12
Neo_Fire_Sonic
Racerx52
Sora
Tycron
Tyli
User Avatar
yoh
Envoyez-moi un message pour être mon ami! Ha! That's French 4 Pm to be Friends


Sun Jan 10, 2010 10:05 pm
WWW
Display posts from previous:  Sort by  
 [ 13 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software for PTF.