C# For Beginners Tutorial I Guide to Classes and their uses..
#16
Posted 26 May 2011 - 01:28 PM
#17
Posted 05 July 2011 - 01:53 PM
This post has been edited by Fungle: 09 July 2011 - 08:25 PM
#18
Posted 17 July 2011 - 04:51 PM
#19
Posted 24 July 2011 - 05:36 AM
The namespace is not the same for everyone, it depends on what you chose as your project name.
Here is the code for the Class file:
using System;
using System.Drawing;
namespace ClassT
{
class Turnip
{
public Color T_Color { get; set; }
public int Size { get; set; }
public int Grow()
{
Size++;
return Size;
}
}
}
Here is the code for the Form:
using System;
using System.Drawing;
using System.Windows.Forms;
namespace ClassT
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
Turnip Bob = new Turnip();
Bob.Grow();
}
}
}
Note: Nothing visual will happen when you run this code.
Also; If anyone has suggestions for anything in Part 2 they want to do say so.
#20
Posted 01 December 2011 - 09:25 PM
Thanks!
#21
Posted 12 March 2012 - 02:26 PM
#22
Posted 19 March 2012 - 01:25 AM
Awesome tutorial.
I'm also just starting out with C#, creating some small programs and still learning the basics of programming.
You made it very easy to understand even for "newbie" like me :-)
Enjoyed reading this, tyvm!
#23
Posted 14 April 2012 - 01:09 PM
#24
Posted 15 April 2012 - 04:02 PM
Fungle, on 05 July 2011 - 01:53 PM, said:
Thanks for your tutorial Fungle. I've used several languages before and have always been curious about c#. You mentioned that it can be used on many platforms. Can you please elaborate what these platforms are and how c# may be used in each?
#25
Posted 20 April 2012 - 01:09 AM
#26
Posted 19 May 2012 - 11:47 AM
phasex, on 15 April 2012 - 05:02 PM, said:
Fungle, on 05 July 2011 - 01:53 PM, said:
Thanks for your tutorial Fungle. I've used several languages before and have always been curious about c#. You mentioned that it can be used on many platforms. Can you please elaborate what these platforms are and how c# may be used in each?
He's talking about Monodevelop for Linux. The Mono Project is basically like .NET for Linux, with C# support. Monodevelop is very similar to Visual Studio, except you can use it on Linux to make .NET (Mono)/ C# projects.
|
|






MultiQuote





|