Windows Form and Message Box
-
I have a windows form and the first thing I want to happen is for a MessageBox to ask a Yes/No question after the form loads. However, I want the form to fully render itself before the MessageBox pops up. If I put the MessageBox.Show in the form constructor or in the form's Load method, the MessageBox appears first thing and the form does not appear until the user answers the MessageBox. What do I need to do? Thanks, Mark Mokris
-
I have a windows form and the first thing I want to happen is for a MessageBox to ask a Yes/No question after the form loads. However, I want the form to fully render itself before the MessageBox pops up. If I put the MessageBox.Show in the form constructor or in the form's Load method, the MessageBox appears first thing and the form does not appear until the user answers the MessageBox. What do I need to do? Thanks, Mark Mokris
Hello, Maybe you could call the Form's Invalidate method before showing the messasge box. Peter
-
I have a windows form and the first thing I want to happen is for a MessageBox to ask a Yes/No question after the form loads. However, I want the form to fully render itself before the MessageBox pops up. If I put the MessageBox.Show in the form constructor or in the form's Load method, the MessageBox appears first thing and the form does not appear until the user answers the MessageBox. What do I need to do? Thanks, Mark Mokris
-
I have a windows form and the first thing I want to happen is for a MessageBox to ask a Yes/No question after the form loads. However, I want the form to fully render itself before the MessageBox pops up. If I put the MessageBox.Show in the form constructor or in the form's Load method, the MessageBox appears first thing and the form does not appear until the user answers the MessageBox. What do I need to do? Thanks, Mark Mokris
override void OnLoad(EventArgs e)
{
base.OnLoad(e);
//now call MsgBox.Show() :P
}xacc-ide 0.0.10 now with C#, MSIL, C and HLSL coloring - Screenshots