I remember there's an actual method of doing that, but don't quite remember, but you can go with a sleezy inefficient but workable method.Originally posted by allGenreGamer
Yeah, as in the program restarts from the very beginning. Basically shutting down then reloading automatically.
Public Sub Restart()
Unload Form1
Load Form1
Form1.Show
End Sub
Public Sub Restart()
Dim AppPath As String
AppPath = IIf(Right(App.Path, 1) = "\", App.Path, App.Path & "\")
Shell AppPath & App.EXEName & ".exe"
End
End Sub
I have no idea what you're really asking... if you wanna pass a variable to another form, you should have a set function in the other formOriginally posted by Owyn
Does anyone know how to pass variables from one form to another without using global, and i know how to send variables to subprograms, but how do you get that sub program to return a variable without turning it into a function?
As per Winston's suggest, use get/set functions in either form to access each other's private variables.Does anyone know how to pass variables from one form to another without using global
Subs do not return values by definition. Functions return values by definition. ie, you shouldnt have a sub that returns a value.how do you get that sub program to return a variable without turning it into a function?
To get rid of that error, try removing the brackets when you call your subprogram, or altenately, put the word "Call" in front. e.g.Originally posted by Owyn
This works if i kill dice2 from both, but when i added it either expects an = or says theres a syntax error.
Read up on the timer control, and change a picturebox/imagebox's picture when the timer control fires.how do I go abt doing that????
Buy it, or ask your school for help.where can you download VB 6.0 from?