473,386 Members | 1,803 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Building an VS.net-style Options dialog?

What's the best way to build a dialog where a listbox on the left side
of the dialog determines which set of controls to display on the right
side of the dialog (similar to VS.net's Options dialog)?
Nov 16 '05 #1
4 4099
The left side control is actually a Treeview control.

You can build a template form that is used to construct the right side
content of the options dialog. Let's call them pageForms.

You design a bunch of pageForms, instantiate them and for every pageForm,
create a tree node and add it to the tree view, after setting its "Tag"
property to the instance of the pageForm.

This way, you can sign up for the AfterSelect event and change the hosted
form on the right side (be sure to set the pageForm's TopLevel property to
false, and border to None.

Alternately, you can experiment using UserControl for this (the benefit is
the Tab key handling comes for free).

HTH

-vJ

"Colin Cashman" <co***********@comcast.net> wrote in message
news:yU7vc.32687$eY2.25823@attbi_s02...
What's the best way to build a dialog where a listbox on the left side of
the dialog determines which set of controls to display on the right side
of the dialog (similar to VS.net's Options dialog)?

Nov 16 '05 #2
> Alternately, you can experiment using UserControl for this (the benefit is
the Tab key handling comes for free).


Are there any downsides to building a UserControl for each "pageForm"
instead of building an actual Form?
Nov 16 '05 #3
Not that I know of. Since both Form and UserControl derive from the same
base class, you should be able to switch between them (in code) fairly
easily.

Good Luck.

-vJ

"Colin Cashman" <co***********@comcast.net> wrote in message
news:hfcvc.39351$Ly.13778@attbi_s01...
Alternately, you can experiment using UserControl for this (the benefit
is the Tab key handling comes for free).


Are there any downsides to building a UserControl for each "pageForm"
instead of building an actual Form?

Nov 16 '05 #4
> Not that I know of. Since both Form and UserControl derive from the same
base class, you should be able to switch between them (in code) fairly
easily.

Good Luck.


Thank you very much for your help! :)
Nov 16 '05 #5

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

Similar topics

3
by: DrSarang | last post by:
While building XmlSampleGenerator code from MSDN, I get missing XmlSchemaSet reference. Here is the screen dump, if needed. C:\Documents and Settings\Dr Sarang\My Documents\MSDN\XML Sample...
2
by: charliewest | last post by:
Building Multilingual Portal I have been assigned a new project to build a multilingual portal using ASP and/or ASP.NET and the expected Microsoft technologies including ADO and SQL Server 2000....
17
by: Nick | last post by:
I am doing some research into building web applications using Object Oriented techniques. I have found the excellent patterns section on the MSDN site, but other than that I cannot find any good,...
3
by: thomson | last post by:
Hi All, While Iam building my solution, the VS 2003 editor get stucked, for a few minutes and after sometimes it gets recovered, and the solution building done, While building i looked into the...
0
by: andrei | last post by:
Hi Group, Environment: Windows 2000 Professional, VS.NET 2003 The solution has 30 projects (one main asp.net application and the rest are dlls) We have this annoying behaviour with our...
8
by: Jacob Arthur | last post by:
How would I go about using a custom select string that is passed from a form to the SelectCommand parameter of SqlDataSource? I tried: SelectCommand = "<% Request.Form("hdnSelect") %>" but I...
13
by: treble54 | last post by:
I need to build PHP from source with the pdo_ibm extension and I am having an issue with it. Firstly, I am using Visual Studio .NET 2003 and I am building PHP from source through the Visual Studio...
4
by: vedrandekovic | last post by:
Hi, I have already install Microsoft visual studio .NET 2003 and MinGw, when I try to build a extension: python my_extension_setup.py build ( or install ) , I get an error: LINK : fatal...
4
by: ramshankaryadav | last post by:
Hi, I'm facing a problem while building a project through MSBuild, this project is a part of a solution which has several other projects on which it depends, but I want to build this project...
11
by: Mike Schilling | last post by:
I recently installed the .NET 3.0 framework (behind the time, I know), and am seeing an issue building it. Because 3.0 doesn't upgrade csc.exe, I'm still using the 2.0 csc to build things. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.