Re: How can I make a dialog Modal and Modeless @ runtime? by doug
doug
Tue Sep 16 07:39:11 CDT 2003
You have to decide at the time that you show it. If you want to capture
the state earlier in the program, you can save it in a property of
the form.
if ( bSomeCondition )
{
myForm.ShowItModal = true;
}
else
{
myForm.ShowItModal = false;
}
Then later in the program when you need to show the form you can refer
to the form's property like this:
if ( myForm.ShowItModal )
{
myForm.ShowDialog();
}
else
{
myForm.Show();
}
Just a suggestion.
"Baron" <baronng@hotmail.com> wrote in message news:<#CJksozeDHA.1760@TK2MSFTNGP09.phx.gbl>...
> I have a dialog,
> can i set it to modal or modeless before showing it?
>
> thx