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
    how do I loop through htmlcontols in the code behind page.. (VIP replies)
    microsoft.public.dotnet.framework.aspnet
    How would I loop through in a code behind page event the following two controls given the code behind and html below? (c# or vb.net) I would like to access the name of the control, the id, and the value? thx... ************************************************************************* Protected WithEvents txtLastName As System.Web.UI.HtmlControls.HtmlInputText Protected WithEvents txtPhone As Syste...
    How do I overload Show? (VIP replies)
    microsoft.public.dotnet.framework.windowsforms.designtime
    Could someone please explain how I overload the Show() method of a form? Suppose I select a record from a datagrid on Form1, then I want to show the details of the selected record by opening Form2 using say the CustomerID as an 'argument' to the Show method. So, in Form1 I would have code such as: Sub GetSelectedRecord() Form2.Show(CustomerID) Me.Close() End Sub .... and in Form2 I woudl have code...
    How do i Pass the Address of Event in C#. (VIP replies)
    microsoft.public.dotnet.languages.csharp
    Hi, How do i Pass the Address of Event in C#. I have one Event called DeleteItem like Public void DeleteItem(object sender,EventArgs e) { } I'm having one ObjectcontextMenu Collection called myobjColl myobjColl.MenuItems.Add(Caption,EventHandler); here i want to pass the second arguement is address of the DeleteItem. So I Tried Like myobjColl.MenuItems.Add(Caption,&DeleteItem()); It Shows an Error...
    How do I populate a textbox(s) from a dataset? (VIP replies)
    microsoft.public.dotnet.framework.windowsforms
    I need to populate a form from a dataset. Here is my first attempt. I get an error: for both variables saying the name is not declared. code %@ Page Language "VB" Debug "true" ContentType "text/html" ResponseEncoding "iso 8859 1" % %@ Import Namespace "System.Data" % %@ Import Namespace "System.Data.SqlClient" % script language "VB" runat "server" sub Page Load(Sender as Object, e as EventArgs) di...
    how do I present sql data in tabular format using asp.net (VIP replies)
    microsoft.public.dotnet.general
    hi I have been trying to put data I retrived from a sql db into a tabular format I tried asp:table , but it appears I cant databind to it so then I tried to use simple html table and bind to the page and display the record elements any hints for me? %@ Page Language "VB" Inherits "bookingFunctions" Src "bookingCode.vb" % script runat "server" Public strQuery as String "" Private Sub Page Load(send...
    how do i scroll a form? (VIP replies)
    microsoft.public.dotnet.languages.vb
    Hi, I am writing text for a telnet application to a form, and when I get to the bottom of the screen I want to scroll the image upwards by one line. I know the height of the text I am printing, via MeasureString.Height but I do not know how to scroll the actual image contained within the form. Can anybody help me out here? Regards and thanks, Richard
    How do I set focus on a specified textbox at load? (VIP replies)
    microsoft.public.dotnet.framework.windowsforms
    I am attempting to set the focus on a calculated textbox during the forms Load event, however it seems to want to go to the default location instead. Is there some way I can do this in a way that gurantees it will go where I want it to go when the form is made visible?
    How do I Set Focus? (VIP replies)
    microsoft.public.dotnet.framework.aspnet
    Newbie question: What would be the easiest way to set focus to the first textbox on my web page when it's loaded? I tried setting the tab order but I can't get it to work...Or if someone can provide me a script (java) I'd really appriciate it! TIA.
    How Do I set the Value of a DateTimePicker Programmatically? (VIP replies)
    microsoft.public.dotnet.languages.vb
    Hi There, I have this problem I'm trying to address but no luck so far, need your help here. How do I set the value of a DateTimePicker Programmatically? When I do this: txtDate.Value DateTimeNow the txtDate.Checked tells me that is false. So nothing went in there. I know the datetimepicker has a default value which is today's date and you can't do anything to get rid of it, as far as I know. Anyb...
    How do I simply open an ASP page and possibly pass it data from a C# form (VIP replies)
    microsoft.public.dotnet.languages.csharp
    Exactly what the subject says. I have an ASP page that I want my C# windows application to open in Internet Explorer, and if possible have it send along a list of values from a list box. Thank you.
    How do I use an arraylist and a structure together? (VIP replies)
    microsoft.public.dotnet.languages.vb
    I have a form with a listbox and two textboxes. In the listbox I have the make and models of automobiles. and as the user clicks on the make of the car in the listbox I would like to output the make and model in the textboxes, how is this done with an arraylist? John Posted using Wimdows.net NntpNews Component Posted from .NET's Largest Community Website: http://www.dotnetjunkies.com/newsgroups/
    How do you access Table cells from code behind? (VIP replies)
    microsoft.public.dotnet.framework.aspnet
    I created a new C# web application. Basically all I am trying to do is create a table that consists of a few rows with two columns in each. And then to set those columns to text values from my code behind. However I am not able to do this at all, I am going about this wrong, I think and need guideance. If this was just straight HTML I would do this: table tr td field 1 /td td value 1 set by code b...
    How do you add a hyperlink to a datagrid? (VIP replies)
    microsoft.public.dotnet.framework.windowsforms
    Hello, I have a windows forms datagrid, Dim da As New OleDbDataAdapter(sql, conn) da.Fill(ds, "providers") ' set the column widths Dim c0 As New DataGridTextBoxColumn 'c0.TextBox.Enabled False c0.MappingName "PROV ID" c0.HeaderText "ID" c0.Width 45 ' clear out the table style dtgResults.TableStyles.Clear() ' create new table style Dim style As New DataGridTableStyle ' set mapping name to table nam...
    How do you import a .bmp file into an sql database? (VIP replies)
    microsoft.public.dotnet.general
    I want to save a logo in an sql database but have been unable to find any examples of how to do this through VB. Keeping the logo file on a local C:\ folder is not allowed by laboratory policies. Thanks in advance for your help. Jim
    How do you make a webform button run an onClick Javascript (VIP replies)
    microsoft.public.dotnet.general
    Has anyone ever made a webform button run an onClick event that is a Javascript in the HTML code and then after running the script make it go into the code behind? An HTML button will run the onClick event but will not return to the code behind. I need to get back to the code, which the webform button will do but I can't make it execute the script. Any help will be appreciated. Thanks.
    How do you trap a 'System.NullReferenceException' in system.windows.forms.dll? (VIP replies)
    microsoft.public.dotnet.general
    This code seems to "work" but I get the following errors: An unhandled exception of type 'System.NullReferenceException' occurred in system.windows.forms.dll then this one: An unhandled exception of type 'System.ExecutionEngineException' occurred in system.windows.forms.dll Anyone know how to either trap these errors or prevent them from happening? Thanks! greg Public Class Form1 Inherits System.W...
    How does nesting of With ... End With affect scope of variables? (VIP replies)
    microsoft.public.dotnet.languages.vb
    I got bored today, so I decided to rewrite the code in KB article 316383 to decrease the number of object references. This resulted in a number of nested With ... End With. The original code had a Dim r As Integer, c As Integer shortly before a For Next. The original code does not use With ... End With. I ended up with, no pun intended, the code below. If the Dim statement is moved into more deepl...
    How does the PrintDocument use the Graphic returned from PrintController.OnStartPage()? (VIP replies)
    microsoft.public.dotnet.framework.drawing
    My real question is this: How does the Graphic that is returned from the PrintController.OnStartPage() call end up inside of the PrintPageEventArgs object that is passed on in the PrintDocument.PrintPage() event? I see that PrintController.OnStartPage() returns a Graphic and that Graphic somehow magically ends up inside of the PrintPageArgs but... how? The Graphics property of the Args object is r...
    How does Validation Work in WinForms? (VIP replies)
    microsoft.public.dotnet.languages.vb
    Could someone please explain to me, in words of one syllable or less, how I get the Validating event to fire for a form. I have a form with one text box, and two buttons: OK and Cancel. I have the OK button set as the AcceptButton and the Cancel button as the .... well, you've guessed it. I click OK and the form closes, without going to the Form1 Validating event. I could validate in the Click eve...
    how is used SendInput function in J#? (VIP replies)
    microsoft.public.dotnet.vjsharp
    Hi. I'm trying to send several keystrokes to a specified window with SendKeys. When I use the CTRL key designation (^) or the Alt key designation (%) in combination with characters, the action fails. This API method also fails sending function keys ({F1}... {F12}). If I send keystrokes like {ENTER},{DOWN}, {TAB}, or some normal character (abc) SendKeys works fine. I have read that SendInput is mor...
    How PtInRegion works under VB.NET (VIP replies)
    microsoft.public.dotnet.languages.vb
    Hi everyone Can someone please tell me how do I use PtInRegion? I have been trying for few days but no success. Do I have to link any extra library or .net component in order for my code to run? I'm running XP Pro and VS.Net ver. 2002 I have included below my latest code attempt Thanks, Wael '################################################################### Public Class Form1 Inherits System.Win...
    how show xml? (VIP replies)
    microsoft.public.dotnet.framework.windowsforms.controls
    Whitch control can I use to show an XML document in a windows form?
    how the richtextbox is written multithreadingly? (VIP replies)
    microsoft.public.dotnet.framework.windowsforms
    hello i put a richtextbox and a button on the winForm.when the button is clicked,it generate several threads to write to the richtextbox,the code snippet as following: private void btnSend Click(object sender, System.EventArgs e) { for(int i 0;i 3;i ) { Thread thread new Thread(new ThreadStart(rpt)); thread.Start(); } } private void rpt() { this.richTextBox1.AppendText("hello world"); } it throw n...
    How to access an array element in a member of ArrayList? (VIP replies)
    microsoft.public.dotnet.languages.csharp
    Hi everyone, I have an ArrayList whose members are classes. These classes are derived from a same base class. The base class has a floating point array and a string. How do I access each element in the floating point array in a member of the ArrayList? Any help would be greatly appreciated. Haobin
    How to access an event of a custom control? Thank you! (VIP replies)
    microsoft.public.dotnet.framework.aspnet
    Hi, I have some troubles with events in a custom control. Consider the following custom control: Imports System.Web.UI.WebControls Imports System.Web.UI Imports System.ComponentModel Imports System.Drawing ToolboxData(" {0}:CustomButton runat server /{0}:CustomButton ") Public Class CustomButton Inherits System.Web.UI.WebControls.WebControl Public Event Click As EventHandler Private Function inDes...
    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