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
    non clickable TextBox (VIP replies)
    microsoft.public.dotnet.framework.windowsforms.controls
    hello, my aim is to create an enabled text box with the behaviour of an disabled TextBox without greyed Text. i created a custom text box control and set the read only property to true and changed the background color. i overrided OnMouseDown and OnClick events, but the text is still selectable. any suggestions?
    Non-Rectangular Form Question (VIP replies)
    microsoft.public.dotnet.languages.vb.controls
    Hi, i have some questions about non rectangular forms 1) i build a form as a non rectangular by setting the form background to some bmp file and the transparenceyKey to the color which i want to make transparent and every thing ok BUT when i m replacing the bmp file i can see the new one in the form designer but when i m running the program i m getting the old bmp file. i tried to remove the backg...
    NoNullAllowedException (VIP replies)
    microsoft.public.dotnet.languages.vb
    I using VB.NEt to connect to a Access Database. When I try to add a record to the customer table. It gives me this error. An unhandled exception of type 'System.Data.NoNullAllowedException' occurred in system.data.dll Additional information: Column 'WorkPhone' does not allow nulls. I verified how the data should be entered into the field and made sure that I enter it that way onthe Vb form but I s...
    NOT ANSWERED BEFORE Wiring button events in code. (VIP replies)
    ASPFriends.com 'aspngescalate' list
    "I tried to ask this on [aspngfreeforall] and got no answer (posted 24/7 & 25/7). Now I need to get this answered because the other list is not providing me with valid answers. (no replies were posted at all)." Look at the code below: (You can see the code in action at http://ip1.cambro.net/v0 2/webform3.aspx ) I am trying to wire up the click event of button2, but only do it when button1 has been...
    NOT ANSWERED BEFORE: validation firing on postback - repost (VIP replies)
    ASPFriends.com 'aspng-validators' list
    Is there a way to validate just a control or pane and not the whole page when you use page.validate? I have a second pane after a login pane, that displays a registration form, and all the fields have already been validated and are showing the 'required' message. I have to call validate.page because I am using an ontextchange event to submit. Thanks for any ideas on this. Original Message From: Br...
    NOT ANSWERED: LinkButton Bug (VIP replies)
    ASPFriends.com 'aspngfreeforall' list
    Resending this so that I can eventually move to escalate: I've noticed that the link button uses javascript to do postbacks but there is one problem with this. form.submit() doesn't call the form onSubmit code (if any is defined)....I have a user control that requires some processing when the form is submitted. But if the user control is used in page that uses linkbuttons (instead of normal submit...
    notify to other control state change... (VIP replies)
    microsoft.public.dotnet.framework.aspnet.webcontrols
    Hi, I have a web custom control that i drag and drop into a webform.aspx... Next to it, i made another web custom control and drag and drop the new one into the webform.aspx... I would like to know how could both webcontrols notify their changes in the state... For instance. If a webcontrol its a dropdownlist and the another webcontrol its a textbox... if i change the dropdownlist how could the dr...
    NotifyIcon and SetForegroundWindow (VIP replies)
    microsoft.public.dotnet.framework.windowsforms
    I use NotifyIcon to minimize my app to the system tray. I also check everytime my app runs for the previous instance, if it is running, call SetForegroundWindow to bring its window up front and exit the second instance. The problem is it doesn't bring the app out of the system tray. It works fine if the app is NOT in the system tray. How do I bring it out of the system tray and make it an active w...
    NotifyIcon Bug, Application.EnableVisualStyles, Application.DoEvents, and Memory Leaks (VIP replies)
    microsoft.public.dotnet.framework.clr
    I've got a C# application that disables some application functionality, displays a form, and when the form is closed enables the functionality. I know there are several approaches to this, but I wanted something quick and relatively risk free. Therefore, I wrote the code like this: SetEnabled(false); MyForm NewMyForm new MyForm(); NewMyForm.Show(); while (NewMyForm.Visible) { Application.DoEvents(...
    NotifyIcon program - Button exception (VIP replies)
    microsoft.public.dotnet.languages.vb
    When I add a Button to my NotifyIcon program I get the following: An unhandled exception of type 'System.NullReferenceException' occurred in unknown module. Additional information: Object reference not set to an instance of an object. I suspect this is a common novice error but I haven't any idea what I need to do to get this to work. "Help" seems to be geared toward people who have been coding fo...
    Null pointer exception for events in usercontrols (C#) (VIP replies)
    microsoft.public.dotnet.languages.csharp
    Hi, I'm writing user controls with custom events. I have a parent custom event that exposes some abstract methods and some custom events. I have also created some new user controls that derive from the parent custom control and add some text boxes, labels, buttons etc... So, let's say I created a control with a button in it. I'd want that when I click on the button the button sends an event to the...
    Null reference? (VIP replies)
    ASPFriends.com 'aspngfreeforall' list
    Hi all.... I have in my global.asax page protected void Session Start(Object sender, EventArgs e) { Session["UsersDB"] "Provider Microsoft.Jet.OLEDB.4.0;Data Source " Server.MapPath("databases\\users.mdb"); } and then in my code when I try to reference Session["UsersDB"] I get the error "Value null was found when an instance of an object was required" Is there something I have to set in the web ap...
    NullReference Exception - Why? (VIP replies)
    microsoft.public.dotnet.general
    I keep getting the following error with the code below: Exception Details: System.NullReferenceException: Object reference not set to an instance of an object. Caused by this line: this.basicSearch.OnSomethingHappened new System.EventHandler(this.ShowResult); Here is some of my code: CODE private void ShowResult(object sender, System.EventArgs e) { this.results.searchData ((BasicSearch)sender).sea...
    NullReferenceException in UnsafeNativeMethods.PeekMessage and multithreading concepts in general (VIP replies)
    microsoft.public.dotnet.framework.windowsforms
    I'm developing a simple applications that extracts data from files, that can eventually become large. I have logic that scans a particular folder, and for each file in the folder instanciates a parser class and processes the specified file. I want to start a background thread with the main logic to not freeze the UI. I am new to windows forms, so i had to try some scenarios and I am wonder what is...
    NullReferenceException with Image.Save (VIP replies)
    microsoft.public.dotnet.framework
    When calling the Save(filename, imageFormat) method of a System.Drawing.Image object, I get a NullReferenceException shown below. I get the exception if I create a new stream writer pointed to the file I want to save, and give the Image.Save method the BaseStream of the new stream writer, or if I use the overload of Image.Save with the string filename parameter. The exception does not occur every ...
    Numbers in the rows in a grid (VIP replies)
    microsoft.public.dotnet.framework.aspnet
    Hi, In a grid I'd like to show a column with incremented numbers from 1 upwards. Like this: 1 MyName 2 Yourname 3 Hisname 4 Hername Any ideas? TIA /Kenneth
    Numeric Textbox - getting warmer (VIP replies)
    microsoft.public.dotnet.languages.vb
    The following control code only allows for the entry of numbers, backspace, and decimals (or periods). The problem lies in the last statement it allows multiple decimals or periods. How would I modify the code to only allow 1 decimal? In other words once a user entered one period no others could be entered? Private Overloads Sub TextBox1 TextChanged(ByVal sender As System.Object, ByVal e As System...
    Numeric Textbox Code (VIP replies)
    microsoft.public.dotnet.languages.vb
    I apologize for those of you who think I'm posting on the same topic. It is not that I don't appreciate all of your comments and I'm definitely reading them all but I think I have a differing opinion of how I want to handle the 'user experience' in the application I'm creating. While I know I could allow the user to enter in number and alpha text in a text box and then tell them when the execuate ...
    numeric textbox help (VIP replies)
    microsoft.public.dotnet.languages.vb
    hi i have tis procedure for my text box Private Sub TextBox1 KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress If Char.IsDigit(e.KeyChar) Then e.Handled False Else e.Handled True End If End Sub and work fine but i cant use backspace to delete number if i mistake or cant use "," or "." for decimal numbers. Any sugestion? Please help Thanks...
    NumericUpDown.Select problem (VIP replies)
    microsoft.public.dotnet.framework.windowsforms.controls
    Hello Everybody, I am having text selection problems with the NumericUpDown control. I'd simply like to highlight all text within the NumericUpDown control upon focus entry on the control. For instance, if somebody uses the 'Tab' key to jump from one control to the next, the entire number in the NumericUpDown should be highlighted, so that the first numeric text entry will replace the entire numbe...
    Object Error (VIP replies)
    microsoft.public.dotnet.framework.aspnet
    I've read through the prevoius posts and coudln't find an answer. I'm getting a "Object reference not set to an instance of an object." and can't figure out why. My pageload sub is check for login true, then cookie to login, then bounce to login page. So I find if the user isn't logged in and there is no cookie I get this error. I have no drop downs within the "If Not IsPostBack Then". I have data...
    Object initialization in C# thread - unexplained behaviour (VIP replies)
    microsoft.public.dotnet.languages.csharp
    Hello all, I have a C# class (in this example, called A) that, in its constructor, starts a thread with a method of its own. That thread will be used to continuously check for one of its object's state and generate classe's A events "Connected" and "Disconnected". It looks something like this: " public class A { private AnotherObject an obj; private Thread thr; ... public event System.EventHandler...
    Object Reference Error Before Running The Application (VIP replies)
    microsoft.public.dotnet.languages.vb
    I'm getting an Object Reference error before I even run my app, and I'm not sure where to look to find the cause. I'd appreciate your help. When I open my Windows Application project, the following Microsoft Development Environment error message displays: "Object reference not set to an instance of an object." Then when I access the design view of one of my forms, the controls on the form are hidd...
    Object Reference Not Set to Session Dataset (VIP replies)
    microsoft.public.vsnet.general
    I'm getting Object Reference Not Set error on one computer but not another, with exactly same files. Files were copied from one computer wwwroot project to same location on other computer. Can't figure out why it works on one computer and not other. Both have Windows Server 2003 and VS.NET 2003. NOTE: Problem centers around getting dataset from Session variable. Error and code are below. I'd appre...
    Object sender in VB.NET <-> C# (VIP replies)
    ASPFriends.com 'aspngfreeforall' list
    Hi, if you use a server side function to display the id of an control that raised the event (function), in vb.net you could use: Sub MyChangeCode(objSender As Object, objArgs As EventArgs) divResult.InnerHtml "Change event detected for control '" & objSender.ID & "' br / " End Sub Now I wanted to convert this code in c# and tried out the following: public void MyChangeCode(object objSender, System...
    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