Forum Migration Notice
Update (2026-01-21): The user forums are now in read-only mode pending the data migration.
Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.
We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.
Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.
We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.
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.7K RobotStudio
- 402 UpFeed
- 21 Tutorials
- 16 RobotApps
- 307 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 251 ScreenMaker
- 2.9K Robot Controller
- 368 IRC5
- 92 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 859 RAPID Programming
- 43 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 111 Collaborative Robots
- 5 Job listings