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
 
Top