Paul,
I've recreated the example as an MDI app, which has one child form, and
then shows a modal dialog, and then shows a messagebox, and I don't get the
result that you do. I should note that I am running on .NET 2.0, so the
problem could have been fixed.
However, I would ask the following:
- When creating the MDI child form, are you setting the MdiParent property
to the MDI parent form (I assume yes on this one).
- When showing the modal dialog, are you passing the MDI child form as the
owner parameter in the call to ShowDialog?
- When calling the static Show method on the MessageBox, are you passing the
modal dialog as the owner parameter?
I have done all of the above, and could not reproduce the error.
--
- Nicholas Paldino [.NET/C# MVP]
-
(E-Mail Removed)
"Paul Aspinall" <(E-Mail Removed)> wrote in message
news

v4Pd.43822$(E-Mail Removed)...
> Hi
>
> The reason is...
> I have the user entering into a form, which must be modal (which I was
> using ShowDialog to display), simila to a 'Wizard' style.
>
> However, when the user makes an invalid entry, I want to display a
> MessageBox, to inform them of a certain condtion....
>
> this results in another modal form, being shown from a modal form......
>
> When the user clicks 'OK' on the message, both 'modal' forms disappear,
> ie. the message, and the 'wizard'.
>
> Any ideas how to stop this?
>
> Thanks
>
>
> "Nicholas Paldino [.NET/C# MVP]" <(E-Mail Removed)> wrote
> in message news:(E-Mail Removed)...
>> Paul,
>>
>> Why do you not want to use ShowDialog? If the form is modal, then I
>> don't see what the difference is.
>>
>> What are you trying to do?
>>
>>
>> --
>> - Nicholas Paldino [.NET/C# MVP]
>> - (E-Mail Removed)
>>
>> "Paul Aspinall" <(E-Mail Removed)> wrote in message
>> news:i_3Pd.62386$(E-Mail Removed)...
>>> Can anyone advise how to display a form on top, and modal, without using
>>> ShowDialog??
>>>
>>> Thanks
>>>
>>>
>>
>>
>
>