Tapi.. lumayan bikin puyeng kalau ga tau dan muter muter nyari via google, seandainya kita menggunakan DevExpress XtraTabbedMdiManager untuk handling form MDIChilren di aplikasi kita, karena tampilan background image ini akan tertutupi oleh si XtraTabbedMdiManager
Di forum support untungnya di berikan cara menangani masalah tersebut, tapi tidak jelaskan detilnya, siapa tahu anda juga mengalami seperti saya, di kode si mdiparent, sewaktu dia load, set agar mdiparent XtraTabbedMdiManager = nothing
Private Sub MDIParent_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Me.XtraTabbedMdiManager1.MdiParent = Nothing
'.
'. kode kode lain
'.
'.
End Sub
Saat semua mdichild tertutup, deteksi via pageremoved, dimana total mdichildren.count = 0, kembali matikan XtraTabbedMdiManager mdiparent nya menjadi nothing
Private Sub XtraTabbedMdiManager1_PageRemoved(ByVal sender As Object, ByVal e As DevExpress.XtraTabbedMdi.MdiTabPageEventArgs) Handles XtraTabbedMdiManager1.PageRemoved
If MdiChildren.Count = 0 Then
XtraTabbedMdiManager1.MdiParent = Nothing
End If
End Sub
Update
Ketinggalan satu prosedur yang harus di set, deteksi di mdichildactivate mdiparent
Private Sub MDIParent_MdiChildActivate(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.MdiChildActivate
If MdiChildren.Count > 0 Then
XtraTabbedMdiManager1.MdiParent = Me
End If
End Sub
Semoga berguna
No comments:
Post a Comment