Custom Control (windows Control Library) or Class Library

  • Thread starter Thread starter tiger79
  • Start date Start date
T

tiger79

Hi everyone,
I'd like to achieve the next goal :
I want a Form which can be called from many different forms inside my
program. This form has to include a treeview (which has to be populated
according to the calling form), 3 butoons and a textfield.
Now I was wondering what the best solution would be ? Do I have to create a
custom control (I guess that would be starting out a new project with
Windows Control Library). Cause all examples I've seen so far only showed
how to customise ONE control, in my case I want to show all those controls
together (I guess that should be possible by choosing a form as the
container, right?).
Or should I make a Class Library so that I make an instance of it, pass the
data it needs and then it will appear onscreen ?
Please help me out !!!
 
WHy not just define the form the way you want and call it from all the other
forms? Or does it need to act like a control and be actually contained on
several forms?
 
eehhrrrmm...
nope, theoretically it doesn't have to be contained on differnet forms but
just on one... I guess I can personalise the constructor of the form so that
it accepts the data I have to sent to it while instantiating so that it can
uses this data... Maybe I was just thinking too difficult ;)
 
Back
Top