Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

C# Tutorial #2: More If/Else

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
12,802
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on May 2, 2009

Another beginner's tutorial going into depth with if/else statements.

Microsoft C# 2008:
http://www.microsoft.com/express/download/

Head First C#:
http://www.amazon.com/Head-First-C-Andrew-Stellman/dp/0596514824

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 2 dislikes

Link to this comment:

Share to:

Uploader Comments (Xylogeist)

  • Y'know, you could just change its default to transparent VIA properties.

  • An if statement inside of an if statement... Ifception?

  • @Chiefhalo19 LOL

  • Sounds like your reading it from Head First C#...

  • @justhayden15 Like I say in a lot of my vid descriptions, I recommend supplementing my tuts with Headfirst C#. It's an excellent source of information. In fact, some of my examples were partially/largely inspired by their very examples.

see all

All Comments (48)

Sign In or Sign Up now to post a comment!
  • @ravemania100 Go check out my newer series. Its in full HD and much more effective at teaching the concepts.

  • @BrokenBjartur I have the same problem too

  • @1CavitePride1 imma call him Fargo (eureka)

  • i made it so that when you click the button, you can select a color using colorDialog, and if you uncheck the checkbox when you have a color selected, it will remove the color.

  • Realy good video keep it going

  • I am a beginner at programming. I feel awesome when I understand something. lol

  • Good tutorial, LOL, I made it if the box isn't checked it shows a picture of a troll :3

  • Ah worked it out, you can access the control colour via code with this:

    if (label1.BackColor == SystemColors.Control)

    SystemColors being key here.

    Anyway good tuts thus far, good job.

  • The label's default backcolor is not transparent, so when you click the button the first time, no colour will change as it's actually setting it to transparent first, then you click it again and then it turns blue. According to the IDE, the default backcolor for it is Control, but it doesn't seem to be accessible via code.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more