Reputation: 157
The Visio Drawing Control was successfully added into a form in VB.net. The issue faced was how can I display the 'Shapes' window. I checked the child for Microsoft.Office.Interop.Visio.Window and don't see any to display the 'Shapes' window.
Upvotes: 1
Views: 1041
Reputation: 157
In VB.net, to show the 'Shapes' window at the Microsoft Visio Drawing Control:
Dim vsoWindow As Visio.Window
vsoWindow = AxDrawingControl1.Window
vsoWindow.Application.DoCmd(1669)
Upvotes: 0
Reputation: 1734
In VBA you can show Shapes window with docmd
Application.DoCmd (visCmdShapesWindow) ' visCmdShapesWindow = 1669
Full DOCMD commands list you can find there DoCmd/DOCMD Commands
Upvotes: 1