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
    Composite control not raising events (VIP replies)
    microsoft.public.dotnet.framework.aspnet.buildingcontrols
    I am trying to create a control that duplicates the Access Combo Box OnNotInList behavior. The code below does not fire the DropDownListPersistedData SelectedIndexChanged event Any suggestions? Imports System.ComponentModel Imports System.Web.UI Imports System.Web.UI.WebControls Public Class ComboBox Inherits System.Web.UI.WebControls.ListControl Implements INamingContainer Protected TextBoxNotInL...
    Composite control with dynamic controls depending on a property value (VIP replies)
    microsoft.public.dotnet.framework.aspnet.buildingcontrols
    Hi, all. I am really stuck here. I've written a few composite controls before and fully understand the "typical" scenarios. However, this one is far different. I understand that CreateChildControls must create the controls in exactly the same way as it did before a post back in order for everything to "link" back up properly. However, I have a composite control that creates a single label and a si...
    Composite controls in CF/ VB.Net how? (VIP replies)
    microsoft.public.dotnet.framework.compactframework
    Hi: I could not find it in the newsgroup's archives, I am looking for one or more articles on how to assemble a composite control made of more then one CF control, in my case a composite of a label and a text edit box. I do not need to have design time support, as i can probably add one of these controls to a form later from VB.NET form code right? I would prefer VB.NET, but can translate C# if ne...
    conditional processing inside a datagrid? (VIP replies)
    microsoft.public.dotnet.framework.adonet
    Hi There, I am trying to make the slow transition from asp to asp .net, I want to display datagrid items based on form name where form name is the only value that stays the same. How can I evaluate the text in (DataBinder.Eval(Container.DataItem, "formname")) and then display multiple rows based on the value? Could someone help me out with the syntax please? Sean tr td colspan 2 asp:Label Runat "s...
    config.web and strconn (VIP replies)
    microsoft.public.dotnet.framework.aspnet
    I saw an example showing how to set the connection string in the Config.Web file. Could someone explain me how to do this ? thanx ...
    Configuration File (VIP replies)
    microsoft.public.dotnet.framework.aspnet
    I have an ASP.NET application that I am trying to run on my local server. I have administrator privilege. It contains: private void btnThomButton Click(object sender, System.EventArgs e) { EventLog eventLog new EventLog("Application" ); eventLog.Source "Application" ; eventLog.WriteEntry( "Message" ); } When this is executed the WriteEntry causes an exception ... Description: The application attem...
    Confused about Drag/Drop (VIP replies)
    microsoft.public.dotnet.languages.csharp
    There seems to be two ways to put things on the clipboard ( I don't mean different formats): SetClipboardData and OleSetClipboard If I want to get data off the clipboard do I care how it was put there? What about Drag/Drop; is there more than one way for the source to make data available Is it always OLE? What's the relationship between WM DROPFILES and HDROP. I think HDROP is the OLE way. But can...
    Confussed about parameters for Events (VIP replies)
    microsoft.public.dotnet.languages.csharp
    In one of my books called "Mastering C#" there is a statement that reads "All event handler delegates must return void and accept two parameters. The first parameter is an object, and it represents the object that raises the event... The second is a parameter that is an object of a class derived from the System.EventArgs class". Now I know that this can not be true in general because I have create...
    Connect to Desktop SQL Server 2000 from Pocket PC (VIP replies)
    microsoft.public.dotnet.framework.compactframework
    Hi, I need to connect from a program in the Pocket PC to SQL Server in my desktop. How i can do than in VB.NET ?. (I need an information in one table in SQL Server 2000). Thanks, Leonardo Castillo.
    Connecting to mysql (VIP replies)
    microsoft.public.dotnet.languages.vb
    Hello, I'm trying to connect to a mysql database. I have already taken these steps: 1) downloaded and installed odbc net.msi 2) downloaded and installed mdac typ.exe (mdac 2.7 or something) 3) written this code: Imports System.Data.Odbc.OdbcConnection Public Class Test Inherits System.Windows.Forms.Form windows form designer generated code Private Sub Test Load(ByVal sender As System.Object, ByVal...
    Connecting to SQLServer 2000 from ASP.NET (VIP replies)
    microsoft.public.dotnet.framework.aspnet
    I have an ASP.NET application that connects to a SQL Server database. The SQL Server resides on a seperate development server from the IIS5.1 on Windows XP SP2 on development PCs which host the ASP.NET application. I would like to use Integrated Windows Authentication like Integrated Security SSPI;Persist Security Info False;Initial Catalog DBName;Data Source DevServer1 My problems! 1) ASP.NET wou...
    Connecting trackbars (VIP replies)
    microsoft.public.dotnet.languages.vb.controls
    Anybody have a quick solution to connect trackbars? Dragging one updates others? Oeyvind http://home.online.no/~oeyvtoft/ToftWeb/ http://home.online.no/~oeyvtoft/ToftWeb/html/frameset/3d.htm http://home.online.no/~oeyvtoft/ToftWeb/html/frameset/flash.htm
    Connecting webcontrols and components (VIP replies)
    microsoft.public.dotnet.framework.aspnet.buildingcontrols
    I have been struggling with this for a long time now, and am beginning to think that what I'm attempting isn't the correct approach. The short version is that I want to be able to add a webcontrol to a page, and have that webcontrol have properties that reference other webcontrols and/or components. These properties that reference other webcontrols or components should be of the type of the other ...
    Console Application and Windows Form in VB .Net-Please help! (VIP replies)
    microsoft.public.dotnet.languages.vb
    Hi, All I am trying to design a user interface which provides both menus and toolbars for some users to click on whatever they want to do, at the same time, I would like to have a console window available in the same form for users to enter commands and display outputs if some prefer to use character based user interface. I would like to implement the user interface in vb .net. Now I have menus an...
    Constraints (VIP replies)
    ASPFriends.com 'ngfx-crystal' list
    hello, I'm trying to display some data in a CrystalReport thru a DataSet.xsd in VS.NET Everything went fine for one table, but when trying with multiple tables and JOINs, I get the following error: Failed to enable constraints. One or more rows contain values violating non null, unique, or foreign key constraints. Can somebody help me with this problem. I'm trying to figure it out for two days now...
    Consuming Controls from a Webservice (VIP replies)
    microsoft.public.dotnet.framework.aspnet.webservices
    (Type your message here) From: caesar hernandez Is it possible to return an Array of Controls that have defined events from a webservice to a consumer? consumer: controls Webservice.CreateGUI() webservice: using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Diagnostics; using System.Web; using System.Web.Services; using System.Windows.Forms; namespa...
    ContentType problem - downloading instead of displaying (VIP replies)
    microsoft.public.dotnet.framework.aspnet
    I have an aspx page. If I set the Response.ContentType "application/voicexml xml" then when I load browse to the page it downloads the file and opens .Net Studio to allow me to edit it. It should just display in my browser (as it does if I don't set the ContentType). I have appropriate MIME types set up in IIS (.vxml application/voicexml xml). What am I doing wrong here? And more important, how ca...
    Context Menu: specifying the sub to handle the menu selection (VIP replies)
    microsoft.public.dotnet.languages.vb
    When I am typing the argument(s) of the Add method of MenuItems, one of the options (#2 of 5) provides for 'OnClick as System.EventHandler' (as the second arguement), which I hope is to provide a reference to the 'Handler' sub: mnuTopics.MenuItems.Add("DoSomething", DoSomething Handler) What is the corresponding sub syntax? The following is not the correct syntax. Private Sub mnuTopics DoSomething...
    Context menus and treeviews, suggestions for a NODE sensitive context menu (VIP replies)
    microsoft.public.dotnet.framework.windowsforms
    Easy part is creating a context menu for a specific node (one of several examples follows) Private Sub treeview MouseUp(byval sender as object, byval e as MouseEventArgs) handles TreeView1.MouseUp if e.Button MouseButtons.Right then Dim node as TreeNode TreeView1.GetNodeAt(e.X,e.Y) if not node is nothing then if typeof node is TYPE1 then ShowContextMenu(BuildContextMenu(DirectCast(node.Tag,TYPE1))...
    context? (VIP replies)
    ASPFriends.com 'aspngcontrolscs' list
    My files are organized as such: Components directory Controls Directory Web Directory All my web files are empty, I simply drag and drop my controls in them. I attempted to code write into the web file this time in the code behind, I am recieving this error when compiling (my code behind is creating classes from my Components.) 'ABC.User' denotes a 'class' which is not valid in the given context W...
    ContextMenu (VIP replies)
    microsoft.public.dotnet.languages.vb
    hey guys, i want to pop up a msg when i click on one of the items in the contextMenu, problem is i click on it and it does nothing ??? here is the code: Private Sub MenuItem1 Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem1.Click msgbox "Hello World !" End Sub what is the problem?
    ContextMenu is null in ComboBox MouseUp handler (VIP replies)
    microsoft.public.dotnet.framework.windowsforms.controls
    I am writing a Windows Forms application using VS.NET in C#. I want to provide a specific ContextMenu that appears when the user right clicks on a derived ComboBox control (MyComboBox). I create the context menu in the control's constructor. The application hits a null reference exception in my MouseUp handler. When I examine the handler code during runtime in the debugger, the 'this' value appear...
    ContextMenu.Show() does nothing (VIP replies)
    microsoft.public.dotnet.framework.windowsforms.controls
    I have an custom owner drawn control that when clicked on needs to pop up a list of options. I want to use a popup menu (ContextMenu) for this. My code runs fine but no menu ever appears. I commented out my original OnClick routine and put the following in to simplify the test and still nothing happend. Placing a break point confirms, the code is runinng and no exceptions are being thrown. Just no...
    Control events run twice (VIP replies)
    microsoft.public.dotnet.languages.vb.controls
    I am using the KeyUp, KeyPress, and Validating events of a TexBox in VB. Each of these events is called twice every time the event occurs. Is this normal or am I doing something wrong. If it is normal then can I always rely on it being called twice or are there circumstances where they are not called twice. Thanks Fred
    Control location problem on a form ( C# ) (VIP replies)
    microsoft.public.dotnet.languages.csharp
    Hi! I posted this question in browser ctl group as well but got no results. I have a form with embedded WebBrowser. Upon clicking on a link in the embedded webbrowser that calls JavaScript's window.open() call where I pass different width, height, top, left and other parameters, I open a new form of the same type as the original. I noticed that the webbrowser in the newly opened form is shifted to...
    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