opening new forms
Huyle
✭
Hello, does anybody know how to open a new form, and close that form after a button is pressed? Thanks
0
Comments
-
A new form will be a new class instance, and these classes will typically inherit from GTPUMasterDialog. You would do something like the following in your button's click event handler, where "myClass" is your GTPUMasterDialog-based form class:
Dim myClassInstance as myClass
If myClassInstance Is Nothing Then
myClassInstance = New myClass
End If
myClassInstance.ShowMe(Me)You can then enable the CancelItem on the MainMenu of your GTPUMasterDialog-based form and press that to close the form.
RussD38737,5321759259Russell Drown0 -
Please refer to the folowing topic for a sample application:
http://forums.robotstudio.com/forum_posts.asp?TID=636&PN=1&TPN=1
RussD38741,9658449074Russell Drown0 -
Subforms have to inherit from GTPUMasterDialog. When loading the dll's into the system folder don't include the gtpu.dll for the sub form. Use the ShowMe(this) method to invoke the subform in its parent form. (in c#)0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 316 IRC5
- 61 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 798 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings