Click here to Skip to main content
12,887,768 members (40,143 online)
Rate this:
Please Sign up or sign in to vote.
See more: VB 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

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

    Print Answers RSS
Top Experts
Last 24hrsThis month

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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100