Create control like Toolbar or Statusbar that affects client area

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

Guest

How do you create a control that affects the client area of the window it's in? The control would affect the client area of an MDI parent.
 
Jonathan,

If you wanted your control to be generic, then you could use the Parent
property to get the Control that hosts your control, and then modify it
appropriately. If you want it to be specific, then you can have your
control cast the Parent property to the appropriate type, and then have it
perform some action based on that specific type. However, in this case, you
will have to be careful to take into account when the Parent is able to be
cast into the control that you expected.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Jonathan Nix said:
How do you create a control that affects the client area of the window
it's in? The control would affect the client area of an MDI parent.
 
Back
Top