Make main window wait for message box
-
Hi guys/girls, When you use MessageBox.Show("message here"), the programme will effectively freeze and wait for you to press OK on the message box before continuing in the code. How do I make this happen for my own custom built pop-up windows? I'm sure this should be simple but i'm stumped :( Any help would be great! Thanks in advance :) Lee
-
Hi guys/girls, When you use MessageBox.Show("message here"), the programme will effectively freeze and wait for you to press OK on the message box before continuing in the code. How do I make this happen for my own custom built pop-up windows? I'm sure this should be simple but i'm stumped :( Any help would be great! Thanks in advance :) Lee
-
Hi guys/girls, When you use MessageBox.Show("message here"), the programme will effectively freeze and wait for you to press OK on the message box before continuing in the code. How do I make this happen for my own custom built pop-up windows? I'm sure this should be simple but i'm stumped :( Any help would be great! Thanks in advance :) Lee
Use the ShowDialog method :)
-
How are you showing them? Using
Show
method? UseShowDialog
instead.It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
-
Hi guys/girls, When you use MessageBox.Show("message here"), the programme will effectively freeze and wait for you to press OK on the message box before continuing in the code. How do I make this happen for my own custom built pop-up windows? I'm sure this should be simple but i'm stumped :( Any help would be great! Thanks in advance :) Lee