Click here to Skip to main content
15,897,334 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello!
There is a "Class FrCercaRapport" - this is FORM
At this class there is method:

VB
Public Overrides Sub Nuovo()
            MyBase.Nuovo()
            Dim wFrRapportoEdit As FrRapportoEditor = New FrRapportoEditor(mOperatoreApp)
            AddHandler wFrRapportoEdit.Closed, AddressOf DialogFormHandler

            wFrRapportoEdit.ShowDialog()

        End Sub



This method calls to "Class FrRapportoEditor" where calls method:
VB
Private Sub POk_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btSalva.Click


That method wRapporto.Insert() returns objects "{Smouse.Repository.Client.Objects.Rapporto}"

I want to get this object at parent Class FrCercaRapport, for this i make next:

VB
Dim dForm As FrRapportoEditor = CType(sender, FrRapportoEditor)
search(dForm.wRapporto)


But it is not work
Posted
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900