Add LineShape programatically in VB.NET WinForms
问题 How do you add a LineShape programmatically in VB.NET WinForms? I'm looking to write something like you would for a Label , CheckBox or whatever else: Dim somelabel as New Label somelabel.Text = "Whatever" somelabel.Location = New Point(200, 200) Me.Controls.Add(somelabel) Etc. My purpose is to create thin dividing lines between the rows and columns of 16 Labels that form a 4x4 grid. I appreciate that, since LineShape is a part of VB PowerPacks, this may present some difficulties, such as