MdiChild Icon in Parent Form

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.
 
R

Robbe Morris - [MVP] C#

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?
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top