The error message is telling you exactly how to fix this error:
Quote:
are you missing a using directive or an assembly reference?
You either didn't add a
using
directive at the top of the file to tell the compiler in what namespace the code you're trying to use is in,
or you don't have a reference set to the .DLL the code is in,
or both.
This usually happens with newbs to C# and VB.NET when they copy code off the internet without understanding what it does or what the code requires to run.