P
Pete
I am using the Visio ActiveX control on a form. When the program
starts, I call the following code to open a stencil:
Visio.Document stencil = visDocuments.OpenEx(
Application.StartupPath + @"\MyStencil.vsx", (short)
Visio.VisOpenSaveArgs.visOpenRO + (short)
Visio.VisOpenSaveArgs.visOpenDocked );
This used to work fine. However, at one point I was working in Debug,
running the app, when I detached the stencil and left it floating.
Then I closed the program. Ever since, when I start the program (in
Debug or the Release version installed on a target machine), the
stencil will not open. If I manually call OpenEx and open the
stencil, it appears in the floating window the same as how I left it.
I have tried re-docking the stencil pane and then closing the program,
which works for the rest of my Visual Studio session, but if I close
VS down and start it up again, the behavior repeats itself, with no
stencil opening.
I figure there must be a Registry setting that has gotten stuck, but I
haven't been able to find it. Mai-Lan, can you help?
Pete
starts, I call the following code to open a stencil:
Visio.Document stencil = visDocuments.OpenEx(
Application.StartupPath + @"\MyStencil.vsx", (short)
Visio.VisOpenSaveArgs.visOpenRO + (short)
Visio.VisOpenSaveArgs.visOpenDocked );
This used to work fine. However, at one point I was working in Debug,
running the app, when I detached the stencil and left it floating.
Then I closed the program. Ever since, when I start the program (in
Debug or the Release version installed on a target machine), the
stencil will not open. If I manually call OpenEx and open the
stencil, it appears in the floating window the same as how I left it.
I have tried re-docking the stencil pane and then closing the program,
which works for the rest of my Visual Studio session, but if I close
VS down and start it up again, the behavior repeats itself, with no
stencil opening.
I figure there must be a Registry setting that has gotten stuck, but I
haven't been able to find it. Mai-Lan, can you help?
Pete