473,471 Members | 2,037 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Tools>>, Options...

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.

Nov 18 '08 #1
9 1842
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.

"Mark B" <no*****@none.comwrote in message
news:u4**************@TK2MSFTNGP02.phx.gbl...
>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.
Nov 18 '08 #2
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?)
"James Hahn" <jh***@yahoo.comwrote in message
news:ud**************@TK2MSFTNGP02.phx.gbl...
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.

"Mark B" <no*****@none.comwrote in message
news:u4**************@TK2MSFTNGP02.phx.gbl...
>>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.
Nov 18 '08 #3
(VB newsgroup removed...either this is a C# question or a VB question...it
can't be both)

On Mon, 17 Nov 2008 17:52:43 -0800, Mark B <no*****@none.comwrote:
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?)
One option would be to make them all UserControl instances instead of
using the GroupBox. Then you can design each panel individually, outside
of the main form. You don't even necessarily need to add them to the form
in the designer; instead you could just add a single Panel (for placement
purposes) to the form, and programmatically add your UserControl instances
to the Panel at run-time.

Pete
Nov 18 '08 #4
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.

"Mark B" <no*****@none.comwrote in message
news:uQ**************@TK2MSFTNGP05.phx.gbl...
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?)
Nov 18 '08 #5
I would create each as a UserControl, and add them at runtime.

On Tue, 18 Nov 2008 14:52:43 +1300, "Mark B" <no*****@none.comwrote:
>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?)
"James Hahn" <jh***@yahoo.comwrote in message
news:ud**************@TK2MSFTNGP02.phx.gbl...
>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.

"Mark B" <no*****@none.comwrote in message
news:u4**************@TK2MSFTNGP02.phx.gbl...
>>>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.
Nov 18 '08 #6
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.

"Jack Jackson" <jj******@cinnovations.netwrote in message
news:6e********************************@4ax.com...
>I would create each as a UserControl, and add them at runtime.

On Tue, 18 Nov 2008 14:52:43 +1300, "Mark B" <no*****@none.comwrote:
>>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?)
"James Hahn" <jh***@yahoo.comwrote in message
news:ud**************@TK2MSFTNGP02.phx.gbl...
>>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.

"Mark B" <no*****@none.comwrote in message
news:u4**************@TK2MSFTNGP02.phx.gbl...
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.
Nov 18 '08 #7
On Tue, 18 Nov 2008 11:57:04 -0800, Mark B <no*****@none.comwrote:
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.
You can "Add..." a new UserControl to your project. It's just like adding
a new Form, but with a different base class.
Nov 18 '08 #8
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?

"Peter Duniho" <Np*********@nnowslpianmk.comwrote in message
news:op***************@petes-computer.local...
On Tue, 18 Nov 2008 11:57:04 -0800, Mark B <no*****@none.comwrote:
>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.

You can "Add..." a new UserControl to your project. It's just like adding
a new Form, but with a different base class.
Nov 18 '08 #9
On Tue, 18 Nov 2008 12:39:29 -0800, Mark B <no*****@none.comwrote:
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?
You can look at Designer-created code for ideas about how to add controls
programmatically. The basic idea is to instantiate the object (just as
you would any class), add it to the appropriate parent, and set its
location, size, and possibly other properties.

You can do this with or without a container object, and you can do this
programmatically or not. The two choices are independent of each other,
but having a container object (e.g. Panel) might make things a little
easier if you're adding them programmatically, because that would allow
you to use the Designer to place the container object, and then just
programmatically fill the container object with the appropriate
UserControl at run-time (e.g. Dock as "Fill").

Pete
Nov 18 '08 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Bil Click | last post by:
I am coding classic ASP pages in Visual Studio .Net 2003. I have a file called counties_option.asp that just has a list of options: <OPTION VALUE="030">ANSON</OPTION> <OPTION...
2
by: deko | last post by:
Is it possible to set options in the Tools >> Options dialog programmatically? For example, I want to create an Access 2002 MDE that will set, on startup, various options in the View, General, and...
4
by: Stuart Clark | last post by:
Hi, I am having quite a major problem with an access database. Basically, under "Tools => Startup", there are options to disable the Menu's (e.g. - file, tools etc), the toolbars, the main...
4
by: Miguel Dias Moura | last post by:
Hello, I need to display various links side by side and I have the code: <div> <a href="...">Link1</a><a href="...">Link2</a> ... </div> I get the code: Link1Link2
4
by: x taol | last post by:
i want to uncheck windows in taskbar using vba. *** Sent via Developersdex http://www.developersdex.com ***
1
by: bkasmai | last post by:
An access 2000 database is used by a number of users on a windows xp professional machine. Users logon to the machine using their own individual windows login name and password. The database is...
0
by: mttc | last post by:
I'm about chage the font for editor. I open: tools->option->enviroment- but I see only 6 item on combo: "Show setting for" where all the items?
6
by: Steve | last post by:
I have a div with two - three paragrahs in it. Each paragraph has its own inline style tag with its own font size setting. When I set the last paragraph's font size the font sizes for ALL of...
4
by: Mark B | last post by:
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.