Me.Parent.topmost=true does not work

  • Thread starter Thread starter SamSpade
  • Start date Start date
S

SamSpade

I learned about the TopMost property from a recent post which solved some
problems.

But I have a situation where a control wants to make the form it is on be
the topmost.

It could raise an event but be cleaner if it could do it directly.

I tried the following but the compiler thinks Parent is a control (they
don't have a topmost property.)

Me.Parent.topmost



Any suggestions
 
* " SamSpade said:
I learned about the TopMost property from a recent post which solved some
problems.

But I have a situation where a control wants to make the form it is on be
the topmost.

It could raise an event but be cleaner if it could do it directly.

I tried the following but the compiler thinks Parent is a control (they
don't have a topmost property.)

Me.Parent.topmost

\\\
Me.FindForm().TopMost = True
///
 
Back
Top