08-08-2018 08:42 AM
Hi I'm trying to develop C# GUI and I want to use debug menu of TestStand using the code below I get this error.
The name 'CommandKinds' does not exist in the current context
ArrayList debugMenuCommands = new ArrayList( ); debugMenuCommands.Add(CommandKinds.CommandKInd_DefaultDebugMenu_Set); Menus.InsertCommandsInMenu (debugMenuCommands,this.debugToolStrioMenuItem, null , viewMgr ,true);
This code is from user interface full featured examples
08-09-2018 08:43 AM
I noticed a typo with the capital I in your second line of code: CommandKinds.CommandKInd_DefaultDebugMenu_Set should be CommandKinds.CommandKind_DefaultDebugMenu_Set. Does that change anything?
If you still see the error, it may be because the namespace that defines that class is missing. Are you including all of the default namespaces?
For reference, you can find information on the CommandKinds Enumeration here:
http://zone.ni.com/reference/en-XX/help/370052W-01/tsuiref/reftopics/commandkinds/