DOS Games Message Board
DOS Games Discussion
A message board to talk about DOS games, get help, and find old games.
Do NOT post warez or abandonware requests please
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Anyone still use VB6?

 
Post new topic   Reply to topic    DOS Games Discussion Forum Index -> Game Creation
Author Message
abc123
Newbie
Newbie


Offline
Joined: 11 May 2008
Posts: 2

PostPosted: Sun May 11, 2008 1:18 am     Post subject: Anyone still use VB6? Reply with quote

I need to know which should come first and explanation?

Unload Me
End

or

End
Unload Me

Thanx
Back to top
wardrich
"Some Troll"


Offline
Joined: 14 Sep 2002
Posts: 3944
Location: Ontario Canada

PostPosted: Sun May 11, 2008 1:19 am     Post subject: Reply with quote

I'd guess

Unload Me
End

but I don't think you should need "Unload Me" since End kills the entire app... doesn't it?
Back to top
abc123
Newbie
Newbie


Offline
Joined: 11 May 2008
Posts: 2

PostPosted: Sun May 11, 2008 1:23 am     Post subject: Reply with quote

Thanx - that was fast!!

I'm not sure what unload me does either LOL
Back to top
wardrich
"Some Troll"


Offline
Joined: 14 Sep 2002
Posts: 3944
Location: Ontario Canada

PostPosted: Sun May 11, 2008 10:04 pm     Post subject: Reply with quote

abc123 wrote:
Thanx - that was fast!!

I'm not sure what unload me does either LOL


My vb6 skills are a bit rusty, but as far as I remember it's for multi-form projects...

Make a project.
Code:

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


Hopefully that works... I can't remember if show/hide are . commands or not.

I can't remember the term for it... but "me" I believe is a variable that refers to the form the code is resident in... you should be able to do "me.hide/unload me".
Back to top
Display posts from previous:   
Post new topic   Reply to topic    DOS Games Discussion Forum Index -> Game Creation All times are GMT - 5 Hours
Page 1 of 1

 
Free Windows games


Powered by phpBB © 2001, 2005 phpBB Group and Ask an Expert
Also powered by Darren and the other admin and mods' hard work! ;)