Hi Sir
I am creating labels dynamically and these labels to the tabpage. My code is:
Dim sKeyText As Label = New Label()
Dim sKeyValue As Label = New Label()
sKeyText.AutoSize = True
sKeyText.Location = New Point(67, 610)
sKeyText.Text = "Server License Key:"
sKeyValue.AutoSize = True
sKeyValue.Location = New Point(196, 610)
sKeyValue.Text = dr.GetString("ServerLicencse")
licenseInfoTP.Controls.Add(sKeyText)
LicenseInfoTP.Controls.Add(sKeyValue)
It gives me error.The error is Value of Type 'label' cannot be converted to 'Control'.
Please help me...