Components tied to Forms

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jeffy210

    #1

    Components tied to Forms

    I don't know if what i'm asking for is even possible, but I'll give it a shot.

    Is there a reason why components are tied to forms rather than tied to the
    project. I can see something like a context menu being form specific, but why
    are things like Timers and SerialPorts tied to a form?

    I have a program that has the main form, but then has a main module which
    does most of the grunt work. I'd like to keep the form to just UI
    interactions and have the main module do everything else, but to fire off the
    timer or work with the serial port i'm having to do Form1.Timer... or
    Form1.SerialPor t...

    Is it possible to create a generic "component" container, or do all
    components have to be tied to a form?
Working...