I'm downloading C#!
I can't wait for it to finish.
Right now the installation is so slow!
Did I mention that it was Microsoft Visual C# 2010 Express Edition?
Last edited by ThePCKid (2010-04-25 20:57:03)
Offline
Offline
Offline
Hopefully it finishes soon, I have to go to bed in about 45 minutes
Offline
Offline
Offline
Offline
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
MessageBox.Show("Hello World!", "Hello!");
}
}
}My first C# program
Offline
ThePCKid wrote:
Code:
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsFormsApplication1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { MessageBox.Show("Hello World!", "Hello!"); } } }My first C# program
![]()
What does it do?

Offline
banana500 wrote:
What does it do?
A Hello World program that runs when you click a button, I guess.
Offline
banana500 wrote:
ThePCKid wrote:
Code:
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsFormsApplication1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { MessageBox.Show("Hello World!", "Hello!"); } } }My first C# program
![]()
What does it do?
When you run the application and press "button1" a message box will pop up and it will look like this:
My site Offline
Last night, after the installation, I got a product key :3
Offline
I got VB 2010 express. It took up like, what, 170 mb?
I made a really advanced web browser my first day
Offline
SeptimusHeap wrote:
I got VB 2010 express. It took up like, what, 170 mb?
I made a really advanced web browser my first day![]()
I have VB 2010 too but I used VB 2005 for my web browser because it uses an older version of .net framework. My web browser features a Custom Menu Strip Generator see link.
My site Offline
All teh best learning C# its really an awesome programming language i must say , btw as u are a good game maker so i guess u should download XNA development kit thats a really worthy addition to C# that will also enable you to build a X-box game
.
btw here is ma first program not at C# but at C++
#include<iostream.h>
void main()
{ cout<<"hello";
}it bugged cuz i fogot to enter getch in it
.
Last edited by fanofcena (2010-04-26 09:53:13)
Offline
fanofcena wrote:
All teh best learning C# its really an awesome programming language i must say , btw as u are a good game maker so i guess u should download XNA development kit thats a really worthy addition to C# that will also enable you to build a X-box game
.
btw here is ma first program not at C# but at C++Code:
#include<iostream.h> void main() { cout<<"hello"; }it bugged cuz i fogot to enter getch in it
.
![]()
Hmm.. that is bugged, how about:
#include<iostream.h>
void main()
{
std::cout<<"hello";
}OR
#include<iostream.h>
using namespace std;
void main()
{
cout<<"hello";
}I fixed the bugs!

Offline
Sperry wrote:
fanofcena wrote:
All teh best learning C# its really an awesome programming language i must say , btw as u are a good game maker so i guess u should download XNA development kit thats a really worthy addition to C# that will also enable you to build a X-box game
.
btw here is ma first program not at C# but at C++Code:
#include<iostream.h> void main() { cout<<"hello"; }it bugged cuz i fogot to enter getch in it
.
![]()
Hmm.. that is bugged, how about:
Code:
#include<iostream.h> void main() { std::cout<<"hello"; }OR
Code:
#include<iostream.h> using namespace std; void main() { cout<<"hello"; }I fixed the bugs!
![]()
This is how you do it in C#:
using System;
class Hello
{
static void Main() {
Console.Write("Hello world!");
}
}But you can't see the result because it quits right away. Does anyone know how to make it that it stays open until the close button is clicked?
Last edited by ThePCKid (2010-04-27 17:31:16)
Offline
meew0 wrote:
I've got MS VisualStudio 2010 Professional. That's the best version you can introduce
![]()
Lucky. I only have these Visual Studio programs installed:
• Visual Basic 2008
• Visual C# 2010
Offline
SeptimusHeap wrote:
I got VB 2010 express. It took up like, what, 170 mb?
I made a really advanced web browser my first day![]()
The installation was 144MB.
My computer's read/write speed is so slow...
Offline
Sorry for quadruple posting, but here is a tool that I made while being bored:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Console.Write("Enter a character: ");
char c = (char)Console.Read();
if (Char.IsUpper(c))
{
Console.WriteLine("Character is uppercase.");
}
else if (Char.IsLower(c))
{
Console.WriteLine("Character is lowercase.");
}
else if (Char.IsDigit(c))
{
Console.WriteLine("Character is a number.");
}
else
{
Console.WriteLine("Character is a symbol");
}
}
}
}Offline