English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I mean i have to write Vb.net codes to control the click event of command button. After some seconds i wanna click the command button automatically without manually clicking it.Or any other way to trigger the click event of command button??? suggestions pls..is it possible ??

2007-03-12 20:53:11 · 4 answers · asked by shobs 1 in Computers & Internet Programming & Design

4 answers

There's a Timer class which helps you perform a certain event periodically.

If you're talking about ASP.NET (web forms), I have tried the asp.net ajax framework which was lately released by Microsoft (like in late january).

It has a Timer Control which you can use for executing statements asynchronously while you perform partial page updates. It's really great and so easy to use.
http://ajax.asp.net/

2007-03-13 03:42:31 · answer #1 · answered by Smutty 6 · 1 0

Of course it's possible;
However, it doesn't make sense to automatically click the button; indeed, when clicking the button, an event is called and the event executes a logic; so simply you should create a Timer event which should execute the logic after a certain interval is elapsed. Check MSDN and look there for Timer Class; there are enough illustrative examples on how to use the Timer Class.

2007-03-13 00:16:02 · answer #2 · answered by Coosa 2 · 1 0

Yes, you can do this, there's a SendMessage function where you can pass a WM_CLICK message to a button of your choice. If you don't need to test the click functionality, and instead want to test the event that is called when the button is clicked, just call the resulting event handler.

2007-03-13 03:51:40 · answer #3 · answered by Pfo 7 · 0 0

application can in all probability close down a working laptop or computing device very particularly, yet no application can activate an in depth down computing device. application demands hardware to be powered directly to execute. Your easiest wager is to place a password on each and every of the person names that your teenager would not recognize. Then at 11, purely bypass over and lock it down. in case you have abode windows XP or Vista. purely press the abode windows key and L on the comparable time. On abode windows 2000, press Ctrl+Alt+Del and choose lock computer.

2016-12-18 12:22:48 · answer #4 · answered by Anonymous · 0 0

fedest.com, questions and answers