Click here to Skip to main content
15,894,180 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to genrate on button click popup in windows form C#?

Popup must be as same size that of the the base form and it should auto destruct in 1-2 sec..

Please if any body can help me with code then it would be gr8 help.
Posted
Updated 25-Apr-12 5:52am
v4
Comments
Sergey Alexandrovich Kryukov 25-Apr-12 11:54am    
What do you mean by "generate"? I know what is "on click", but what is "on click popup" or "generate popup"? What is "popup"?
--SA

1 solution

Handle the event Button.Click and use System.Windows.Forms.Timer. (This is one of the rare cases when this type of timer is useful, due to its simplicity for a developer, and its extremely poor accuracy is not a problem: 1-2 sec is a valid specification for its accuracy :-).)

Using of both things is straightforward. Please see:
http://msdn.microsoft.com/en-us/library/system.windows.forms.timer.aspx[^],
http://msdn.microsoft.com/en-us/library/system.windows.forms.form.aspx[^],
http://msdn.microsoft.com/en-us/library/system.windows.forms.button.aspx[^],
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.click.aspx[^].

—SA
 
Share this answer
 
v2

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