Click here to Skip to main content
15,891,725 members
Home / Discussions / C#
   

C#

 
Rant[REPOST] ASP.Net code won't run Pin
Richard Deeming17-Jan-19 1:42
mveRichard Deeming17-Jan-19 1:42 
AnswerRe: ASP.Net code won't run Pin
Krzysztof Krzysztof19-Jan-19 4:14
Krzysztof Krzysztof19-Jan-19 4:14 
QuestionHow can my "secondary form" still be enabled when a modal MessageBox is shown from the "main form"? Pin
arnold_w16-Jan-19 0:47
arnold_w16-Jan-19 0:47 
AnswerRe: How can my "secondary form" still be enabled when a modal MessageBox is shown from the "main form"? Pin
Mc_Topaz16-Jan-19 1:16
Mc_Topaz16-Jan-19 1:16 
GeneralRe: How can my "secondary form" still be enabled when a modal MessageBox is shown from the "main form"? Pin
arnold_w16-Jan-19 1:31
arnold_w16-Jan-19 1:31 
AnswerRe: How can my "secondary form" still be enabled when a modal MessageBox is shown from the "main form"? Pin
OriginalGriff16-Jan-19 2:49
mveOriginalGriff16-Jan-19 2:49 
GeneralRe: How can my "secondary form" still be enabled when a modal MessageBox is shown from the "main form"? Pin
Pete O'Hanlon16-Jan-19 2:50
mvePete O'Hanlon16-Jan-19 2:50 
AnswerRe: How can my "secondary form" still be enabled when a modal MessageBox is shown from the "main form"? Pin
Luc Pattyn16-Jan-19 3:15
sitebuilderLuc Pattyn16-Jan-19 3:15 
Hi,

As others have said, when a modal window is shown, a new message pump is launched and the previous one is temporarily disabled, so you can't interact with any other open window in your program for as long as the modal window is open.

However, you may drastically improve on the situation with a buried mainform by only using the MessageBox.Show() overloads that have an explicit owner as their first parameter (example[^]), where this would be the suggested value. Doing so the calling Form becomes the owner of the modal dialog (it isn't by default!) resulting in a more solidary behavior of caller and callee.

Smile | :)
Luc Pattyn [My Articles] Nil Volentibus Arduum


modified 16-Jan-19 9:47am.

GeneralRe: How can my "secondary form" still be enabled when a modal MessageBox is shown from the "main form"? Pin
BillWoodruff16-Jan-19 21:43
professionalBillWoodruff16-Jan-19 21:43 
GeneralRe: How can my "secondary form" still be enabled when a modal MessageBox is shown from the "main form"? Pin
Luc Pattyn22-Jan-19 7:29
sitebuilderLuc Pattyn22-Jan-19 7:29 
AnswerRe: How can my "secondary form" still be enabled when a modal MessageBox is shown from the "main form"? Pin
BillWoodruff16-Jan-19 22:42
professionalBillWoodruff16-Jan-19 22:42 
GeneralRe: How can my "secondary form" still be enabled when a modal MessageBox is shown from the "main form"? Pin
arnold_w23-Jan-19 21:33
arnold_w23-Jan-19 21:33 
QuestionMEF Exception Pin
Kevin Marois15-Jan-19 7:45
professionalKevin Marois15-Jan-19 7:45 
AnswerRe: MEF Exception Pin
Nathan Minier16-Jan-19 1:30
professionalNathan Minier16-Jan-19 1:30 
QuestionAccess Db in DataGridView Pin
User 1367511413-Jan-19 7:27
User 1367511413-Jan-19 7:27 
AnswerRe: Access Db in DataGridView Pin
Dave Kreskowiak13-Jan-19 12:03
mveDave Kreskowiak13-Jan-19 12:03 
GeneralRe: Access Db in DataGridView Pin
User 1367511413-Jan-19 22:24
User 1367511413-Jan-19 22:24 
GeneralRe: Access Db in DataGridView Pin
Dave Kreskowiak14-Jan-19 2:46
mveDave Kreskowiak14-Jan-19 2:46 
AnswerRe: Access Db in DataGridView Pin
OriginalGriff13-Jan-19 22:15
mveOriginalGriff13-Jan-19 22:15 
QuestionFind Subnet Mask Pin
Richard Andrew x6412-Jan-19 8:50
professionalRichard Andrew x6412-Jan-19 8:50 
AnswerRe: Find Subnet Mask Pin
Luc Pattyn12-Jan-19 16:35
sitebuilderLuc Pattyn12-Jan-19 16:35 
GeneralRe: Find Subnet Mask Pin
Richard Andrew x6413-Jan-19 4:22
professionalRichard Andrew x6413-Jan-19 4:22 
Questionimport data Pin
Member 1358870012-Jan-19 3:15
Member 1358870012-Jan-19 3:15 
AnswerRe: import data Pin
Richard MacCutchan12-Jan-19 3:37
mveRichard MacCutchan12-Jan-19 3:37 
AnswerRe: import data Pin
Victor Nijegorodov12-Jan-19 5:01
Victor Nijegorodov12-Jan-19 5:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.