Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#4.0 Forms
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 25-Apr-12 5:10am
Edited 25-Apr-12 6:52am
v4
Comments
SAKryukov at 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

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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 Smile | :) .)
 
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
  Permalink  
v2

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

  Print Answers RSS
0 OriginalGriff 8,284
1 Sergey Alexandrovich Kryukov 7,327
2 DamithSL 5,614
3 Manas Bhardwaj 4,986
4 Maciej Los 4,920


Advertise | Privacy | Mobile
Web03 | 2.8.1411023.1 | Last Updated 25 Apr 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100