
Hi,
I currently use the next code to find the active document in my tabbed mdi application.
When i close the last documentwindow, the mditabcontainer does not contain any childs and when i try to add a new documentwindow, the containers stays empty???
I saw about this in the past and that it should be fixed, but i still have this problem.
I currently use the next code to find the active document in my tabbed mdi application.
When i close the last documentwindow, the mditabcontainer does not contain any childs and when i try to add a new documentwindow, the containers stays empty???
I saw about this in the past and that it should be fixed, but i still have this problem.
<docking:Workspace Margin="10,0,2,2" >
<docking:TabbedMdiHost >
<docking:TabbedMdiContainer Name="MDITabContainer" >
</docking:TabbedMdiContainer>
</docking:TabbedMdiHost>
</docking:Workspace>
'retrieve the activce documentwindow
Dim Dw As ActiproSoftware.Windows.Controls.Docking.DocumentWindow
For i As Integer = 0 To MDITabContainer.Items.Count - 1
Dw = MDITabContainer.Items(i)
If Dw.IsSelected Then
Return Dw
End If
Next