S
Smiles
Hi there. Thanks for help in advance.
I have an mdi form, with a toolbar.
When i click on the toolbar button, i want to call the sub
of "active mdi child" form's "Action" module, with the button.index passed.
for each "mdi child form", i have defined the module:
sub Action(byval buttonIndex as integer)
case of buttonIndex
take the actions
end sub
for VB6, i know how to make it.
however, when i make the test project be upgraded to vb.net,
---------VB6--------------------------------------------------------------------------------
Private Sub Toolbar1_ButtonClick(ByVal Button As MSComCtlLib.Button)
On Error Resume Next
ActiveForm.takeaction (Button.Key)
End Sub
---------.Net--------------------------------------------------------------------------------
Private Sub Toolbar1_ButtonClick(ByVal eventSender As System.Object, ByVal
eventArgs As AxMSComctlLib.IToolbarEvents_ButtonClickEvent) Handles
Toolbar1.ButtonClick
On Error Resume Next
'UPGRADE_ISSUE: Control takeaction could not be resolved because it was
within the generic namespace ActiveMDIChild. Click for more:
'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="vbup2072"'
ActiveMDIChild.takeaction(eventArgs.Button.Key)
End Sub
Thanks and best regards.
Miles
I have an mdi form, with a toolbar.
When i click on the toolbar button, i want to call the sub
of "active mdi child" form's "Action" module, with the button.index passed.
for each "mdi child form", i have defined the module:
sub Action(byval buttonIndex as integer)
case of buttonIndex
take the actions
end sub
for VB6, i know how to make it.
however, when i make the test project be upgraded to vb.net,
---------VB6--------------------------------------------------------------------------------
Private Sub Toolbar1_ButtonClick(ByVal Button As MSComCtlLib.Button)
On Error Resume Next
ActiveForm.takeaction (Button.Key)
End Sub
---------.Net--------------------------------------------------------------------------------
Private Sub Toolbar1_ButtonClick(ByVal eventSender As System.Object, ByVal
eventArgs As AxMSComctlLib.IToolbarEvents_ButtonClickEvent) Handles
Toolbar1.ButtonClick
On Error Resume Next
'UPGRADE_ISSUE: Control takeaction could not be resolved because it was
within the generic namespace ActiveMDIChild. Click for more:
'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="vbup2072"'
ActiveMDIChild.takeaction(eventArgs.Button.Key)
End Sub
Thanks and best regards.
Miles