|
-
June 13th, 2010, 11:02 PM
#1
Can someone help with my C# programming code?
Im just starting off trying to learn C# and im trying some things out.
MessageBox.Show("Hello World");
i++;
if (i > 1)
label1.Text = "You clicked me " + i++ + " times!";
else
label1.Text = "You clicked me 1 time!";
if (checkBox1 == checked);
label1.Text = "You clicked me " + i + " times";
I am trying to make it so you click a button, and a box pops up that says hello world. And it tells you how many times you clicked the button. But now Im trying to make it so you can have a box checked and it stops recording how many times you clicked. Thanks!
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|