Anyone still use VB6?
Posted: Sun May 11, 2008 1:18 am
I need to know which should come first and explanation?
Unload Me
End
or
End
Unload Me
Thanx
Unload Me
End
or
End
Unload Me
Thanx
A message board to talk about DOS games, get help, and find old games.
https://mail.dosgames.com/forum/
My vb6 skills are a bit rusty, but as far as I remember it's for multi-form projects...abc123 wrote:Thanx - that was fast!!
I'm not sure what unload me does either LOL
Code: Select all
Form1: frmMain
2 buttons:
cmdNextForm
cmdExit
Form2: frmTwo
1 button:
cmdBack
cmdNextForm:
frmMain.hide 'hides this form, but keeps it alive in memory
unload frmMain 'kills the form from memory
load frmTwo 'initiates frmTwo and loads it into memory
frmTwo.show 'shows the initiated frmTwo
cmdExit:
end 'kills the application
cmdBack:
frmTwo.hide
unload frmTwo
load frmMain
frmMain.show