"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> wrote
in message news:eX**************@TK2MSFTNGP14.phx.gbl...
hi
post the code you are using
Can't do that; sorry.
But I can describe the situation a little better (something I should have
done the first time :-()
We start with the parent form:
using(frmMedarbejderListe f = new frmMedarbejderListe(
m_erMedarbejdersErindringer ) )
{
f.Open( this );
}
Then in the child form I do
public override void Open( Form parent )
{
frmMedarbejderSoeg fader = parent as frmMedarbejderSoeg;
fader.Hide(); // #2
Debug.Assert( fader.Visible == false );
base.Open( parent ); // #2
}
base.Open(parent) does various stuff, but ends up calling this.ShowDialog();
Now, the funny this is that if reorder the lines marked #1 and #2, the
parent form is not
hidden...when I look behind the child window, the parent form is still
there;
If I don't reorder the two lines, the parent form is hidden, but the screen
flickers
a bit before the child window appears proproly on the screen.
Neither behavior is particular good.
br
Thorsten