Tools>>, Options...

M

Mark B

I want to create a Tools>>, Options form for a C# Outlook 2007 Add-in.

I have dragged a tree-view control into the left side of the form.

What control should I drag into the right side so that when a user selects a
branch in the tree view, the 'subform' with all relevant fields, pictures
etc changes on the right side of the form?

I'll also need the same for VB.Net.
 
J

James Hahn

Groupbox is probably the most convenient, although other containers would be
suitable. Create them as 'subforms' and manipulate the properties (eg,
visible) to show the appropriate one for each user choice in the treeview.
 
M

Mark B

Say I have 50 of them, in design mode then do I have them all on top of each
other (making the screen look like a bird's nest and hard to edit?)
 
J

James Hahn

You either need to carefully place them all at the exact position, making it
very hard to edit (as you comment) or lay them out in a suitable cascading
format and set the selected object's location property just before making it
visible. Even so, with 50 or so that's going to be quite an editing task.
It may be preferablet to substitute programming effort for design work and
and set up the design in some form of database and create the layout on the
fly.
 
M

Mark B

Thanks. I am new to C# and have never used a user control before. Can they
be designed via the GUI? I didn't see them listed in the Toolbox.
 
M

Mark B

Thanks very much. Done that.

Now to get the user-control to appear on the main form, do I have to have
some sort of container object on the main form or can I only do it
programmatically? If the later, what would the code be?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top