Setting Drawing Control Properties after InitializeComponent

D

Dave Taylor

I have a Visio 2003 ActiveX drawing control on my VB.NET Windows form. I'd
like to set properties of the control during the form creation (like not
displaying page tabs). The code to set the page tabs is correct, but it
doesnt work in the Form's constructor. The constructor code is below, any
ideas??

Thanks
Dave

Public Sub New()

MyBase.New()

'This call is required by the Windows Form Designer.

InitializeComponent()

'Add any initialization after the InitializeComponent() call

axFlowsheet.Window.Application.Documents.Open(_szStencilFile)

axFlowsheet.Window.ShowPageTabs = False

axFlowsheet.Window.ShowPageOutline = False

axFlowsheet.Window.Windows.ItemFromID(Visio.VisWinTypes.visWinIDShapeSearch)
..Visible = False

End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top