Opening and closing displays form within VB .NET

Hi all.

I’m trying to open and close displays from within VB .NET subroutines without success.
Whenever I try the @Display or @Client methods shown in the documentation I receive a compilation error:

image

Also … the @Display and @Client classes do not appear within IntelliSense.
Is this not supported within VB .NET?

Hello Greg,

Thank you for reaching out to us.

Could you please inform us which FactoryStudio version are you using?

We would also like to know if this issue is happening on a Task or Class script, as @Display and @Client are Namespaces from the Client Domain, your Task or class should also be configured as Client Domain in order to use them:

image

Best Regards,
Tatsoft Team.

Thanks for your response.

My FactoryStudio version is EdgeHMI fs-9.2.
I expect it differs from your response version … as my Task tab does not include the Domain field …

image

Hello Greg,

Thank you for providing us with your FactoryStudio version.

All tasks created on projects with EdgeHMI versions belong to the Server Domain, that is the reason you can’t access the @Display and @Client NameSpaces.

In order to close or open displays, you can use CodeBehind scripts or expressions.

Best Regards,
Tatsoft Team.