Changing label's properties by coding ???(VS studio 2010 )

I've try to change label's properties by coding.When I had clicked debug=>starting debugging, the properties didn't change.
I hope sommeone can help me! thanks!
this is my code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication
public partial class Form1 : Form
public Form1()

private void Form1_Load(object sender, EventArgs e)
label1.Text = "This is my first Lable";
label1.BorderStyle = BorderStyle.Fixed3D;
label1.TextAlign = ContentAlignment.MiddleCenter;
Last edited on
That's C#, not C++. Post at the MSDN Forums.
Topic archived. No new replies allowed.