N
ng.johnny
Hi Everyone,
I am having some difficulty using the Anchor Bar Usage sample from the
Visio 2007 SDK. The problem I am having is that the content of the
Anchor Window doesn't display properly. I did some debugging and found
that the following line of code:
listForm.Dispose();
in this section of code:
// Set the form as contents of the anchor bar.
listForm = new AnchorBarForm();
listForm.ParentVisioApplication = visioApplication;
addFormToAnchorWindow(anchorWindow, listForm);
listForm.Dispose();
is causing the display problem. As I commented out the line that
dispose the form, everything works fine.
Then I run into another problem when I tried to close the Anchor
Window. It seems like by closing the Anchor Window, it doesn't close
the form that was added to it as a child. As the result, the form
shows up by itself after I closed the Anchor Window. Any idea how I
can close the form when I close the Anchor Window?
Thanks all.
Johnny
I am having some difficulty using the Anchor Bar Usage sample from the
Visio 2007 SDK. The problem I am having is that the content of the
Anchor Window doesn't display properly. I did some debugging and found
that the following line of code:
listForm.Dispose();
in this section of code:
// Set the form as contents of the anchor bar.
listForm = new AnchorBarForm();
listForm.ParentVisioApplication = visioApplication;
addFormToAnchorWindow(anchorWindow, listForm);
listForm.Dispose();
is causing the display problem. As I commented out the line that
dispose the form, everything works fine.
Then I run into another problem when I tried to close the Anchor
Window. It seems like by closing the Anchor Window, it doesn't close
the form that was added to it as a child. As the result, the form
shows up by itself after I closed the Anchor Window. Any idea how I
can close the form when I close the Anchor Window?
Thanks all.
Johnny