How to prevent form being minimised
Posted
#1
(In Topic #514)
Regular

This fine until a minimise key (WIN + PgDn) sequence is sent, resulting the programme's disappearance!
How can I intercept the minimise action?
Posted
Guru

Posted
Regular

I also think this does the job
Code
Public Sub Form_LostFocus()
Me.Minimized = False
End
Posted
Regular

Code
Public Sub Form_State()
If Me.Minimized Then Me.Minimized = False
End
Posted
Guru

I don't know if it stops the minimising though, worth a try.
that sounds like an odd shortcut set somewhere else as it is not Gambas default to minimise on Super+PgDown
Posted
Guru

I don't have any of those systems to try it on but..
You could also try something like this…
Public Sub Form_KeyPress()
If Key.Meta And If Key.PageDown Then Stop event
End
Posted
Regular

1 guest and 0 members have just viewed this.


