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
    Find Next (VIP replies)
    microsoft.public.dotnet.languages.vb
    I added a form with a textbox, and a button. It currenly searches a rich text box from fmMain. But it only locates the first instance, how do I find next? My Code: Private Sub btnFind Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnFind.Click ' 'Searches the current document. ' Dim vFind As String tbFind.Text fmmain.rtb.Find(vFind) End Sub
    Find Parent Control of Control. (VIP replies)
    microsoft.public.dotnet.general
    Some one help me out. I have a windows form.I added Panel to a windows form. I put a textbox in a Panel. When ever I try to get Parent of textbox. its always returns me the handle of Form not the panel. Is there any way to get the Parent Control of a control on the Form? Am I missing anything? Thanks dinoo
    find value of cell in datagrid? (VIP replies)
    microsoft.public.dotnet.framework.aspnet.webcontrols
    Gents, What is the easiest way to get the actual value of a cell in a bound web datagrid contol? I have a grid bound to a oledb table. I filled and bound the data, laid out the columns, no problem, However, I need to get the value of a field (cell?) in the selected row of the grid. I've tried a bunch of ways, which yeild a value of "nothing", and have seen references to other methods that seem ext...
    FindByText not working (VIP replies)
    microsoft.public.dotnet.framework.aspnet.webcontrols
    I have a screen that is trying to search a listbox both by FindByText and FindByValue. The FindByValue is working find, but the FindByText is not finding anything. This is even if I copy the text directly from the source page and paste it into the textbox to make sure I have no typos. Here is the screen: ******************************************************************* %@Page Explicit "True" Lan...
    FindByValue equivalent for forms (VIP replies)
    microsoft.public.dotnet.framework.windowsforms
    Im trying to come up with a means to simulate the web version of FindByValue. given: private void SelectValueInComboBox(System.Windows.Forms.ComboBox cbo, int id) { } How would I do the equivalent to the web version: cboText.FindByValue(12).Selected true; (not sure about exact syntax, but thats what Im trying to get. Im using the DataValueMember and DataTextMember propertied to bind)
    Finding Controls in a Table (VIP replies)
    microsoft.public.dotnet.framework.aspnet.webcontrols
    Hi All I am dynamically Creating DropDownList boxes for a Survey form. These DropdownLists are added to Table Cells programatically. I tried to loop thru the controls on the form but it doesnt seem to work right, the loop appears below: for each cntl in page.controls(1).controls ddlId cntl.Id debug.write(ddlID) next nothing Fancy i am just trying to find the controls and then later on get the valu...
    Finding current Procedure (VIP replies)
    microsoft.public.dotnet.languages.vb
    Finding current Procedure I want to write errors to a log file, where the error log contain the description of where the error occurred and what kind of error it was. Private Sub Button1 Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click On Error GoTo errHandler 'Some code If Somthing Then "do this" Else "do that" End If Exit Sub errHandler: myPrintToFileProced...
    Finding data values from a Radio Button's Checked Changed event (VIP replies)
    microsoft.public.dotnet.framework.aspnet.webcontrols
    I was helped earlier with a question regarding Events...i have another. I have a datalist that has 3 radio buttons being generated on each line that represent a RECORD STATUS...when someone clicks the radio buttons i am firing an event...at that time i want to read in the ID field from the table, either directly from the data, or from the value of a label so that i know which record to update the ...
    Finding Dynamically Created DataGrid Controls (VIP replies)
    microsoft.public.dotnet.framework.aspnet
    Hi Guys, I have a datagrid that are databound at runtime and columns are added automatically to it from the dataset. OnEdit Command renders all fields as editable, my problem is I need to specify in some way which columns are not editable, I have the columns I would like to lock for editing, but how do I tell the datagrid this ? My columns are dynamically added to the grid at runtime, because the ...
    Finding files and saving (VIP replies)
    microsoft.public.dotnet.general
    I am new to VB.Net(2003) and am having some problems. I am running Office 2003 with VB.Net 2003 and currently working through the VB.Net Step by Step book to become familiar with the program. The problem I am having is that when I try to open an existing file using Word, Excel, Access or PPT,I always get an error message saying the file could not be found. Same problem when I try to save a file ma...
    Finding out the name of the current aspx page. (VIP replies)
    microsoft.public.dotnet.framework.aspnet
    Hi, Does anyone know if its possible to find out the name of the current page, less any directories in front of it? I just want the page.aspx part Thanks all Simon
    Finding out the time user takes before hitting submit (VIP replies)
    microsoft.public.dotnet.framework.aspnet
    Hi, I was wondering how I can find out the time user takes on an aspx page before hitting a submit button. Since there is that whole server side vs. client side issue, I was thinking I can store the current time in a variable on server side, and when the user hits submit, inside the method invoked I take the difference of the time now and the previously stored time. It all makes sense right? And I...
    Findwindow Question (VIP replies)
    microsoft.public.dotnet.framework.compactframework
    I am using the following syntax. h findwindow("HHTaskBar","") I would like to hide the task bar on a CE 4.1 device and I am using VB .Net. I keep getting an error missing exception method. I have tried h an a integer, intptr and a long. I have also declared the findwindow function. Am I doing something wrong or could sample code be provided. I have only tried this the emulator, could this be my pr...
    Fire Code behind code AND Javascript code associated to a Button Click Event (VIP replies)
    microsoft.public.dotnet.framework.aspnet
    I have a button that opens a new Window (some kind of search window), which is fired using JavaScript (btnSearch.Attributes["onclick"] ".....";). Now I need to run some code behind code BEFORE this JavaScript runs. I tried to define another Button with an EventHandler associated, and from this (after doing my code) fire 'btnSearch.click()'. But I can't make it work. I tried: private void Button1 C...
    Fire Javascript method on BUTTON click?!? (VIP replies)
    microsoft.public.dotnet.framework.aspnet
    OK, I've got a basic webform set up, with several buttons that I want to trigger different things on when they're clicked. For example, when the onClick event is triggered on one, I want a javascript method to fire and open a new window, redirecting to either another page on my site or a page off site. 1) How do I do this? A traditional "onclick" event on the control line doesn't work, and setting...
    firing an event procedure of a control (VIP replies)
    microsoft.public.dotnet.framework.windowsforms
    In VB6 I'd access the event procedure of a button simply by typing cmd1 click. Suddenly I need to do that and can't find a way. How to I acess another button's procedure? I noticed btn.performclick for the click procedure of a button, but what if the control isn't a button and the event isn't a click? Thanks loads dennis
    First asp.net error. Pl help (VIP replies)
    microsoft.public.dotnet.framework.aspnet
    I get the following error. Please help c:\inetpub\wwwroot\WebApplication1\WebForm2.aspx(6,38): error CS1001: Identifier expected c:\inetpub\wwwroot\WebApplication1\WebForm2.aspx(6,52): error CS1002: ; expected c:\inetpub\wwwroot\WebApplication1\WebForm2.aspx(7,19): error CS1519: Invalid token '(' in class, struct, or interface member declaration c:\inetpub\wwwroot\WebApplication1\WebForm2.aspx(9,2...
    First exception is very slow... (VIP replies)
    microsoft.public.dotnet.languages.csharp
    I've noticed that the first exception thrown/caught by an app running in debug is very slow it takes perhaps 7 or 8 seconds on my P4 machine. I've noticed this on several different machines running the development environment. To replicate, create a new c# windows app, add a button, and hook it to the following code: private void btnException Click(object sender, System.EventArgs e) { try { throw ...
    First script - SQL Query (VIP replies)
    microsoft.public.dotnet.framework.adonet
    Hello, below is my first attempt at programming (actually copying someone elses script and modifying it for my needs). My sql statement is hard coded with where MSName 'br17348'. I really want the where clause to use the value in the User ID field. How do I dynamically pick up the value entered in User ID of this page for my query? I have not been able to get the syntax correct. Thanks Brad %@ Imp...
    Flashing Text (VIP replies)
    microsoft.public.dotnet.languages.vb
    Can somebody please help me on how to make text flash using a timer. Is using a timer the ideal way or is there an easier way!? I wanted to use: If Label2.ForeColor.Red Then Label2.ForeColor.Empty() Else Label2.ForeColor.Red() but i get system.color can not converted to Boolean. Can somebody please help me... I am pulling my hair out! Regards Chris Posted Via Usenet.com Premium Usenet Newsgroup Se...
    Flawed logic (VIP replies)
    microsoft.public.dotnet.framework.aspnet
    I've been working on a project for the last week and I can't seem to get it working. It's supposed to be finished within the next few days so a speedy reply would be appriciated. Anyways, it seems that my program goes into some sort of endless loop that I can't find, as when I click a link to get to the page I'm working on, the page never loads, and the aspnet wp process consumes 98% of cpu time (...
    Flicking (VIP replies)
    microsoft.public.dotnet.framework.drawing
    Hi all, i m doing my first GDI application. i have a form with a picturebox inside, and i m drawing inside the picturebox , but when i do a resize of the form, it doen st repaint the all objects see the picture there is my code what i'm doing wrong .. ( or what is the best way todo this without flickering ) Private Sub picPictureBox1 Paint(ByVal sender As System.Object, ByVal e As System.Windows.F...
    Focus events (VIP replies)
    microsoft.public.dotnet.framework.windowsforms.controls
    Hi In MSDN it states that the focus events for a control occur in the following order: 1) Enter 2) GotFocus 3) Leave 4) Validating 5) Validated 6) LostFocus but if I put a simple form together with two textboxes on and write to the output window when the leave, validating and LostFocus events are fired on textbox1 I see the following order: LostFocus Leave Validating Is this correct? Regards Trevo...
    Focus not working the way I would expect it. (VIP replies)
    microsoft.public.dotnet.framework.compactframework
    Hi, I have a custom control which contains another custom control. I am writting something like this: public LonLatDialog(int aWidth,int aHeight) { ... Controls.Add(mDropDownList); mDropDownList.Hide(); Focus(); } When I do this and I call Focus(). I would have expected the control LonLatDialog to get focus and for this.Focused to be true. But this is not the case this.Focused never gets set to tr...
    Focus On TextBox (VIP replies)
    microsoft.public.dotnet.framework.aspnet
    Hi, Can I configure a TextBox to have focus and cursor on it when page gets loaded? Thanks, Alan
    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