Hello everybody
I Have a doubt
i have created an application in VS2010 for windows application
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
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)
i want to code in such a way that
for the first time when i click the button the form2 will appear than i'll close the form2
then again when i click the button for the second time the form2 will appear than i'll close the form2
---
---
---
---
--
---
like for the 30th time when i click the button the form2 will appear than i'll close the form2
but the confusion here is
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
i am getting totally confused how to do this please help me