M
Michaelas10
The first one is: Cannot implicitly convert type 'int' to 'bool'
The second one: 'System.Windows.Forms.FormWindowState' is a 'type'
The code is:
private void button6_Click(object sender, EventArgs
e)
{
int i;
if (i = 2)
{
i = 0;
}
else
{
i += 1;
}
if (i = 1)
{
FormBorderStyle = FormBorderStyle.None;
FormWindowState = FormWindowState.Maximized;
button6.Text = "Normal Screen";
}
else
{
FormBorderStyle = FormBorderStyle.Sizable;
FormWindowState = FormWindowState.Maximized;
button6.Text = "Full Screen";
}
}
Oh, how can i use the "static" thing in C#?
Sorry, i worked long time with Visual Basic and it's hard for me to
move to another language.
Michaelas10
The second one: 'System.Windows.Forms.FormWindowState' is a 'type'
The code is:
private void button6_Click(object sender, EventArgs
e)
{
int i;
if (i = 2)
{
i = 0;
}
else
{
i += 1;
}
if (i = 1)
{
FormBorderStyle = FormBorderStyle.None;
FormWindowState = FormWindowState.Maximized;
button6.Text = "Normal Screen";
}
else
{
FormBorderStyle = FormBorderStyle.Sizable;
FormWindowState = FormWindowState.Maximized;
button6.Text = "Full Screen";
}
}
Oh, how can i use the "static" thing in C#?
Sorry, i worked long time with Visual Basic and it's hard for me to
move to another language.
Michaelas10