|
-
Jul 28th, 2008, 02:09 PM
#1
Thread Starter
Lively Member
passing control from one form to another
Problem I'm having is that i can pass control from one form to another when the user presses a button like:
Private Sub Button2_Click1(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click
Me.Hide()
Form3.Visible = True
Form3.Focus()
End Sub
...but, what if I want to pass control based on a timeout.....the following doesn't work (where sleep is a simple loop to pass time):
Private Sub Form7_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.Sleep(1000000)
Form1.Visible = True
Form1.Focus()
End Sub
any ideas?? (what I mean by doesn't work is that the displayed form doesn't change to the new form)
thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|