Below is the code i am using to create labels on runtime, my question is how can i add tooltips to these labels?
Dim sectortime As DateTime
Dim sectors(250) As Label
Dim sectip As ToolTip
Dim seclength As Integer
Dim secposition As Integer
Dim sectorto As String
.Left = secposition + seclength - 5
.Top = 131 + (k * 182 - 150 + value)
.Text = sectorto
.AutoSize = True
.BorderStyle = BorderStyle.FixedSingle
currentlabelnumber = currentlabelnumber + 1
As you can see i have tried adding a tooltip, but on runtime i am informed that object refrence not set to an instance of an object.
Any help is much appreciated.