Designing the form - SmartPlant Foundation - IM Update 44 - Customization & Programming - Hexagon

SmartPlant Foundation Customization

Language
English
Product
SmartPlant Foundation
Search by Category
Customization & Programming
SmartPlant Foundation / SDx Version
10

The next step is to learn how to invoke a .NET form from within a Client API.

  1. On the Project menu in Visual Studio, click Add Windows Form. For this example, name it DoSomethingGUI. A blank form will be added to the project, and the form designer will open.

  2. Drag some labels, text boxes, and OK/Cancel buttons on the form as pictured below.

  3. Be sure to set the AcceptButton and CancelButton properties on the form and the DialogResult properties on each of the buttons. Name the text boxes so you can address them later, for example, txtObid, txtName, and txtDesc.