I am developing a Windows application in which I want to display a pop-up form. I’d like this form to open the same way as a lightbox window does (like when using a jQuery lightbox plugin, for example). How would I go about this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To answer the revised question
On your dialog form set the
Opacityequal to a low number like 10%Add a
System.Windows.Form.Timer. Set itsEnabledproperty totrueand itsIntervalproperty to50For the timer tick event handler write this.
You can try different values of the stepping (
this.Opacity+=.1;) and the timer’s interval to find the the timing you like best.