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 to refer to a component in an UserControl ? (VIP replies)
    microsoft.public.dotnet.framework.aspnet
    I have created an UserControl (MywindowFooter) which contains a label component : asp:label id "lblStatusBar" runat "server" /asp:label How can I refer to this label, from the code behind file, to set its Text property ? I already figured out that I probably should 'get' the label component by doing something like : dim statusBar as System.Web.UI.Control MywindowFooter.FindControl("lblStatusBar") ...
    How to resize an image from SQL IMAGE field (VIP replies)
    microsoft.public.dotnet.framework.aspnet
    Dear Friends, Does anybody knows how to use the below code with an image stored at SQL Image field? Private Sub Page Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ScaleStatic("/website/images/default 03.jpg", 50) End Sub Public Sub ScaleStatic(ByVal FromFile, ByVal intSize) 'Dim inputFile As New FileInfo(Server.MapPath(FromFile)) ' Main bitmap/graphics "canva...
    How to retrieve multiple records from a access database? (VIP replies)
    microsoft.public.dotnet.languages.vb
    Hello everyone, I am making a program at the moment, and need HELP!!!. I'll start with the database, my field's r: fldSku which a 6 digit number, no more no less (145682) fldDescription which is the description of a clothing fldLabel Which is the band name of the clothing and fldPrice. k, what i need to do is, when i search for a SKU (which might have duplicates) in the db, i want it to return it ...
    How to run this when the button is pressed? (VIP replies)
    microsoft.public.dotnet.framework.aspnet
    Hello, I am working in ASP.net / VB with Access Database. i have a Multipage in my web site with the Submit button as the last button. When the Submit button is pressed i want the form values to be added to a database and sent by email. 1. I have the code which submits the form values to the database. (See at end) 2. I have the script which sends the email using AspNetMail (See at end) 3. I have t...
    how to see if data changed in DataGrid (VIP replies)
    microsoft.public.dotnet.framework.adonet
    Hi, How can I see if the Data is changed by the user in my DataGrid so I can ask him to save the changes or not? Thanks, Pieter
    How to send a char to TextBox (VIP replies)
    microsoft.public.dotnet.languages.vb
    Hi, How can I send a char to Textbox so that KeyPress event is called? I have a button and with a click I would like to send a char, e.g. "C", to the Textbox. But Textbox1 KeyPress is not catching the event (I can step thru KeyPress ok but nothing goes to TextBox). KeyPress itself works fine with key stroke via keyboard. Private Sub Button2 Click(ByVal sender As System.Object, ByVal e As System.Ev...
    How to send parameter to user control postback (VIP replies)
    microsoft.public.dotnet.framework.aspnet
    I have a user control being used instead of a frame page. when the user clicks on a menu item I need to send the ID (integer value) of that menu as a parameter in the postback of the user control which will be used to query sql server to repopulate the datagrid in the user control. I also wrapped the user control in a panel element so I could position it on the page. I'm clueless on how to get sta...
    How to set Cache values in global.asax ( Begin_Application) ? (VIP replies)
    ASPFriends.com 'aspngstart' list
    Hi all, I want to run a method that collects some data that is retrievable from all pages ( and put it in the Cache). This method I would like to run in the Application Start in global.asax Something like : Cache("gdsLabels") myGlobalDS It s OK when I try it from say a code behind page , but it seems that from global.asax I need a reference or something , which I cant seem to find. Anyone know how...
    How to set cursortype for datagrid control (VIP replies)
    microsoft.public.dotnet.framework.windowsforms.controls
    I have a datagrid in a windows form. I would like to set the cursor, but it does not look like "cursor" is a datagrid property (as is the case for textboxes). I get no error messages from the following codeline, but it does not change the shape of the cursor as expected: Me.DataGridWorkflow.Cursor Cursors.No DatagridWorkflow is the name of my datagrid. Its source is a dataview. The dataview gets i...
    how to set datagrid column width ? (VIP replies)
    microsoft.public.dotnet.framework.aspnet.datagridcontrol
    why this doesn't work ? Dim c1 As New System.Web.UI.WebControls.BoundColumn c1.HeaderText "ID" c1.DataField "customerid" c1.ItemStyle.Width System.Web.UI.WebControls.Unit.Pixel(300) thanks,
    how to set Link tag for style sheet in base page (VIP replies)
    microsoft.public.dotnet.framework.aspnet
    I've build a basepage that will be used for all the pages in my website. I created a propery in the base page called Title like this: Private baseTitle As HtmlGenericControl Protected Property Title() As String Get Return baseTitle.InnerText End Get Set(ByVal Value As String) baseTitle.InnerText Value End Set End Property and it sets it's value in an htmlcontrol like this: ' Page Title baseTitle N...
    How to set width and height of image using HyperLink Control? (VIP replies)
    microsoft.public.dotnet.framework.aspnet.webcontrols
    Dear friends, I'm dynamically creating a Hyperlink with spacer.gif as ImageURL that is an 1px transparent image only to determine link position, but as I create this link dynamically I could not set image width. This problem makes my link clickable only on its borders. When viewing HTML source I could see that spacer.gif has no width and height, so HTML shows only 1px x 1 px image. What can I do t...
    How to show a CheckBox in a DataGrid when using SQL Server? (VIP replies)
    microsoft.public.dotnet.languages.vb.controls
    How to show a CheckBox in a DataGrid when using SQL Server? I use SQL server and for boolean values I use a tinyint with possible values of 0 and 1. 0 being False, and 1 being True. If the value is 1 then I want a checked checkbox to show up in the DataGrid. Likewise if the value is 0 then I want the checkbox to be empty. This is easy with Access and a boolean datatype, but how do you do it with S...
    How To Show a PictureBox in my Own Class (VIP replies)
    microsoft.public.dotnet.framework.compactframework
    Hi, my Problem is to Show a Form Without a BorderStyle. But this is not possible in Compact Framework. So i got a idea: A Class that Shows a Picturebox, but it dont work this is my Code: Public Class clsBar Private WithEvents tTimer As New System.Windows.Forms.Timer Private bBitMap As New Bitmap(100, 100) Private gGraphics As Graphics gGraphics.FromImage(bBitMap) Private bGreenBrush As SolidBrush ...
    How to show the progress of the file being downloaded? (VIP replies)
    microsoft.public.dotnet.languages.vb
    My application should check for new updates when user chooses this option in the menu. It should go online and check the flag and compare with current flag in the programs directory. If version is newer it should start download of the update file. This wouldn't be a problem, but how can I show the progress of the upgrade file which is being downloaded? I need to show this in percents. File might h...
    How to sign out using forms authentication? (VIP replies)
    microsoft.public.dotnet.framework.aspnet
    I want to have a logout button on my page and tried putting FormsAuthentication.SignOut() behind it but it doesn't work. Anyone have any ideas?? Keith
    how to slove click tow times to close a form problems in VB.net (VIP replies)
    microsoft.public.dotnet.languages.vb.controls
    Hi There I have a form one to open other form two in VB.net, when I close the form two, it ask me to click two times to close it, some one know why and how to solve this problem? Thanks Tony
    How to solve this :Delegates in CF ? (VIP replies)
    microsoft.public.dotnet.framework.compactframework
    Hi I created a TCPIP class that implements async callbacks , works good in full framework, but in CF the delegates seem to block my app. The callbacks (run under a different thread ID since the are async) are blocking my app. the toolbar is onder control of the main form thread ,so i can not change properties of it from another thread. How to sove this ? Strange ,if i create the same application o...
    How to speed up the paging? (VIP replies)
    microsoft.public.dotnet.framework.aspnet.datagridcontrol
    Hi, I use a DataGrid to display 5 text fields information from SQL 2000 database. The total amount of records to be displayed is around 800. I have sort and paging function on the DataGrid. the pagesize is 20. The data retrieving process takes 2sec on database server, but more than 1 minute on web page. The application is written in C#. Would you please give me some tips to improve the loading and...
    How to stop a form from being automatically activated on the creation (VIP replies)
    microsoft.public.dotnet.framework.windowsforms
    Hi, There is a main form. On some user request it creates another modeless form. By the default behavior that new form becomes active. I do not want that. So, I set focus back to main form, executing mainForm.Activate. But it makes forms to flicker a little and it looks bad. Are there a way around? To stop a new form from being automatically activated on the creating. Thank you in advance, Mikhail...
    how to stop forms appearing in alt + tab task list (VIP replies)
    microsoft.public.dotnet.framework.windowsforms
    Hello, I've got a form which is a splash screen and set all the properties to stop if from appearing in the taskbar, have no borders, place it in the center of the screen and all that. However it still appears as a white icon when it is displayed and you alt tab (not quite certain what that screen is called) is there anyway to stop it from appearing at all excep just on the screen in front of my a...
    how to suppress an event? (VIP replies)
    microsoft.public.dotnet.languages.csharp
    Is there any way to suppress an event method? i got Enter & leave Events on two groupBoxs, they r " private void groupBox1 Enter(object sender, System.EventArgs e)" and private void groupBox1 Leave(object sender, System.EventArgs e) event methods, from msdn info the order of execution for them will be 1 Enter 2 GotFocus 3 lost focus 4 Leave 5 Validating i used only Enter and Leave events, after en...
    How to transfer parameters between pages (VIP replies)
    ASPFriends.com 'aspngfreeforall' list
    My project have more then one pages. I need transfer some parameters between pages. Such as page1 send some parameters to page2, and when page2 return to page1, page2 also send some parameters back to page1 and those parameter is changed by page2 or is not change. I knew some way to handle this problem such as putting parameter into session, cache and cookie, and using parameters in Url string. I ...
    How to trouble shoot a "Application Exception"? (VIP replies)
    microsoft.public.dotnet.general
    I have an application I created called "JpegViewer.exe". It simply loads a Jpeg file and displays in on the screen. It works great, in my lab. When I am using it at a customer site, things change. Occasionally, it blows up with an Application Exception. It seems to only die at the customer site This can only be duplicated on the machines at a client site. I cannot reproduce this "Bug" in my lab. I...
    How to turn off data binding? (VIP replies)
    microsoft.public.dotnet.framework.adonet
    Hi, my app has a ComboBox bound to a DataTable. When doing removing all rows by suing this code: public static void RemoveAllRows( DataSet ds, string tabName ) { try { DataTable tab ds.Tables[ tabName ]; // does not help: tab.BeginInit(); // does not help: tab.BeginLoadData(); DataRowCollection rc tab.Rows; rc.Clear(); // does not help: tab.EndLoadData(); // does not help: tab.EndInit(); } catch( ...
    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