MDI Child always on top in its container

M

Marcolino

Hi,
another question for you.
I looked around but found nothing.
I have a MDI container calld frmMDIMain, that contain some child
form....one of that forms is called frmPostIt and I need that form
stay always on top of all other child contained in MDI.

is possinble to do this?

Many thanks in advance
 
M

Marcolino

Marcolino <[email protected]>'s wild thoughts were
released on Tue, 27 May 2008 16:03:05 -0700 (PDT) bearing
the following fruit:


Then it arguably should not be an MDI child. Does it need to
be? If so why?

Hi Jan,
Is a deskto application for end user. In this MDI application there
was a lot of child form for normal operation. But I need to put also
another child form with realtime statistics of the daily work and my
customer want that this child stay always on top inside the MDI
container, not over all windows desktop.
I hope this is more clear.

Thanks
 
M

Marcolino

Marcolino <[email protected]>'s wild thoughts were
released on Tue, 27 May 2008 16:03:05 -0700 (PDT) bearing
the following fruit:


Then it arguably should not be an MDI child. Does it need to
be? If so why?

Hi Jan,
Is a deskto application for end user. In this MDI application there
was a lot of child form for normal operation. But I need to put also
another child form with realtime statistics of the daily work and my
customer want that this child stay always on top inside the MDI
container, not over all windows desktop.
I hope this is more clear.

Thanks
 
A

Armin Zingler

Marcolino said:
Hi Jan,
Is a deskto application for end user. In this MDI application there
was a lot of child form for normal operation. But I need to put also
another child form with realtime statistics of the daily work and my
customer want that this child stay always on top inside the MDI
container, not over all windows desktop.
I hope this is more clear.

This behavior is AFAIK not supported. However, you can set the MDI
container as the owner of the statistics Form without the latter being
an MDI child. Doesn't stay inside the MDI container anymore but is
always on top and is also minimized whenever the container is minimized.
Maybe this is an option.


Armin
 
M

Marcolino

This behavior is AFAIK not supported. However, you can set the MDI
container as the owner of the statistics Form without the latter being
an MDI child. Doesn't stay inside the MDI container anymore but is
always on top and is also minimized whenever the container is minimized.
Maybe this is an option.

Armin

Hi Armin,
what do tou mean for
"set the MDI
container as the owner of the statistics Form without the latter
being
an MDI child"

how can i implement it?

Thanks
 
A

Armin Zingler

Marcolino said:
Hi Armin,
what do tou mean for
"set the MDI
container as the owner of the statistics Form without the latter
being
an MDI child"

how can i implement it?

Inside the MDI container:

Dim f As New StatisticForm
f.Show(Me)


In addition, but not required, you may set StatisticForm's
Formboderstyle to FixedToolwindow or SizableToolwindow.


Armin
 
M

Marcolino

Inside the MDI container:

      Dim f As New StatisticForm
      f.Show(Me)

In addition, but not required, you may set StatisticForm's
Formboderstyle to FixedToolwindow or SizableToolwindow.

Armin

Hi Armin,
this is exacly what i need.

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