i am loading a form inside a panel on another form using
however i am wondering if there is a better method to load that form to the center of the panel atm i use
however that doesnt work to well i mean it always seems to load the panel wherever it wants
Code:
f = Frm_Profiles
f.TopLevel = False
Me.Form_Panel.Controls.Add(f)
f.Location = New Point((Me.Width - f.Width) \ 2, (Me.Height - f.Height) \ 2) ''width moves left and right - Height moves up and down
f.Show()
Code:
f = Frm_Profiles
f.TopLevel = False
Me.Form_Panel.Controls.Add(f)
f.Location = New Point((Me.Width - f.Width) \ 2, (Me.Height - f.Height) \ 2) ''width moves left and right - Height moves up and down
f.Show()