Hi
I need help to center a label with a form.
I have tried with the following code but was unsuccessful.
Me.Width = 135
Me.Height = 38
Dim w As Integer = Me.Width / 2
Dim h As Integer = Me.Height / 2
Dim lblw As Integer = Me.lblnumber.Width / 2
Dim lblh As Integer = lblnumber.Height / 2
Dim ttw As Integer = w - lblw
Dim tth As Integer = h - lblh
lblnumber.Location = New Point(ttw, tth)