471,348 Members | 1,424 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,348 software developers and data experts.

Interface and TabSheets

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

Nov 28 '05 #1
3 1548
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.

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"ThisBytes5" <Th********@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
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

Nov 28 '05 #2
That's what I've been doing so far, just a pain.

Thanks
Wayne

Nov 30 '05 #3
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.

Nov 30 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Roy Pereira | last post: by
4 posts views Thread by Doug | last post: by
3 posts views Thread by zlst | last post: by
20 posts views Thread by Ole Hanson | last post: by
reply views Thread by YellowFin Announcements | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.