Popup window in winform c# -


i'm working on project need popup window. thing want able add textboxes etc in popup window thru form designer.

so have button , when click on it open window i've designed in form designer.

i've been doing googling haven't found needed yet hoping guys me!

just create form (lets call formpopoup) using visual studio. in button handler write followng code:

var form = new formpopoup(); form.show(this); // if need non-modal window 

if need non-modal window use: form.show();. if need dialog (so code hangs on invocation until close opened form) use: form.showdialog()


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

qt - Errors in generated MOC files for QT5 from cmake -