Ola,

I'm trying to set the maximumsize via code of a panel, but I can't get the proper code.

Code:
Private Sub panel_right_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles panel_right.Resize
        If calendar.ShowWeekNumbers = True Then
            With panel_beslag_right
                .MaximumSize....   '.Width = .....????
            End With
        Else

        End If
    End Sub