Forgive me if this is a bit garbled, I’m a bit new on Windows Forms, having spent months in ASP.NET
Basically, I am using Quartz.NET in my Windows Form application – when a job is executed, it fires another class file – the parameters it passes in do not contain a reference to the form, and I don’t think I can change this.
What I want to do is refresh a grid on the page after the job executes – and the only place that ‘tells’ me a job has been executed are in other files, rather than the forms code. I can’t figure out a way of accessing methods/objects on the form without starting a new instance of it, which I don’t want to do.
EDIT: To sum up, I just want a way to sent a message or something to the already open Main form from another class
Why not raise event from your class to winform. Thats the elegant way to do this. To do send message, you can use interop to call sendMessage which requires handle of the window