Q.What is the difference between show and show dialog in c#.Net
.Show()
- Using this method, the user can switch between windows in the application.
- Each opened window process requests separately.
- Used when, an application execution proceeds normally.
- Syntax to display: SubWindow subWin = new SubWindow(); subWin.Show();
- Syntax to close :subWin.Close();
.ShowDialog()
- Using this method, the new window is the only window display over the other windows in the application.
- Only opened window responds to user input until it is closed.
- Used when, to create custom dialog boxes or in other situation that
requires user input require before an application can proceed.
- Syntax to display: SubWindow subWin = new SubWindow(); subWin.ShowDialog();
- Syntax to close :subWin.Close();
No comments:
Post a Comment