Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i need to redirect from one form to another form using the timer control or i need to go for next form after some seconds , with out doing any action(clicking the buttons some thing like that).
Posted

Simply place the timer control on the form and in the eventhandler simply hide and show the forms. Use the Enabled property to activate or deactivate it. In the eventhandler deactivate it because this event should only happen once.

Good luck!
 
Share this answer
 
Comments
Mahanthesh 4-Aug-10 4:51am    
can u please send me example code????
E.F. Nijboer 4-Aug-10 11:47am    
I will create you an example tomorrow, would you like it to be VB6? or VB.NET?
E.F. Nijboer 5-Aug-10 7:03am    
Posted the example link as another answer.
I wrote you a simple vb6 example project that has a form with only a single button. When you click it, it will create a second form that will be visible for 2 seconds and then disappears again. You can click multiple times to create more and more forms that will simply be gone in 2 seconds after creation.

Example project:
http://orion.woelmuis.nl/FormTimerExampleProject.zip[^]

Good luck!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900