Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
55
Add a Panel to a Tile and then pnl.Dock = DockStyle.Fill doesnt work
posted

Hi,

 

i got a problem with a panel i add onto a new tile i create.

 

-------------------sample------------------------------

...

            Dim form1 As New Processes
            Dim tile As UltraTile
            Dim pnl As New Panel

            tile = New UltraTile("Processes")
            tile.Name = "Processes_tile"
            tile.Control = pnl

            pnl.Name = "pnl_Processes"
            pnl.Parent = tile
            pnl.Dock = DockStyle.Fill
            tile.Settings.ShowCloseButton = Infragistics.Win.DefaultableBoolean.True

            UltraTilePanel1.Tiles.Add(tile)

...

-------------------sample------------------------------

 

the line

            pnl.Dock = DockStyle.Fill

doesnt work.

No matter when i start it or fire it up.

The panel size is always the size at what the panel is created.

If its the first panel then its of course the biggest .... but when it is created at the right side in a small state view then the panel is the same size when i bring it to front with  SetState(TileState.Large, True).

And i cant even resize it when i SetState(TileState.Large, True) first and then apply pnl.dock again.

The idea is to load a form into different tiles but that does only work when there is a container on the tile first ... so i add a panel ..... i dock fill it ....and then i load a form into the panel ..... so here is the problem with the panel not resizing like the tile does.

Any help?

thx in advance.

g.c.

Parents
No Data
Reply Children
No Data