Interface and TabSheets

  • Thread starter Thread starter ThisBytes5
  • Start date Start date
T

ThisBytes5

I have an interface I wrote, IMyInterface. Once of the methods that
must be implemented returns a TabSheet. This is added to the settings
TabControl at run time when the implemented interface is loaded.

Currently I have something like the following:

TabSheet curSheet = new TabSheet();
create controls, place them, etc....
return curSheet


I don't want to have to play with the left/top and then run it to see
the results. How can I do this via a designer? Push in the right
direction is all I need, not sre what to look in the help for.

Thanks
Wayne
 
Hi,

Not sure if this will help you, but you could create a temp form with a
tabcontrol/tabpage, create the UI you want visually and then go to the code,
copy the code the designer generated and paste it in your class

You should leave this temp form until you deploy your system, it;s easier to
make changes this way

cheers.
 
I just thought of something else, may not be the best thing though.

I added a form to my Assembly that implements my interface, on teh form
I put a Tab Control and a TabPage. When the tab sheet is requested I
create an instance of the form and just return the TabPage. this allows
me to visually design the TabPage and hook all the events I need to the
controls on the Sheet.
 
Back
Top