Advertisement

03.25.2008 at 02:24PM PDT, ID: 23268697
[x]
Attachment Details

Passing Paremeters to AddHandler Method in VB.NET

Asked by intikhabk in .NET, Microsoft Visual Basic.Net, Visual Studio .NET 2005

Tags: VB.NET

I have a method for examples
    Private Sub SubreportFinancialAssistanceTypes(ByVal sender As Object, ByVal e As SubreportProcessingEventArgs)
     'some database calculation inside this method
    End Sub

I call this method in VB.NET as
AddHandler rptViewer1.LocalReport.SubreportProcessing, AddressOf SubreportFinancialAssistanceTypes

I need to make the SubreportFinancialAssistanceTypes method generic and I need to pass a dataset to this method. The dataset will be a third parameter..Can I do that and how to do???
Start Free Trial
[+][-]03.25.2008 at 02:44PM PDT, ID: 21206566

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.25.2008 at 02:59PM PDT, ID: 21206677

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.25.2008 at 04:03PM PDT, ID: 21207302

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: .NET, Microsoft Visual Basic.Net, Visual Studio .NET 2005
Tags: VB.NET
Sign Up Now!
Solution Provided By: TheLearnedOne
Participating Experts: 2
Solution Grade: A
 
 
[+][-]04.24.2008 at 06:39PM PDT, ID: 21436528

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628