jwen
jwen

Reputation: 157

Visio Drawing Control in VB.net

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.

enter image description here

Upvotes: 1

Views: 1041

Answers (2)

jwen
jwen

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

Surrogate
Surrogate

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

Related Questions