Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Self starting code and self terminating form
Message
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00913733
Message ID:
00914044
Vues:
7
Hello my friend!

yes u can do that! Using timers is possible, two timers will do the job!

the first timer will start when the form loads, and if the user dont click on the button for certain period of time*(which is the timer's interval) then this timer will execute the code contained in the button Click event.

when this happens, u activate the second timer, which was set to disabled when starting at design time the form, and again, with its interval u display for a certain period of time the info in the form, and when the interval gets to its end, u call the Unload Method of the form, without the need of the users clicks on the button.

However if the user clicks on the button,call the code on the click event and then close the form, is a good way to do it.

if u want, I can send u and example my friend!

hope this can help u, see ya around UT!

PEACE TO THE WORLD!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform