Want to start learning C#
If your a member of codenstuff then this is the main place to be. Get together..talk..chat and ponder. Have fun. Chill out. Play games.
8 posts
Page 1 of 1
Hey guys I want to start learning C# from scratch.
Can you guys recommend me how and from where do I start?
I have Visual C# Express Edition installed.
Can you guys recommend me how and from where do I start?
I have Visual C# Express Edition installed.
Instead of LOL use this -
LSIBMHBIWFETALOL
Which means -
Laughing silently in between my head because it wasn't funny enough to actually laugh out loud!
LSIBMHBIWFETALOL
Which means -
Laughing silently in between my head because it wasn't funny enough to actually laugh out loud!
Well you have C# installed so thats a good start lol.
Just do as you did with VB and read through tutorials to pick up the syntax to learn how to use it. A good way to see the differences between how you code something in VB and how to do that in C# is to use a convertor like: http://www.developerfusion.com/tools/co ... to-csharp/
For example heres a few common things in VB:
Just do as you did with VB and read through tutorials to pick up the syntax to learn how to use it. A good way to see the differences between how you code something in VB and how to do that in C# is to use a convertor like: http://www.developerfusion.com/tools/co ... to-csharp/
For example heres a few common things in VB:
Code: Select all
And this is how it looks when converted to C#:Dim Picture as bitmap = my.resources.horse
Picturebox1.image = Picture
For i = 0 to 100
Label1.text = i
next i
msgbox("Hello World")
Code: Select all
You just have to read up on it and try things out cooll;bitmap Picture = my.resources.horse;
Picturebox1.image = Picture;
for (i = 0; i <= 100; i++) {
Label1.text = i;
}
Interaction.MsgBox("Hello World");
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
Sorry Craig, but that is wrong. Conversions in C# are very strict, so you have to use i.ToString() in the for loop. And it is reapply important to remember that C# is case sensitive.
LMAOSHMSFOAIDMT
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;
Over 30 projects with source code!
Please give reputation to helpful members!
![Image]()
![Image]()
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;
Over 30 projects with source code!
Please give reputation to helpful members!

Code: Select all
Is correct. It's better to load images from an external directory. Saves resources and the program loads slightly faster.Bitmap picture = Image.FromFile("/horse.png");
pictureBox1.Image = (Image)picture;
for (i = 0; i <= 100; i++) {
label1.Text = i.ToString();
}
MessageBox.Show("Hello World!");
Yeah yeah yeah I was just giving an example of the convertor lol
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
Since Bitmap is derived from Image you do not need a cast to set the picturebox's image.
LMAOSHMSFOAIDMT
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;
Over 30 projects with source code!
Please give reputation to helpful members!
![Image]()
![Image]()
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;
Over 30 projects with source code!
Please give reputation to helpful members!

C# isn't all that different from VB. The major difference is in things like variable declaration, If statements, case sensitivity, and syntax.
Message Boxes:
Message Boxes:
Code: Select all
'VB'
msgbox(...)
'or'
messagebox(...)
Code: Select all
If Statements:
//C#
messagebox.show(...);
Code: Select all
'VB'
If (...) Then
(...)
End If
Code: Select all
Variable Declaration:
//C#
if (...)
{
(...)
}
Code: Select all
'VB'
Dim X as Integer = 5
Dim Y as String = "ASDF"
Dim Z as Boolean = true
Code: Select all
//C#
int X = 5;
string Y = "ASDF";
bool Z = true;
8 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023