Newbie needs help~

kyro_02
06-10-2005, 12:24 AM
Hello, I while back...possibly 8months back???

I asked for help, well not long after that I got rid of my computer - and only now bought another one...

Can someone please tell me the "RELOAD" command so I click a button and it will reload the application??

Also the close command (although as far as I can remember all I had to do was change reload to close?)


Thanks.

George7a
06-10-2005, 02:21 AM
You can unload the form with out exiting.

you can do so from the main sub (in a module)

sub main()

Load Form1
Call Form1.MyFunction

Unload Form1

'do what ever you want then laod again

'reloading

Load Form1
Call Form1.MyFunction2

Unload Form1

end sub

when you will get to the end of sub main the program will exit.

Hope it helps

kyro_02
06-10-2005, 02:59 AM
Ok, I didn't make it clear enough.. I am totaly a newbie look at it from a person who has never see/heard of Visual Basics (although I've used it before) :P

I have no idea how to get that functioning with "Reload" button aka button2.

I put it in form1.vb but didn't work?

George7a
06-10-2005, 03:02 AM
Can you explain why do you need a reload button? maybe there is a workaround

kyro_02
06-10-2005, 03:24 AM
I just want a reload button to work so I can muck around with it and experiment.

George7a
06-10-2005, 03:32 AM
I just want a reload button to work so I can muck around with it and experiment.

will this do what you want?

Private Sub Command1_Click()
Form_Load
End Sub

Private Sub Form_Load()
'loading stuff...
MsgBox "I am loading!"
End Sub

Hope it helps..

herilane
06-11-2005, 06:44 AM
put it in form1.vb but didn't work?
Sounds like you're using VB.NET. Yet you've posted in the Legacy VB forums.
Which one is it?

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum