Hi sunnyboyj,
welcome to basic4ppc
The first form shown in basic4ppc is always the "main" form. This form cannot be closed because closing the "main" form exits the program.
The trick ist to show a second form, and the hide the "main" form from the taskbar so that you cannot switch between both forms. This is done by setting the form.text to space.
When closing the second form, you should reset the text of the "main" to it's original value.
I attached a modified sample of "GuessMyNumber", calling a second form with a button click (while hiding the "main" form), and showing the "main" form again after closung form2.
specci48
oops... i should type faster not to miss any posts...