If you're looking for web-based application tutorials, check out the ASP.NET Tutorials.
C# For Beginners Tutorial I Guide to Classes and their uses..
#17
Posted 05 July 2011 - 01:53 PM
Sorry I've been sleeping so long, I've changed a hell of alot of things, Mainly the OS, therefore I shall start a new series, Of Monodevelop and C#! Why limit to .NET when you can use C# on more platforms!
This post has been edited by Fungle: 09 July 2011 - 08:25 PM
#18
Posted 17 July 2011 - 04:51 PM
Could you post all the code snippets from the OP together for where each chunk should go? I've never done a single line of C# before and your tutorial is great and very helpful, but I'm confused as to where some things go.
#19
Posted 24 July 2011 - 05:36 AM
As a most requested topic on the thread; I will post the code listing for you.
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:
Here is the code for the Form:
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.
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
Great post! This has cleared up a lot of questions I had.
Thanks!
Thanks!
#21
Posted 12 March 2012 - 02:26 PM
Very nice tutorial, this is for new coders so that's perfect for me!
#22
Posted 19 March 2012 - 01:25 AM
I had to create an account just for this:
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!
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
Thanks man, I am use to Java and Ruby this did actually clear a thing or two up for me
#24
Posted 15 April 2012 - 04:02 PM
Fungle, on 05 July 2011 - 01:53 PM, said:
Sorry I've been sleeping so long, I've changed a hell of alot of things, Mainly the OS, therefore I shall start a new series, Of Monodevelop and C#! Why limit to .NET when you can use C# on more platforms!
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
I have been looking for a tutorial like yours for a long time, not even my university teacher can teach basic principles like the way you have done. Bravo!!!
#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:
Sorry I've been sleeping so long, I've changed a hell of alot of things, Mainly the OS, therefore I shall start a new series, Of Monodevelop and C#! Why limit to .NET when you can use C# on more platforms!
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





|