Problem with Flash screen form

  • Thread starter Thread starter Rehan Shaikh via .NET 247
  • Start date Start date
R

Rehan Shaikh via .NET 247

i've created a flash screen form with the follw. code;
dim obj as new form2()
private sub form1_load( By val sender.....
me.timer1.start()
obj.showdialog()
end sub

private sub timer1_tick (By val Sender......
me.timer1.stop()
obj.close()
end sub

The flash screen form is appearing, but i've to close it manually and then the next form appears. it should halt based on the Milisec time specified in the timer.property. plz help. 10x.
 
Rehan Shaikh via .NET 247 said:
i've created a flash screen form with the follw. code;
dim obj as new form2()
private sub form1_load( By val sender.....
me.timer1.start()
obj.showdialog()
end sub

private sub timer1_tick (By val Sender......
me.timer1.stop()
obj.close()
end sub

The flash screen form is appearing, but i've to close it manually and
then the next form appears. it should halt based on the Milisec time
specified in the timer.property. plz help. 10x.

I can not reproduce it. If the Timer's interval property is set to 3000,
Form2 closes after 3 sec as expected.


--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html
 
Rehan said:
i've created a flash screen form with the follw. code;
dim obj as new form2()
private sub form1_load( By val sender.....
me.timer1.start()
obj.showdialog()
end sub

private sub timer1_tick (By val Sender......
me.timer1.stop()
obj.close()
end sub

The flash screen form is appearing, but i've to close it manually and then the next form appears. it should halt based on the Milisec time specified in the timer.property. plz help. 10x.

Don't use Form.ShowDialog(). If a form is displayed as modal, the code
following the ShowDialog method is not executed until the dialog box is
closed. However, when a form is shown as modeless, the code following
the Show method is executed immediately after the form is displayed.

http://msdn.microsoft.com/library/?url=/library/en-us/vbcon/html/vbtskdisplayingmodelessform.asp

Simply use Show() or (even better) start your splash-screen in its own
thread:

http://www.gotdotnet.com/Community/...mpleGuid=dc213fd4-a5f8-4b13-9d14-ab9233f4dc17
http://www.gotdotnet.com/community/usersamples/?query=splash

Cheers

Arne Janning
 
Back
Top