- Joined
- Jun 6, 2007
- Messages
- 56
- Reaction score
- 0
Hi,
I'm new to C# and just teaching my self how to code from exmaple off the internet etc.
I'm really bored so i thought i'd tre something out..
I'm stuck with this
I get these errors with it
It's simple code but i'm new to C# and am stuck with it.
Thanks.
I'm new to C# and just teaching my self how to code from exmaple off the internet etc.
I'm really bored so i thought i'd tre something out..
I'm stuck with this
if (checkBox1.Checked == true)
{
(checkBox2.Enabled == true);
}
else
{
(checkBox2.Enabled == false);
}
I get these errors with it
Error 1 Only assignment, call, increment, decrement, and new object expressions can be used as a statement C:\Users\Jack Parker\AppData\Local\Temporary Projects\WindowsFormsApplication1\Form1.cs 23 17 WindowsFormsApplication1
Error 2 Only assignment, call, increment, decrement, and new object expressions can be used as a statement C:\Users\Jack Parker\AppData\Local\Temporary Projects\WindowsFormsApplication1\Form1.cs 27 17 WindowsFormsApplication1
It's simple code but i'm new to C# and am stuck with it.
Thanks.

