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

C# Windows Programming: Lesson 2 - Controls/Properties [HD]

Loading...

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

Uploaded by on Aug 9, 2010

This tutorial describes the basics of properties and how to change them in both designer view and in real-time. This tutorial assumes only basic programming knowledge and is aimed toward the absolute beginner.

I compile my code with Microsoft Visual C# 2008 Express Edition. I record my videos with Hypercam 2 (now free), and I use Sony Vegas 7 to edit them.

Music provided free by "audionautix."

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (SolutionsForYou)

  • Ok how can I change Form properties? For example how can I change Form1 width or height? I try Form1.Height =600 in the Form1_Load event but it gives me an error... I can't access any of the Form1 properties not only width and height

  • @Kayne921

    In design mode, simply right-click the form and click "Properties."

  • @Kayne921 Actually, I should've been a little more specific. If you want to change Form1's properties during run-time (within code), you would enter the follow in the Form1 Load Event Handler:

    this.Height = 600;

  • thank you very much for this

  • @paintballinwa

    No problem!

see all

All Comments (9)

Sign In or Sign Up now to post a comment!
  • @kaosgnp Try adding // before you put MessageBox

    

  • How would you send this to another computer for someone too open. I wanna send it to a friend saying happy birthday, His birthday is coming up. Plz get back to me.

  • everytime i click on the box it just goes to

    private void button1_Click(object sender, EventArgs e) { //add item }

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