Write in the middle

  • Thread starter Thread starter Vergassivellaunus
  • Start date Start date
V

Vergassivellaunus

Guest
In this code:

Imports System.Windows.Forms.DataVisualization.Charting

Public Class Form1
Dim num_unit(100) As Label
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
For i = 1 To 20
num_unit(i) = New Label
num_unit(i).Text = i
num_unit(i).ForeColor = Color.Black
num_unit(i).BackColor = Color.Green
num_unit(i).Visible = True
num_unit(i).Font = New Font("Arial", 7, FontStyle.Bold)
num_unit(i).Size = New Size(30, 20)



num_unit(i).Top = 100

num_unit(i).Left = i * 40

Me.Controls.Add(num_unit(i))
Next i
End Sub


End Class


How can I allign int the middle the numbers?

Continue reading...
 

Similar threads

V
Replies
0
Views
154
Vergassivellaunus
V
V
Replies
0
Views
150
Vergassivellaunus
V
Back
Top