User`s guide
302 VEE User’s Guide
7 Using .NET with VEE
• The formula template generated for Instance members
always begins with a lower case letter. Static members
have a fully qualified name (namespace plus classname)
unless their namespace has been imported.
• When you call a .NET member, if the member is Static the
word STATIC appears in the description box. Static
methods are called on a .NET class directly, not on an
instance of an object. Thus, you do not need to create a
.NET object first.
• Enums in .NET are different from enums in COM. They
are strongly typed. There are two types of enums in .NET,
one is treated as an enumeration of constants, the other
is treated as bit fields. Only the latter type of enums are
intended for bitwise operations. In VEE, both types of
enums will have their underlying integral value displayed
in the description area of the Function & Object Browser.
You can use bitOr, bitAnd, etc. on the latter type of
enums as in the VEE example, examples\dotnet\
FileAttributes.vee.
• There is a new Copy to Clipboard button in Function &
Object Browser. You can use this button to copy a formula
text into the clipboard, and later paste it anywhere in a
formula box. This is especially useful when you want to
have multiple formula statements inside of one formula
box.
Lab 7-1: Using .NET to Select Files
Create a .NET object of the type
Systems.Windows.FormsOpenFileDialog. Use this object to
filter a group of files by file extension and display the
filenames in a dialog box. The complete example can be
found in examples\dotnet\OpenFileDialog.vee.
1 From the Device menu, select .NET Assembly References.
2 From the .NET tab, select the System.Windows.Forms
checkbox. Choose OK.
3 Open the Function & Object Browser and select .NET/CLR
Objects.
4 Highlight the System.Windows.Forms namespace.