Adding a control with code at Design Time

  • Thread starter Thread starter ZorpiedoMan
  • Start date Start date
Z

ZorpiedoMan

I'm trying to recreate similar behavior that a Tabcontrol offers at
design time. Once you add your TabControl, you can right-click and add
a page which adds the TabPage control to the form. I can't seem to
figure out how to add a control via code...

Anyone done this before?


--Zorpie
 
All the designer does is generate code. So go look in the generated code
section and reproduce whatever happens there.
 
Marina -

Thanks, I think! What is the 'generated code' section? How would you make
the designer write lines of code? I cant find any documentation on this at
all..

-Zorpy
 
Back
Top