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
145
Resize UltraGroupBox depending on Form width/height
posted

Hello,

I have sames controls like UltraGroupBox on a form and i'like to resize than depending on width/height of the form.

I try this ...

 

 

 

 

 

 

 

 

Private Sub CLiente_Resize(sender As Object, e As System.EventArgs) Handles Me

.Resize

 

 

 

 

 

 

Dim _SizeResultPesqClientes As New System.Drawing.Size(Me.Width - 2 * Me.ugbResultadosPesqClientes.Location.X, Me.Height - Me.ugbResultadosPesqClientes.Location.Y - Me.StatusBar.Height - 50)

 

 

 

Me.ugbResultadosPesqClientes.Size = _SizeResultPesqClientes

 

 

 

End

Sub

Thanks

Miguel Jeronimo

  • 53790
    posted

    Hello Miguel,

     

    One way would be setting the using The Anchor/Dock properties of the controls corresponding to the desired layout.  If you would have to achieve more complex look and feel you could try a UltraGridBagLayoutPanel and position the controls as it shown in the attached sample.

    Please let me know if you think that I musinderstood your scenario or if you have any questions.

    Regards

    UltraGroupBoxResize.zip