crank01
01-13-2012, 04:39 PM
I am looking to create an If statement, however I am having difficulty starting it :confused: Now I know IF statements need the use of integers inside the parenthesis correct? However I am trying to create something like so: public pictureRevealer()
{
if (toolStripButton1_Clicked && toolStripMenuItem1_Clicked)
{
this.pictureBox1.Visible = true;
}
}
Am I far off on accomplishing this, or way way off? Do I need to set a boolean value for toolStripButton1 and use if (toolStripButton1 == true)
{
this.pictureBox1.Visible = true;
}
then do the same for toolStripMenuItem1? Please give me any ideas :o
{
if (toolStripButton1_Clicked && toolStripMenuItem1_Clicked)
{
this.pictureBox1.Visible = true;
}
}
Am I far off on accomplishing this, or way way off? Do I need to set a boolean value for toolStripButton1 and use if (toolStripButton1 == true)
{
this.pictureBox1.Visible = true;
}
then do the same for toolStripMenuItem1? Please give me any ideas :o