Error loading examples

Supporting Visual Studio on Windows
Post Reply
JavierLopez
Fresh meat
Posts: 2
Joined: Fri Oct 05, 2018 8:41 am
Contact:

Error loading examples

Post by JavierLopez »

hi

trying to use the examples over Visual Studio 2012 I get the error on line starting with While. the error is in "IsNot Form".

any idea to solve it?
(trying to use both Phidget22_TemperatureSensor_VBNET_Windows_Ex_20180905 and Phidget22_HumiditySensor_VBNET_Windows_Ex_20180905)

Dim par As Control = Me.Parent
While (TypeOf par IsNot Form)
par = par.Parent
End While
CType(par, Form).Text = phidget.ChannelName


the code in c# compilate and is able to excute, but on VB.NET not
User avatar
mparadis
Site Admin
Posts: 959
Joined: Fri Oct 28, 2011 12:17 pm
Contact:

Re: Error loading examples

Post by mparadis »

What is the specific error that visual studio is giving for that section of code? I just downloaded it and it runs fine on visual studio 2015.
JavierLopez
Fresh meat
Posts: 2
Joined: Fri Oct 05, 2018 8:41 am
Contact:

Re: Error loading examples

Post by JavierLopez »

Thanks so much for your fast support.


i have download the vb 2015 and the examples works fine.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests