Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void ShowMyForm()
- {
- MyForm myForm = new MyForm();
- myForm.ShowDialog();
- }
- public void ShowMyForm()
- {
- using (MyForm myForm = new MyForm())
- {
- myForm.ShowDialog();
- }
- }
- using ( var dlg = new MyDialog() )
- {
- // other code here to initialize, etc.
- dlg.ShowDialog();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement