Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: VB.NET
There is a "Class FrCercaRapport" - this is FORM
At this class there is method:
Public Overrides Sub Nuovo()
            Dim wFrRapportoEdit As FrRapportoEditor = New FrRapportoEditor(mOperatoreApp)
            AddHandler wFrRapportoEdit.Closed, AddressOf DialogFormHandler
        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)
But it is not work
Posted 28-Feb-13 1:30am
Edited 28-Feb-13 1:32am

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