Setting Dock or Anchor properties to TabControl

Discussion in 'Questions (Windows Mobile)' started by corwin42, May 13, 2009.

  1. corwin42

    corwin42 Expert Licensed User

    Hi!

    I try to set a Dock=DockStyle.Fill property to a TabControl with door.library to make it adjust its size automatically to the size of its parent panel. This does not work and I think this is because a TabControl consists of a Panel and a TabControl. I think I have to set the property to both objects (the panel and the tabcontrol) but I don't know how to access the panel control.

    Any ideas how to set properties to the (internal) parent panel of the TabControl?

    Thanks,
    Markus
     
  2. corwin42

    corwin42 Expert Licensed User

    Arg, I think its too late. Just found it out myself and it is very easy:

    Code:
    doorobj.FromControl(tabcontrol.ControlRef)
    doorobj.Value = doorobj.GetProperty(
    "Parent")
    ... and doorobj Points to the tabcontrols internal panel.

    Greetings,
    Markus
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice