I have an no modal form.
I calls it from the main form in a button's code with:
formname.show 0
then in the form placed a Cancel button with
private sub Button_Click
unload me
end sub
there is no queryunload, nothing. ok, now this form has privates variables module's scope variables
so I test it
press the button in the main form, the second form appears, press the cancel button in the second form, it dissapear
if I press the button on the main form again, the second form appears again, BUT with all private variable not in its initial values, is to say, they have the data of what was doing the unloaded instance.
WTH is the question?????'?
EDIT: this second form has , a MSINET control for downloading stuff from internet, a Winsock control for connecting to an online service. Some code to explore all the hard disk looking for games files. Tables, labels, more buttons, etc.
I calls it from the main form in a button's code with:
formname.show 0
then in the form placed a Cancel button with
private sub Button_Click
unload me
end sub
there is no queryunload, nothing. ok, now this form has privates variables module's scope variables
so I test it
press the button in the main form, the second form appears, press the cancel button in the second form, it dissapear
if I press the button on the main form again, the second form appears again, BUT with all private variable not in its initial values, is to say, they have the data of what was doing the unloaded instance.
WTH is the question?????'?
EDIT: this second form has , a MSINET control for downloading stuff from internet, a Winsock control for connecting to an online service. Some code to explore all the hard disk looking for games files. Tables, labels, more buttons, etc.