Click here to Skip to main content
15,885,657 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
i have developed a windows application,here i want to click a link button programatically when the end user open the application and does not work on a certain time,if he works go normally.
Posted

Put a timer in your page and based on configured time lapse, trigger the link/button click event.
use PerformClick method of control.

Look here: How to: Call a Button's Click Event Programmatically[^]
Try!
 
Share this answer
 
Comments
Venkateswara Rao Reddipalli 11-Feb-11 2:23am    
thank u but there is requirement "end user have to open the application and have not to work on it".
Sandeep Mewara 11-Feb-11 2:28am    
Did you missed the part I talked about timer control?
Sergey Alexandrovich Kryukov 11-Feb-11 17:20pm    
Correct, my 5.
And dirty I would say (more exactly, this is known anti-pattern "magic button").
See the references in my "Answer" in a minute...
--SA
This is easy, but your design...

This is called anti-pattern.

Read this: http://en.wikipedia.org/wiki/Anti-pattern[^] and this: http://en.wikipedia.org/wiki/Magic_pushbutton[^].

Can you see how that is related to what you're doing?

—SA
 
Share this answer
 
Comments
Sandeep Mewara 11-Feb-11 23:24pm    
Nice! 5!
I didn't knew it. Thanks.
Sergey Alexandrovich Kryukov 12-Feb-11 0:01am    
Thank you. One of my favorite topics. (By, the way, I disagree with couple of anti-patterns from Wikepidia.) I think knowing anti-patterns is more important than design patterns. There is a big criticism against design patterns (there is overview of criticism as well in Wikipedia) which I partially agree with.
--SA

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