You are not logged in.

denizunlu

Beginner

  • "denizunlu" is male
  • "denizunlu" started this thread

Posts: 18

Date of registration: Dec 10th 2011

Location: Istanbul

Occupation: Developer

  • Send private message

1

Tuesday, December 11th 2012, 9:27pm

MdiChild Forms Close Event

Hi Everyone,

Simple question : Normal Forms has an Nmload event but MdiChild does not. I need to do somethings when the MdiChild closes but Deactivate() event does not fire when the form is closed. Is there any way to understand when the Mdichild form closes?

Thank you.

theuserbl

Intermediate

Posts: 436

Date of registration: Dec 20th 2008

  • Send private message

2

Wednesday, December 12th 2012, 2:31am

RE: MdiChild Forms Close Event

Thanks for the bug-report.

currently this will help you:

Jabaco Source

1
2
3
Public Sub dispose()
  MsgBox "MDI Form unloaded"
End Sub



Greatings
theuserbl

This post has been edited 1 times, last edit by "theuserbl" (Dec 12th 2012, 2:40am)


denizunlu

Beginner

  • "denizunlu" is male
  • "denizunlu" started this thread

Posts: 18

Date of registration: Dec 10th 2011

Location: Istanbul

Occupation: Developer

  • Send private message

3

Wednesday, December 12th 2012, 8:55am

Thanks for the bug-report.

currently this will help you:

Jabaco Source

1
2
3
Public Sub dispose()
  MsgBox "MDI Form unloaded"
End Sub



Greatings
theuserbl
Thank you theuserbl.

But where should this code be added? In Module or in Framework.jba And I think it is for the MDI form itself, not for MDIChild. Maybe Im missing something but I could not quite understand.

On the other hand, I found a way to trigger MDIChild forms "Deactivate" event. If you use the SetDefaultCloseOperation (True) it works.

MdiChild1(iFormNo).Parent.setDefaultCloseOperation True

Rate this thread
WoltLab Burning Board