Hey ,
simple question : How can I center webbrowser or any control on a form ?
thanx for any help
Printable View
Hey ,
simple question : How can I center webbrowser or any control on a form ?
thanx for any help
meh, you could use a stupid function like this:
VB Code:
Private Sub centerControl(ByVal ctrl As Control) ctrl.Left = (Me.ClientSize.Width - ctrl.Width) / 2 ctrl.Top = (Me.ClientSize.Height - ctrl.Height) / 2 End Sub
but I hope there is a better way
thanx , it worked.