471,354 Members | 2,015 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,354 software developers and data experts.

Could please convert the VB code to managed C++

Anybody Could please help this...

MDIParent Form:

Event ButtonClick(strKey As String)
Private Sub tbrMain_ButtonClick(ByVal Button _
As MSComctlLib.Button)
RaiseEvent ButtonClick(Button.Key)
End Sub

MDIChild Form:

Private WithEvents m_mdiParent As mdiParent
Private Sub Form_Activate()
Set m_mdiParent = mdiParent
End Sub
Private Sub Form_Deactivate()
Set m_mdiParent = Nothing
End Sub
Private Sub m_mdiParent_ButtonClick(strKey As String)
' Sample code assuming Button.Key values of
' "New", "Change", "Delete" and "Save"
Select Case strKey
Case "New"
Case "Change"
Case "Delete"
Case "Save"
End Select
End Sub
Thankyou very much

Jul 21 '05 #1
0 1031

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by chenedor | last post: by
5 posts views Thread by Michael D. Reed | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.