• (3 Pages)
  • +
  • 1
  • 2
  • 3

C# For Beginners Tutorial I Guide to Classes and their uses..

#16 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6063
  • View blog
  • Posts: 23,516
  • Joined: 23-August 08

Posted 26 May 2011 - 01:28 PM

If you're looking for web-based application tutorials, check out the ASP.NET Tutorials.
Was This Post Helpful? 0
  • +
  • -

#17 Fungle  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 256
  • View blog
  • Posts: 337
  • Joined: 06-March 10

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

Was This Post Helpful? 0
  • +
  • -

#18 muffinman8641  Icon User is offline

  • D.I.C Head

Reputation: 4
  • View blog
  • Posts: 121
  • Joined: 17-March 11

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.
Was This Post Helpful? 0
  • +
  • -

#19 Fungle  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 256
  • View blog
  • Posts: 337
  • Joined: 06-March 10

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:
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.
Was This Post Helpful? 0
  • +
  • -

#20 Jimmy_Dean  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 01-December 11

Posted 01 December 2011 - 09:25 PM

Great post! This has cleared up a lot of questions I had.

Thanks!
Was This Post Helpful? 0
  • +
  • -

#21 Yeronox  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 102
  • Joined: 12-March 12

Posted 12 March 2012 - 02:26 PM

Very nice tutorial, this is for new coders so that's perfect for me! :)
Was This Post Helpful? 0
  • +
  • -

#22 Joerabbit  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 19-March 12

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!
Was This Post Helpful? 0
  • +
  • -

#23 lnc12  Icon User is offline

  • D.I.C Regular

Reputation: 1
  • View blog
  • Posts: 268
  • Joined: 21-May 08

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
Was This Post Helpful? 0
  • +
  • -

#24 phasex  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 14
  • Joined: 04-April 12

Posted 15 April 2012 - 04:02 PM

View PostFungle, 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?
Was This Post Helpful? 0
  • +
  • -

#25 helmaks  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 20-April 12

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!!!
Was This Post Helpful? 0
  • +
  • -

#26 cgseif323  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 27
  • Joined: 01-April 09

Posted 19 May 2012 - 11:47 AM

View Postphasex, on 15 April 2012 - 05:02 PM, said:

View PostFungle, 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.
Was This Post Helpful? 0
  • +
  • -

#27 prks  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 15-July 12

Posted 17 July 2012 - 03:19 AM

very nice sir it helped me........
Was This Post Helpful? 0
  • +
  • -

#28 small_chick  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 16
  • Joined: 19-July 12

Posted 19 July 2012 - 07:56 AM

Thanks for your material!
Was This Post Helpful? 0
  • +
  • -

#29 nnti11  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 29-March 11

Posted 25 September 2012 - 02:32 AM

Nice work. :smartass:
Was This Post Helpful? 0
  • +
  • -

#30 joshua201  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 05-September 07

Posted 26 September 2012 - 04:03 AM

Great job there sir
Was This Post Helpful? 0
  • +
  • -

  • (3 Pages)
  • +
  • 1
  • 2
  • 3