Raising Events in Modules?

G

Guest

Hello,

I have a main Windows Form and a Module class in a Solution. I'd like to
know if a Timer.Tick event for example get raised in the Module when I'm
running the Windows Form?

The same thing can be asked when I'm using the SerialPort control in the
module; I want to know if the SerialPort.DataReceived event can get raised
when serial data is received?

If that's possible could someone place some code on how to do so?

Thanks.
 
M

Michel Posseth [MCP]

A module is internally nothing else as a class with all methods declared as
shared

you can also declare shared events however catching the event in a form
requires you to set a handler for it

i hope i am clear enough with my explanation :)

regards

Michel Posseth [MCP]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top