Template:PT3 CSHARP WIN VS 2

From Phidgets Support
Revision as of 21:38, 8 March 2021 by Mparadis (talk | contribs) (Created page with "<div class="phd-slide-deck" data-deck="PT3_CSHARP_WIN_VS_2"> <div class="phd-slide-deck-header"><h3>Visual Studio New Project</h3></div> <div class="phd-slides"> <div class="p...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Setting up a New Project

When you're building a project from scratch or adding Phidget code to an existing project, you need to properly link the Phidget .NET library.

Create a new project (a Console Application will be created for this example):

Setting up a New Project

Next, right-click on References in the solution explorer and choose Add Reference.

Setting up a New Project

On the following screen, click Browse... and navigate to the location of Phidget22.NET.dll:

C:\Program Files\Phidgets\Phidget22\Phidget22.NET.dll

Setting up a New Project

Finally, to include the Phidget .NET library, add the following lines to main window class file:

using Phidget22;
using Phidget22.Events;

Success! The project now has access to Phidgets.

What's Next?

Now that you've set up Phidgets in your programming environment, you should read our guide on Phidget Programming Basics to learn the fundamentals of programming with Phidgets.

Continue reading below for advanced information and troubleshooting for your device.

«
»