AdvancedHMI Software
General Category => Support Questions => Topic started by: CptHook on June 28, 2016, 12:15:13 PM
-
Does anyone know if there is a way to remove the title bar?
I've put the HMI on a tablet and am looking to make it more difficult for the user to get outside of the screen that I have set up.
Thanks!
-Steve
-
- Click on a blank area of your form
- In the Properties Window, change FormBorderStyle to None
You may also want to set WindowsState to Maximized. Those settings will not allow you to exit the application unless you use Alt-F4 on a keyboard or with Task manager. There is a trick I use to exit for updates. I leave the AdvancedHMI logo PictureBox on the form, then setup a double click to exit like this:
- Right click on a blank area of the form and select View Code
- Enter this code:
Private Sub PictureBox1_DoubleClick(sender As Object, e As EventArgs) Handles PictureBox1.DoubleClick
Close()
End Sub
-
This is great. Thanks!
Is there a way to use your Picture Box trick open a different form? I like the close concept, but was hoping I could use it to bring it back to a menu selection.
Thanks for the help!
-Steve
-
In the ToolBox, there is a FormChangeImage
Or like the code above, instead of using "Close()", you could use something like Page2.Show
-
Perfect! Thanks!!
-Steve