07-09-2008 09:44 AM
Private
Leds(143) As LedcPoint.X = 24
cPoint.Y = 54
'cSize.Height + LedOffsetcSize.Width = 18
cSize.Height = 18
For j = 0 To 71 '143New LedLeds(j) =
Leds(j).Name =
"Led" & jLeds(j).Tag = j
Leds(j).LedStyle = NationalInstruments.UI.LedStyle.Round3D
Leds(j).Location = cPoint
Leds(j).Size = cSize
cPoint.X = cPoint.X + 36
If (j + 1) Mod 12 = 0 ThenEnd IfcPoint.X = 24
cPoint.Y = cPoint.Y + 36
TabPage1.Controls.Add(Leds(j))
Leds(j).Visible =
True NextAddText(TabPage1)
AddHandlers(TabPage1)
07-10-2008 06:37 PM
07-11-2008 07:19 AM
07-14-2008 11:25 AM
Manooch,
I upgraded from a MS 6.0.5. The code I wrote is an attempt to replicate the control arrays used in an old VB6 project that I am upgrading to .NET. No, I did not install the demo version of MS 8.01. The license error doesn’t appear if I place an LED control on the form at design time and then run the app. It also doesn’t appear anymore even after I removed the LED control from the form.
I checked the licx file as Nick B suggested and the entry to the NationalInstruments.UI.WindowsForms.Led was included, but I checked that after I had placed a LED control on the form.
The app runs ok now
Thanks for your help
Curt