MdiChild Icon in Parent Form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a windows form which can have one or many mdichild forms open inside it.

The problem I am having is the icon of the child form, when maximized in the
mdiparent often reverts to the .NET default icon, and I want to open them
maximized.

To get it displaying properly, when I open a child form, I need to open it
and set FormWindowState.Normal, and then FormWindowState.Maximized to get the
icon to display correctly.

This causes a flicker - can anyone help?? Removing the icon completely but I
can not manage this either.

Thanks.
 
Hmm, never seen that. What happens if the icon is left null at design time,
then set after you change the window state to maximum in the child window,
set the icon at runtime from say an ImageList?
 
Doesn't help. The icon still defaults to the .NET icon.

Robbe Morris - [MVP] C# said:
Hmm, never seen that. What happens if the icon is left null at design time,
then set after you change the window state to maximum in the child window,
set the icon at runtime from say an ImageList?

--
Robbe Morris [Microsoft MVP - Visual C#]
..NET PropertyGrid Control - ListBox, ComboBox, and Custom Classes
http://www.eggheadcafe.com/tutorial...af-5cd3abe27a75/net-propertygrid-control.aspx




George said:
I have a windows form which can have one or many mdichild forms open inside
it.

The problem I am having is the icon of the child form, when maximized in
the
mdiparent often reverts to the .NET default icon, and I want to open them
maximized.

To get it displaying properly, when I open a child form, I need to open it
and set FormWindowState.Normal, and then FormWindowState.Maximized to get
the
icon to display correctly.

This causes a flicker - can anyone help?? Removing the icon completely but
I
can not manage this either.

Thanks.
 
Back
Top