[Mono-winforms-list] ShowDialog() can loose focus when MDIContainer is present

luisrl larlxz at gmail.com
Mon Nov 1 11:06:57 EDT 2010


This is happening in Ubuntu 10.04 + Mono 2.8

I have a MDIContainer. I open a form with the next code:

Form1 f = new Form1();
f.MdiParent = this;
f.Show();

The form has a TextBox and a Button. When I click the button, it shows a
dialog form:

DialogForm x = new DialogForm();
x.ShowDialog();

I can click the TextBox in the form behind the Dialog and the Dialog looses
the focus.

I'm trying to figure a way to avoid this.

Thanks for any help.
-- 
View this message in context: http://mono.1490590.n4.nabble.com/ShowDialog-can-loose-focus-when-MDIContainer-is-present-tp3022282p3022282.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.


More information about the Mono-winforms-list mailing list