how to send commands to a mdiparent from an mdichild
I have been working on my proyect in Visual basic .net but i have some troubles sending an order to disabled the toolbar from a mdichild, i debugged the application i saw that the order was sent but when i look th application i notice that the toolbar is still enabled... what can i do?, what is going on in the proyect with the toolbar. the routine which i'm using is:
Sub Habilitar_Comandos(ByVal estadoAsBoolean)Dim btAs ToolBarButton, llAs LinkLabel, miAs MenuItemDim noAsBoolean =Not estadoForEach btInMe.ToolBar1.Buttonsbt.Enabled = estado
NextMe.ToolBar1.Buttons.Item(1).Enabled = noMe.ToolBar1.Buttons.Item(3).Enabled = noIf estado =TrueOrElse estado =FalseThenMe.ToolBar1.Buttons.Item(23).Enabled =TrueEndIfEnd Sub
and the routine in the mdichild for disenabled the toolbar is:
PrivateSub Button1_Click(ByVal senderAs System.Object,ByVal eAs System.EventArgs)Handles Button1.ClickDim formaAsNew Form1forma.Habilitar_Comandos(
True)EndSubThanks for everything

