Call Parent Click event in Child form in VB.Net

  • Thread starter Thread starter Harish Waghmare
  • Start date Start date
H

Harish Waghmare

Guest
Hi,

I have to call Parent client event in child form in VB.Net. In this i have to overrides the parent and write the new logic on Child form.

Parent Code

Public Overridable Sub PastToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PastToolStripMenuItem.Click
Select Case cmSelection.SourceControl.GetType.Name
Case "C1FlexGrid"
If grd.RowSel > 0 Then
If grd.Cols(grd.ColSel).AllowEditing = True Then
grd.Rows(grd.RowSel)(grd.ColSel) = Clipboard.GetText()
End If
End If

End Select
End Sub




Child code

Inherit of Parent Class

Public Overrides Sub PastToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles PastToolStripMenuItem.Click
Try


Catch ex As Exception

End Try
End Sub

Continue reading...
 
Back
Top