B4J Question How to disable the close (x) button on the Main form?

GMan

Well-Known Member
Licensed User
Longtime User
Is it possible to disable this, too ?

With
B4X:
MainForm.Resizable = False
i can disable the Max.-Icon, i wish that the user has to end with the Menue
 

Mark Read

Well-Known Member
Licensed User
Longtime User
Using the search funktion in the forum: Link
 
Upvote 0

GMan

Well-Known Member
Licensed User
Longtime User
Here without linking:

B4X:
Sub MainForm_CloseRequest (EventData As Event)
   EventData.Consume
End Sub
 
Upvote 0

MarkusR

Well-Known Member
Licensed User
Longtime User
its still enabled and visible.
i would make at least a message close the app at file menu.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

MarkusR

Well-Known Member
Licensed User
Longtime User
and without bar it can't move by default with mouse
 
Upvote 0

GMan

Well-Known Member
Licensed User
Longtime User
its still enabled and visible.
i would make at least a message close the app at file menu.
Visible yes, but disabled.
If i remember correct, in the old Borland TurboPascal and In VisualBasicExpress the Min - Max - and X-Icon was not visible if disabled.
 
Upvote 0
Top