Error loading examples

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

Error loading examples

Postby JavierLopez » Fri Oct 05, 2018 8:47 am

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: 585
Joined: Fri Oct 28, 2011 12:17 pm
Contact:

Re: Error loading examples

Postby mparadis » Fri Oct 05, 2018 9:21 am

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

Postby JavierLopez » Tue Oct 09, 2018 9:27 am

Thanks so much for your fast support.


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


Return to “VB .NET”

Who is online

Users browsing this forum: No registered users and 1 guest