timer control

  • Thread starter Thread starter bill
  • Start date Start date
B

bill

This has to be simple but I cant figure it out

I have 2 forms

one form opens and I have a timer control close it after
5 seconds. How do I get the second form to open
automatically.

IF someone could give a code example

Thanks
 
Well, that's simple enough. You have the timer set with Interval of 5000.
When loading the first form, you let it start: Timer1.Start()

Now, all the other work is done by the Tick event of the timer.
Attach the following code to it:

Me.Close()
Dim F As New OtherForm
F.Show()

Where OtherForm is the name of the class of the second form.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top