System.EventArgs Class
Information   Base Types   Related Resources

EventArgs is the base class for classes containing event data.

  • Namespace: System
  • First seen in: .NET v1.0.3705
  • Last seen in: .NET v1.1.4322
  • Last changed in: .NET v1.0.3705
  • Assembly: mscorlib.dll

  • System.Object
  • View this type on MSDN
  • View this type on WinFX 247
    Articles (890)Discussions (11139)MembersRotorChanges
    Discussions

    Page: 1234567891011121314151617181920
    2122232425262728293031323334353637383940
    4142434445464748495051525354555657585960
    6162636465666768697071727374757677787980
    81828384858687888990919293949596979899100
    101102103104105106107108109110111112113114115116117118119120
    121122123124125126127128129130131132133134135136137138139140
    141142143144145146147148149150151152153154155156157158159160
    161162163164165166167168169170171172173174175176177178179180
    181182183184185186187188189190191192193194195196197198199200
    201202203204205206207208209210211212213214215216217218219220
    221222223224225226227228229230231232233234235236237238239240
    241242243244245246247248249250251252253254255256257258259260
    261262263264265266267268269270271272273274275276277278279280
    281282283284285286287288289290291292293294295296297298299300
    301302303304305306307308309310311312313314315316317318319320
    321322323324325326327328329330331332333334335336337338339340
    341342343344345346347348349350351352353354355356357358359360
    361362363364365366367368369370371372373374375376377378379380
    381382383384385386387388389390391392393394395396397398399400
    401402403404405406407408409410411412413414415416417418419420
    421422423424425426427428429430431432433434435436437438439440
    441442443444445446
    Event consuming (VIP replies)
    microsoft.public.dotnet.languages.csharp
    I have a dotNet device (slow as tar) that is doing some really expensive processes, and I need a way to handle the user clicking a button too quickly, as I can't keep up with the redraw (1 2 seconds wait time per click). I feel an event is the way to go, but don't know how to say "if the event is in the process of being called as it is, stop, and get use the latest data". Thanks for dealing with n...
    Event Delegation in MDI App (VIP replies)
    ASPFriends.com 'winforms-cs' list
    Hi All I have an MDI Application which contains mainmenu like the following File Open Save Child1 Close Child2 Exit When user selects Open/ and any of the options Child1/Child2, the corresponding child form is opened. When user selects File/Save the current active child has to save(I am just displaying a messageBox). I am tryin to implement all this using Event Delegation model. This is my Event C...
    event handler (VIP replies)
    microsoft.public.dotnet.languages.csharp
    hi there is a way to obtain the handler's list for a specific event of an object? thanks
    Event handler cannot get fired (VIP replies)
    ASPFriends.com 'aspngfreeforall' list
    Hi, all It seems something wierd with my machine. The event handler is never got fired. For example, I wrote a simple testing page, with a button and label on it. The button has an onclick event handler to change the label text. Everytime I click the button, the page is self submitted. I can see this because the session id is changed. But the event handler never get fired. And I check Page.isPostB...
    Event Handler for Control Key F2 (VIP replies)
    microsoft.public.dotnet.languages.vb
    hello to all, I found in Internet the following code that is very usefull to me. The code detects any character that is entered to datagrid, I am interested in the control key F2 but I don't know how to adding an event handler to a column of datagrid that raise when this key is pressed. Please help me Private Sub AddCustomDataTableStyle() Dim ts1 As New DataGridTableStyle() ts1.MappingName "Custom...
    Event handling for dynamically generated controls (VIP replies)
    microsoft.public.dotnet.framework.aspnet
    Hi, I am dynamically generating check boxes in the Panel control based on a database field, and I've set the AutoPostBack property to True. How can I determine which CheckBox caused the post back ? Thank you, Steve
    Event not occuring, returning null (VIP replies)
    microsoft.public.dotnet.framework
    Hi, I am about to take a cricket bat to my PC, so in the interests of stopping this terrible act of cruelty to a fairly innocent Dell machine, anyones help here would be SO appreciated. I have a web app, with a RaiseEvent.cs in a Components foler in this file I am trying to raise an event. I also have a page WebForm1.aspx, and here I am trying to subscribe to this event BUT!!! everytime I run the ...
    Event on dynamically created linkbutton in C# (VIP replies)
    microsoft.public.dotnet.languages.csharp
    Hi, My web from has one button and by clicking this button a list of linkbuttons must be dynamically displayed based on information in database. Then click any one of these linkbuttons another set of linkbuttons will be displayed, and so forth... My code works, but I have to click twice every time to get it running correctly. I can not figure out what's wrong in my code. My code: public class WebF...
    Event Ordering (VIP replies)
    microsoft.public.dotnet.framework.aspnet.webcontrols
    I have single page in which I utlize user controls to populate the page. One control loads a menu. I use the clicked event on the menu to determine what content I load into place holder control. Dim objPageSkin As Control Nothing objPageSkin LoadControl(myControl.ascx) PlaceHolder1.Controls.Add(objPageSkin) The content is loaded from 1 to n user controls depending on the item clicked. This works w...
    Event ordering problem (VIP replies)
    microsoft.public.dotnet.framework.aspnet
    Hi everyone, I have run into a quandry here. Here is a simplified scenario that mirrors my real problem. I have a page that has 2 buttons: On page load, the page runs some complex initialization routines. Clicking button 1 causes a postback in which I WANT the initialization routines to run before the event handler. The net of this is that the same page redisplays slightly differently. Clicking bu...
    Event/Notification when a USB device plugged in (VIP replies)
    microsoft.public.dotnet.languages.vb
    Is there an event or notification that my application can receive when a USB device (or other) is plugged in? I have looked at WMI as this appears to be the right area but cannot see how to get notification when this particular event occurs. The same goes for removal as well. TIA Charles
    Events (VIP replies)
    microsoft.public.dotnet.languages.csharp
    Hi I'm aware of two different ways of raising events from a class, using an EventHandler and deriving a class from this in order to pass information and using a delegate. I'm fine with either of these, but what I'd essentially like to do is when I type on the event handler, and it says in the intellisense 'Press tab to insert event handler' etc., for it to come up with the correct derived event ar...
    Events and Delegates (VIP replies)
    microsoft.public.dotnet.framework.aspnet.buildingcontrols
    How in a asp.net web form can you have two different objects events call the same sub with different signatures. Example: I have 1 ImageButton control and 1 LinkButton Sub HandleTheEvent(ByVal sender as object, Byval e as eventArgs) 'blah End Sub By doing AddHandler ImageButton1.Click, AddressOff Me.HandleTheEvent and AddHandler LinkButton1.Click, AddressOff Me.HandleTheEvent The signatures do not...
    Events and delegates... (VIP replies)
    microsoft.public.dotnet.general
    Hello, I have populated an a web form with dynamically created radiobuutons in a table. I wnat some of the radio buttons to fire events when their ..CheckChanged property has changed. I understand and was told this can be done with events and delegates. But my code would not compile. Here is what i did. public delegate void specialRadioEventHandler(object sender, EventArgs e); .... .... .... priva...
    Events don't fire for dynamically loaded control when loaded by an event procedure (VIP replies)
    microsoft.public.dotnet.framework.aspnet
    If a child control is loaded dynamically during a host page event handler, the events of that control do not appear to be detected by the host page. If that same control is loaded in the same way during page load or page init, then the child's events are detectable. Is there any way to change the behavior? Example: I have a single host page that loads many different simple UI controls one at a tim...
    Events in a custom template control (VIP replies)
    microsoft.public.dotnet.framework.aspnet.buildingcontrols
    I have written a template control which contains a button. I have added a public event to the control which I raise on the button's Click event. In the main page that contains an instance of this template control I have code in the codebehind page to handle this event. My problem is that this code never fires and in fact the form validation controls don't respond when I click the button either. He...
    Events in derived class (VIP replies)
    microsoft.public.dotnet.languages.vb
    Hi Guys, I'm trying to work out how events work in VB.NET Basically I want to create a base class that has an Event. I would like all derived classes to inherit this event. I sorta worked out how to do that but the real problem I have is that If I have a base class with an event and derived class 1 and 2 inherit this event. Say derived class 1 creates a new derived class 2 how does this new class ...
    events in MC, C# (VIP replies)
    microsoft.public.dotnet.languages.csharp
    hello all, I need to hook some event handler in Managed C code into event, that is declared, and is fired in C# code. as i understand, this maybe achieved via hook, but when i write code like this hook(&SomeControl::SomeEvent:, controlInstance, &CSomeClass::EventHandler); i get an error that the event handler method must have the same paremeters as delegate. my method's params are : (System::Objec...
    Events inside a class (VIP replies)
    microsoft.public.dotnet.framework.aspnet.buildingcontrols
    Hi, to all. I have a web control that has only a button for one hand. for another hand i have a class with one event: public Class1 { public event EventHandler Finded; private void OnFinded() { Finded(this, new EventArgs()); } //in the class i have a method that make a simple query to a database and store the values (if exist) into a datatable. public void Query() { Code with the query..... if(Myt...
    Events inside a Class (VIP replies)
    microsoft.public.dotnet.framework.aspnet.webcontrols
    Hi, to all. I have a web control that has only a button for one hand. for another hand i have a class with one event: public Class1 { public event EventHandler Finded; private void OnFinded() { Finded(this, new EventArgs()); } //in the class i have a method that make a simple query to a database and store the values (if exist) into a datatable. public void Query() { Code with the query..... if(Myt...
    Events not always called depending on application type (VIP replies)
    microsoft.public.dotnet.languages.csharp
    Hello newsgroup I'm using a library to discover UPnP devices on the network via sockets. Its use is pretty straightforward: private void Discover() DevDiscovery disco new DevDiscovery (); disco.OnAddedDevice new DevDiscovery.DiscoveryHandler(OnAdded); disco.Start(); } This code works always, when placed within a main method market with a [STAThread] attribute (console app or winform). I'm quite su...
    events of a remoted object (VIP replies)
    microsoft.public.dotnet.languages.csharp
    I am having a problem trying to assign event handlers to the events of a remoted object. I have one program that registers the object for remoting, Another that connects and calls methods on the object and a third that connects to the object and waits for events. The error occurs when I try to assign event handlers to the remoted object's events in the third program (Listener). hubListenerConnecti...
    Events vs Overrides (VIP replies)
    microsoft.public.dotnet.languages.vb
    In a form, there is a set of events that can be handled. There is also a list of (Overrides). So, for the Closed event, for example, there is an override OnClosed. Where should exit code be placed: in the Closed event handler, or in the OnClosed override function? What is the difference, and why have the two? When would I use each one? Probably quite basic questions, but it has been puzzling me. T...
    Events with Dynamically created controls. (VIP replies)
    microsoft.public.dotnet.languages.csharp
    Everyone: I have a WinForm in which I dynamically create tabs based on some user input. Inside those tabs are some text boxes for data. I can do everything but fire events properly. I have a click event for one of the text boxes on each tab. When I click on the text box the event is fired but I don't know how to check which text box on which tab has been fired. Thank you for the help. Sincerely, D...
    example of setting a user controls properties using code behind instead of script tags? (VIP replies)
    microsoft.public.dotnet.framework.aspnet.webcontrols
    hi all, I am looking for an example for setting/getting a user control's properties using a code behind page instead of script /script tags embedded in the ..aspx page. There seems to be millions of examples using embedded code but none actually showing how to do it in a code behind. for example: say there is a user control called "catsplash.ascx" containing a simple image tag: asp:Image id "imgCa...
    Ad
    MBR BootFX
    Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
     
     Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
    Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com