Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET
Hello!
There is a "Class FrCercaRapport" - this is FORM
At this class there is method:
 
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:
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:
 
Dim dForm As FrRapportoEditor = CType(sender, FrRapportoEditor)
search(dForm.wRapporto)
 
But it is not work
Posted 28-Feb-13 1:30am
Edited 28-Feb-13 1:32am
99.6K
v2

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



Advertise | Privacy | Mobile
Web02 | 2.8.140709.1 | Last Updated 28 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid