A forms close 'X' in the top right hand corner.
Posted
#1
(In Topic #679)
Trainee
Can somebody help me. I have 2 forms open on screen (eg Form1 and Form2), if Form 2 is closed using the 'X' in the top right hand corner, how can Form1 detect this when it happens ?.
Thanks in advance for any help you can give.
Posted
Guru

Public Sub Form_Close()
That is triggered when the close window is called
You can make a 'public' function in Form1…
Public Sub Form2Closed()
End
And in Form2 write.
Public Sub Form_Close()
Form1.Form2Closed()
End
Posted
Guru

Code (gambas)
- Form2.ShowModal
The next command in the 1st Form will not be processed until the 2nd Form is closed.
Posted
Trainee
1 guest and 0 members have just viewed this.



