M
Mike Ruane-Torr
I want to write an application that has no form, but uses toolbox
components, i.e. notify icon, context menu, timer. I notice that I can
drop these items onto a component class, but is that how I should be
approaching this problem? I have ended up tying myself in knots trying to
get Application.Run() to accept a context class, and raising the
ThreadExit event to stop everything - it's a bit more complicated than I
expected.
Am I being foolish? Should I just use a dummy form and never actually
display it? I feel uncomfortable doing this, because I don't NEED a
form. I thought .Net was more logical than that. Surely it has a way of
using controls without having a form?
components, i.e. notify icon, context menu, timer. I notice that I can
drop these items onto a component class, but is that how I should be
approaching this problem? I have ended up tying myself in knots trying to
get Application.Run() to accept a context class, and raising the
ThreadExit event to stop everything - it's a bit more complicated than I
expected.
Am I being foolish? Should I just use a dummy form and never actually
display it? I feel uncomfortable doing this, because I don't NEED a
form. I thought .Net was more logical than that. Surely it has a way of
using controls without having a form?