Results 1 to 3 of 3
  1. #1
    richdude212's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    Tampa, FL
    Posts
    352
    Reputation
    10
    Thanks
    56
    My Mood
    Inspired

    [C#] Tutorial: Understanding The Basics Part 1

    I want to start the tutorials out simple, over time I plan on making them more complex and ... useful.
    First we need to download the required software to run our compiler.
    • Visual Studio C# 2010 Express Here (Select Visual C# 2010 Express and pick your language)


    Install by following the on-screen instructions.

    Start Visual Studio C# 2010 Express, click new project, select "Windows" from the list on the left, then select "Windows Form Application", name the project and press Ok.

    Lets start by adding a Text box, Button, and Label.
    click on the "Toolbox" tab located on the left side of the screen, select button and drag it on to our form. Repeat the process to add a Textbox and Label.

    You can now edit the attributes of these objects. For example lets change the name of the button to "Submit." Click the button then in the properties box on the right side of the screen find the field called "text", erase "button1" and replace it with "Submit".

    Your screen should now look like this:


    Now lets edit the code. One way of doing this is to right click anywhere on the form and select "View Code". Since we need to edit the button for this example we need to double click the button labeled "Submit". Here we can manipulate our form via C#.

    In the button1_click method add the following line:
    Code:
    label1.Text = textBox1.Text;
    label1 - is describing the name of the label we added
    .Text - is telling C# that the value we are about to receive needs to be stored as text for that label
    = - lol
    textbox1 - is describing the name of the textbox we added
    .Text - same as before
    ; - Aways add these at the end of the command

    Run your program and view the result.

    ... I was going to add more but I'm tried, I'll add more another day.

    If you have any questions or requests please don't hesitate to post them.
    [IMG]https://i516.photobucke*****m/albums/u330/richdude212-2.jpg[/IMG]


    [IMG]https://i516.photobucke*****m/albums/u330/richdude212/leet.gif[/IMG]

    Get NX Cash For Completing Offers Here! (will redirect)


    Remember to press when people help you!
    Not bad for $14.99 a month...

  2. The Following User Says Thank You to richdude212 For This Useful Post:

    VernK (04-02-2011)

  3. #2
    sanduke's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0
    hi
    this is very good. did you ever do any more installments of this tutorial?
    thanks

    hi-this is very good. did you ever do any more installments of this tutorial? -
    thanks
    Last edited by sanduke; 03-28-2011 at 08:02 AM.

  4. #3
    'Bruno's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Portugal
    Posts
    2,883
    Reputation
    290
    Thanks
    1,036
    My Mood
    Busy
    This is not a way of learning a .NET language to be honest. (If you don't have any background in programming)

    You should start with console apps, to get used to the syntax, program structure, and everything that programming needs. THEN... move to this.