Page 1 of 1

Error loading examples

Posted: Fri Oct 05, 2018 8:47 am
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

Re: Error loading examples

Posted: Fri Oct 05, 2018 9:21 am
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.

Re: Error loading examples

Posted: Tue Oct 09, 2018 9:27 am
by JavierLopez
Thanks so much for your fast support.


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