Click here to Skip to main content
15,888,610 members
Home / Discussions / C#
   

C#

 
GeneralEnums - Creating at runtime Pin
Andrew day10-Oct-03 2:46
Andrew day10-Oct-03 2:46 
GeneralRe: Enums - Creating at runtime Pin
James Simpson10-Oct-03 6:21
James Simpson10-Oct-03 6:21 
GeneralRe: Enums - Creating at runtime Pin
Andrew day10-Oct-03 8:48
Andrew day10-Oct-03 8:48 
QuestionC# with Access DAtabases? Pin
Azel Low10-Oct-03 1:18
Azel Low10-Oct-03 1:18 
AnswerRe: C# with Access DAtabases? Pin
Mike Dimmick10-Oct-03 2:31
Mike Dimmick10-Oct-03 2:31 
GeneralWindows Hooks Pin
vikramlinux10-Oct-03 0:15
vikramlinux10-Oct-03 0:15 
GeneralRe: Windows Hooks Pin
Nick Parker10-Oct-03 2:22
protectorNick Parker10-Oct-03 2:22 
QuestionControlPaint class and Windows XP Themes? Pin
Chris Richner9-Oct-03 23:24
Chris Richner9-Oct-03 23:24 
AnswerRe: ControlPaint class and Windows XP Themes? Pin
J. Dunlap10-Oct-03 9:12
J. Dunlap10-Oct-03 9:12 
AnswerRe: ControlPaint class and Windows XP Themes? Pin
Joe Woodbury13-Oct-03 12:45
professionalJoe Woodbury13-Oct-03 12:45 
GeneralRe: ControlPaint class and Windows XP Themes? Pin
Chris Richner14-Oct-03 10:45
Chris Richner14-Oct-03 10:45 
GeneralMinimize to system tray Pin
devvvy9-Oct-03 22:05
devvvy9-Oct-03 22:05 
GeneralRe: Minimize to system tray Pin
Anonymous9-Oct-03 23:09
Anonymous9-Oct-03 23:09 
GeneralRe: Minimize to system tray Pin
devvvy10-Oct-03 7:24
devvvy10-Oct-03 7:24 
GeneralRe: Minimize to system tray Pin
Guillermo Rivero10-Oct-03 7:32
Guillermo Rivero10-Oct-03 7:32 
GeneralRe: Minimize to system tray Pin
devvvy10-Oct-03 7:34
devvvy10-Oct-03 7:34 
GeneralI got it, but Title didn't get repainted properly. Pin
devvvy10-Oct-03 7:48
devvvy10-Oct-03 7:48 
GeneralRe: I got it, but Title didn't get repainted properly. Pin
Guillermo Rivero10-Oct-03 7:53
Guillermo Rivero10-Oct-03 7:53 
GeneralRe: I got it, but Title didn't get repainted properly. Pin
devvvy10-Oct-03 8:12
devvvy10-Oct-03 8:12 
GeneralRe: Minimize to system tray Pin
JJF00711-Oct-03 4:48
JJF00711-Oct-03 4:48 
GeneralRe: Minimize to system tray Pin
devvvy11-Oct-03 4:51
devvvy11-Oct-03 4:51 
Generaladding data to event Pin
gonenb9-Oct-03 21:33
gonenb9-Oct-03 21:33 
GeneralRe: adding data to event Pin
Chris Richner9-Oct-03 23:58
Chris Richner9-Oct-03 23:58 
GeneralRe: adding data to event Pin
James Simpson10-Oct-03 6:14
James Simpson10-Oct-03 6:14 
You need to:

1) inherit from the System.EventArgs class with a new class eg:

public class MyControlEventArgs<br />
{<br />
   private string AnExampleDataMember<br />
}


Then create a delegate for that type of event

public delegate void MyControlEventHandler(object sender, MyControlEventArgs e)

And then create the event using the newly created delegate.

Create data memebers in MyControlEventArgs for all the data you need to pass into the event. Pass an instance of the new args class into the new handler.

Cheers, James

James Simpson
Web Developer
imebgo@hotmail.com
GeneralRe: adding data to event Pin
Meysam Mahfouzi10-Oct-03 18:04
Meysam Mahfouzi10-Oct-03 18:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.