Dialog Form MsgBox

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi, does anybode know how to create a Form like a msgbox?
I want to set my own text on the buttons and the size and positions should
work like a msgBox. So the 'parent' form may not respond to the close/ok
button and the dialog form may not have a close button.
I can create such a form but i can disable the 'parent' form (yes al the
controls on it ) but the close event still react.
Is there a possibility to stop the whole application exept for the dialog
form?
 
When you create a new instance of your dialog, you need to hide the main
form.

Like this:

MyDialog dlg = new MyDialog();
mainForm.Text = "";
DialogResult res = dlg.Show();

Not sure if that will get you exactly what you want, but it'll get you
partially there at least. :)

-G
 
Thanks for responding.
This almost exactly what i do.
I build my app. in VB.net but reading C# is no problem.

i have a form and therein i create the "myMsgForm" as ShowDialog()
because i resize it the 'parent form appaers also in the background. Because
the myMsgForm isn't really on top of it for some reseans you can press the
Done/Close button of the parent form as well
Only if i don't resize it wil work well. But i want's to have a customs
designed messagebox. Like a popup window.
 
Back
Top