Click here to Skip to main content
12,251,027 members (39,543 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: VB 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
Junoli391
v2

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.160426.1 | Last Updated 28 Feb 2013
Copyright © CodeProject, 1999-2016
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