C++ Event

Thread Starter

Eric007

Joined Aug 5, 2011
1,158
Hi again

I deleted the previous post...

Can anyone provide with an example, a link or whatever that shows how to raise an event in C++ Windows Form (NOT Console!) where the Event sender is a Class and the Event receiver is the Form.

Pretty simple in VB.Net and C# but C++ Aaargg (C++/CLI)...

Well maybe in my sleep I'll figure it out as I dream in codes these days...:D:p
 
Last edited:

Thread Starter

Eric007

Joined Aug 5, 2011
1,158
Looks like there's no C++ experts around here...

Anyway it's ok! Will eventually figure this out as usual! but there's no more rush! busy with something else now.
 

Thread Starter

Eric007

Joined Aug 5, 2011
1,158
That seems a little passive aggressive...
Hahahah... I had to shake you guyz a little bit so I could get a reply and it worked!:D

Have you seen the MSDN article: How to: Use Events in C++/CLI?

If that doesn't help, perhaps you need to offer some more details...
Yes, I've seen that article but did not really help because those are *Console* examples and I need *Windows Form* examples or steps as specified in the first post. Maybe I have to look at it in more depth as the principles are the same.

If you want I can write a quick VB.Net code and upload it here so you can see what I am trying to achieve in C++. Basically all I'm trying to do is accessing the elements of the Form from an external file (Class) either by raising an event from the Class or by modifying the elements of the Form directly from a Class.

Hope it's clear enough

And thanks for your reply!
 
Top