Click here to Skip to main content
15,921,530 members
Home / Discussions / C#
   

C#

 
GeneralRe: Security Access Error Pin
Nick Parker12-Jul-04 17:22
protectorNick Parker12-Jul-04 17:22 
Generalcode for adding Pin
stevemasters2212-Jul-04 13:58
stevemasters2212-Jul-04 13:58 
GeneralRe: code for adding Pin
KevinMac12-Jul-04 17:01
KevinMac12-Jul-04 17:01 
GeneralRe: code for adding Pin
stevemasters2212-Jul-04 17:27
stevemasters2212-Jul-04 17:27 
GeneralRe: code for adding Pin
Nick Parker12-Jul-04 17:50
protectorNick Parker12-Jul-04 17:50 
GeneralRe: code for adding Pin
stevemasters2212-Jul-04 20:54
stevemasters2212-Jul-04 20:54 
GeneralRe: code for adding Pin
Nick Parker13-Jul-04 7:10
protectorNick Parker13-Jul-04 7:10 
GeneralEventHandler problem Pin
Jae Sammy12-Jul-04 13:33
Jae Sammy12-Jul-04 13:33 
Forgive me but I am very new to C# and VS.NET.

I have a number of submenu items that are created at run-time. When any of these items are clicked I want it to call the same function but with some sort of argument.

I have extended the System.EventArgs class to include a private member. Do I need to declare a delegate or can I use the System.EventHandler?

When I try declaring a delegate like this:
public delegate void OpenPortEventHandler(object sender, OpenPortEventArgs e);

And then add this eventhandler to a menu item like this:
this.OpenPort.MenuItems[index].Click += new OpenPortEventHandler(this.COM_Click);

I get this error: Cannot implicitly convert type 'Serial_Communicator.Terminal.OpenPortEventHandler' to 'System.EventHandler'

Confused | :confused:
GeneralRe: EventHandler problem Pin
Nick Parker12-Jul-04 14:21
protectorNick Parker12-Jul-04 14:21 
GeneralRe: EventHandler problem Pin
Jae Sammy12-Jul-04 18:19
Jae Sammy12-Jul-04 18:19 
GeneralRe: EventHandler problem Pin
Jae Sammy13-Jul-04 5:39
Jae Sammy13-Jul-04 5:39 
GeneralRe: EventHandler problem Pin
Nick Parker13-Jul-04 7:16
protectorNick Parker13-Jul-04 7:16 
GeneralRe: EventHandler problem Pin
Jae Sammy13-Jul-04 7:40
Jae Sammy13-Jul-04 7:40 
GeneralRe: EventHandler problem Pin
Nick Parker13-Jul-04 8:29
protectorNick Parker13-Jul-04 8:29 
GeneralRe: EventHandler problem Pin
Jay Shankar12-Jul-04 20:05
Jay Shankar12-Jul-04 20:05 
GeneralProblem with System.Management Pin
Jacob Bang12-Jul-04 12:21
Jacob Bang12-Jul-04 12:21 
GeneralRe: Problem with System.Management Pin
eggie512-Jul-04 12:54
eggie512-Jul-04 12:54 
GeneralRe: Problem with System.Management Pin
Nick Parker12-Jul-04 13:07
protectorNick Parker12-Jul-04 13:07 
Generaldll in subdir Pin
elraton12-Jul-04 11:22
elraton12-Jul-04 11:22 
GeneralRe: dll in subdir Pin
Dave Kreskowiak12-Jul-04 13:36
mveDave Kreskowiak12-Jul-04 13:36 
GeneralRe: dll in subdir Pin
dbetting12-Jul-04 16:17
dbetting12-Jul-04 16:17 
GeneralRe: dll in subdir Pin
Heath Stewart13-Jul-04 6:00
protectorHeath Stewart13-Jul-04 6:00 
GeneralRe: dll in subdir Pin
Heath Stewart13-Jul-04 6:02
protectorHeath Stewart13-Jul-04 6:02 
GeneralMDI control Pin
elraton12-Jul-04 11:09
elraton12-Jul-04 11:09 
GeneralRe: MDI control Pin
Heath Stewart13-Jul-04 6:04
protectorHeath Stewart13-Jul-04 6: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.