Olaan Expert Licensed User Longtime User Dec 22, 2013 #1 Hi all, Refer to this, If I need to disabled the Close button,how to coding?
Erel B4X founder Staff member Licensed User Longtime User Dec 22, 2013 #2 See this thread: How to Disable the "Close X "on a Form Upvote 0
Olaan Expert Licensed User Longtime User Dec 23, 2013 #3 It's only disabled the Close X ,but don't make it hided. Do we know that member of MainForm (CloseRequest) from ? I don't see from the Generate members menu. Upvote 0
It's only disabled the Close X ,but don't make it hided. Do we know that member of MainForm (CloseRequest) from ? I don't see from the Generate members menu.
BPak Active Member Licensed User Longtime User Dec 23, 2013 #4 Try this Code: Copy Sub AppStart (Form1 As Form, Args() As String) MainForm = Form1 MainForm.RootPane.LoadLayout("Layout1") 'Load the layout file. MainForm.SetFormStyle("UNDECORATED") MainForm.BackColor = fx.Colors.Blue MainForm.Show End Sub Upvote 0
Try this Code: Copy Sub AppStart (Form1 As Form, Args() As String) MainForm = Form1 MainForm.RootPane.LoadLayout("Layout1") 'Load the layout file. MainForm.SetFormStyle("UNDECORATED") MainForm.BackColor = fx.Colors.Blue MainForm.Show End Sub