Home  |  Index  |  Dotnet4all Snippets  |  Submit resources
About  |  Mail us  
Dotnet4all Logo
How to Pass Parameters to an Event (Tuesday, September 14, 2004)
 

Found the following interesting discussion in the Newsgroups:

Passing Parameters to an Event
by:Lucas Tam

Hi all,

What is the best way to pass parameters to an event?

I have a dataadapter.update that fires, and I am capturing the RowUpdated
event. How do I pass some custom pamaeters into this event?

Thanks!

--
Lucas Tam (REMOVEnntp@rogers.com)


 Reply:
by:Anonymous

 Hi Lucas Tam,

You can do that in two ways,

1. By inheriting Dataadapter class to a class, and redifining your own event with all the custom parameters which you want and raise the event from the Dataadapter.update event.

2. Have some global variables and set some data, use them in the event.

I hope, it will help you.

With regards,

Sadha Sivam S
Malleable Minds Software Pvt Ltd.,
India



Posted by Xander Zelders



 
Previous Posts
    - Build error for VB.NET but not C#
    - Comparing datareader result to a string
    - Dataviews and constrained datasources?
    - Windows service not releasing object
    - How to Shut Down Server
    - How to wrap SendMessage
    - Passing BackColor Values Between .NET and VB6 appl...
    - Scroll Richtextbox automatically
    - FileOpen file permission problem
    - TreeView

Archives
    - 08/01/2004 - 08/08/2004
    - 08/08/2004 - 08/15/2004
    - 08/15/2004 - 08/22/2004
    - 08/22/2004 - 08/29/2004
    - 08/29/2004 - 09/05/2004
    - 09/05/2004 - 09/12/2004
    - 09/12/2004 - 09/19/2004
    - 09/19/2004 - 09/26/2004
    - 09/26/2004 - 10/03/2004
    - 10/03/2004 - 10/10/2004
    - 01/02/2005 - 01/09/2005
    - 01/09/2005 - 01/16/2005
    - 01/30/2005 - 02/06/2005
    - 01/01/2006 - 01/08/2006


Disclaimer & Terms of Use  | DotNet4All.Com concept & © 2004 - 2007 by  Zelders²  - Holland