Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21843

[RESOLVED] maybe a stupid question at this point of my programming life!.

$
0
0
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.

Viewing all articles
Browse latest Browse all 21843

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>