Hi,
I am using VB to dynamically create documentWindows for a TabbedMDIContainer each time I want to display a new tab. This works fine and I have set the .Title of the documentWindow accordingly.
I have also used the TabbedMdiHost.PrimaryWindowChangedEvent to detect when I change the tab focus and I can successfully display a message whenever a tab is selected.
What I would like to do is to access the properties of the documentWindow of the selected tab (so I can change the main window title; etc.)
Know it must be simple, but having trouble getting the syntax right for determining the active documentWindow to access the relevant .title/.filename/.description - seem to be going in circles at the moment. Have searched the sample for example but no luck.
Would be grateful if somebody has an example of how I can do this.
Thanks
Bret
I am using VB to dynamically create documentWindows for a TabbedMDIContainer each time I want to display a new tab. This works fine and I have set the .Title of the documentWindow accordingly.
I have also used the TabbedMdiHost.PrimaryWindowChangedEvent to detect when I change the tab focus and I can successfully display a message whenever a tab is selected.
What I would like to do is to access the properties of the documentWindow of the selected tab (so I can change the main window title; etc.)
Know it must be simple, but having trouble getting the syntax right for determining the active documentWindow to access the relevant .title/.filename/.description - seem to be going in circles at the moment. Have searched the sample for example but no luck.
Would be grateful if somebody has an example of how I can do this.
Thanks
Bret