form should not appear after the 30 button_click
<p>*<em>strong text</em>*I Have a doubt</p>

<p>i have created an application in VS2010 for windows application </p>

<p>i have used form1 in form1 i used a button, onclicking on to the button it will load a second form ie.. form2 in which image is added </p>

<p>the overall situation is when i execute the application i'll get form1 and by clicking on the button(which is in form1) it will display the form2 (means it will display the image in the form2)</p>

<p>i want to code in such a way that </p>

<p>for the first time when i click the button the form2 will appear than i'll close the form2</p>

<h2>then again when i click the button for the second time the form2 will appear than i'll close the form2</h2>

<h2>---</h2>

<h2>---</h2>

<hr>

<p>like for the 30th time when i click the button the form2 will appear than i'll close the form2</p>

<p>but the confusion here is </p>

<p>when i click the button for the 31th time the form2 should not appear what ever it may be the form2 should never display again</p>

<p>i am getting totally confused how to do this please help me</p>

<p>please guide me with the code please</p>
