I have a question. I have a Docksite with a new loaded document inside.
Next I call the ActivatePrimaryDocument so it is shown.
But the return value is False!
There is a document so it should activate this one.
This is done in a load phase of the application. When I use a timer that goes of after the application is started, it works.
What can I do to force the document to activate in the load phase of a application?
'Dim MainDockSite as DockSite
MainDockSite.ActivatePrimaryDocument
if MainDockSite.ActiveWindow Is Nothing Then
'Should not happen, but it does....
End if
[Modified at 01/14/2011 07:44 AM]
Next I call the ActivatePrimaryDocument so it is shown.
But the return value is False!
There is a document so it should activate this one.
This is done in a load phase of the application. When I use a timer that goes of after the application is started, it works.
What can I do to force the document to activate in the load phase of a application?
'Dim MainDockSite as DockSite
MainDockSite.ActivatePrimaryDocument
if MainDockSite.ActiveWindow Is Nothing Then
'Should not happen, but it does....
End if
[Modified at 01/14/2011 07:44 AM]