How can i get the toolbar's reference?
I have written a programm about Mdi . the toolbar belogs to the parent form. when i click one button in the child form , i want to use the parent's reference of the toolbar . but can i do ?
hope anyone's help.
You can simply create a public property in parent window code
something like that:
' I'm not sure about the path to the toolbar component so check it first
public readonly propety myToolBar as window.form.toolbar
'in your form
'you need a reference to your parnt window:
' 1)you can get through me.parentwindow if i'm not wrong
' 2)but I would recommend you to store a referense to all your windows includng parent one somewhere in shared file in form of shared objects
private sub some_sub
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL