473,399 Members | 3,401 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,399 software developers and data experts.

dynamic controls in split container

I have a windows application that has a split container in the client area.
In the left panel, I added controls via the designer in VS 2005. In the right
panel, I want to dynamically create and display other forms that I created in
the project. Is this possible? Can the panel2 of a split container be the
container for a dynamically created form? How else can I create a series of
other windows (forms) and place them in the right panel of the split
container at run time? I am sure there is a way, just not familiar enough
with VS 2005 or C# to know. Thanks.
Nov 17 '05 #1
1 3341
>I have a windows application that has a split container in the client area.
In the left panel, I added controls via the designer in VS 2005. In the
right
panel, I want to dynamically create and display other forms that I created
in
the project. Is this possible?
Yes. Just create the form, panels, and other controls dynamically. You will
have to create each item and almost all of their attributes. Look at the
code that Visual Studio generates when you drop a control on a form. You
will have to mimic something like this.
Can the panel2 of a split container be the container for a dynamically
created form?
Wow. I am not quite sure what the question is here. You can create a panel
dynamically and link to it from code elsewhere. But, you have to handle
keeping track of the appropriate controls and linkage.
How else can I create a series of other windows (forms) and place them in
the right panel of the split container at run time?
Well, I can think of lots of ways to do this. The basic issue is creating
the controls, forms, panels, etc. dynamically, making sure you assign all of
the properties, and setup all of the linkages. Not necessarily hard to do,
but lots of details and usually quite a bit of code. The key will be having
good clean interfaces that are well organized, so that you can get to what
you need to when you need to.

You can use the Visaul Studio designer generated code as a basic guide on
what you need to do. It is really doing the same thing for a form. It just
writes the code for you.

Hope this helps...

Frisky

"Don Hames" <Do******@discussions.microsoft.com> wrote in message
news:76**********************************@microsof t.com...I have a windows application that has a split container in the client area.
In the left panel, I added controls via the designer in VS 2005. In the
right
panel, I want to dynamically create and display other forms that I created
in
the project. Is this possible? Can the panel2 of a split container be the
container for a dynamically created form? How else can I create a series
of
other windows (forms) and place them in the right panel of the split
container at run time? I am sure there is a way, just not familiar enough
with VS 2005 or C# to know. Thanks.

Nov 17 '05 #2

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

Similar topics

2
by: theComputer7 | last post by:
I cut down the code to make this half way understandable... I have read Data Grid girls caution about over use of dynamic controls. I truly believe what I am doing requires dynamically inserted...
2
by: Eric | last post by:
I am in need of some advice on how to do the following: Have some type of container on form that would fill the visible area on screen (assuming the browser was maximized). I would like to...
0
by: Pat Sagaser via .NET 247 | last post by:
I'm using a repeater with a dynamic template. I don't know the fields to display (or how many) until runtime. I have everything working except for linking Button events to the repeaters ItemCommand...
0
by: Pat Sagaser via .NET 247 | last post by:
I'm trying to add LinkButtons to a Repeater control using adynamic template. The docs state that you should be able tobubble the click event to the containing Repeater. There areplenty of examples in...
2
by: Tumurbaatar S. | last post by:
I dynamically add columns to DataGrid as described in MSDN articles "Top Questions about the DataGrid Web Server Control" and "Creating Web Server Control Templates Programmatically". The columns...
0
by: KT | last post by:
Hi Everybody I'm hoping that someone can help me as I'm totally stumped. I am trying to populate a datalist using the dynamic templates. I have used the example on Microsofts site, I can't get...
9
by: Adam Honek | last post by:
Hi, In VB6 and earlier if the form size was expanded by the user or maximized there had to be specific code to handle controls on the form to scale with with it. In VB.net I recall in one of...
1
by: SunshineInTheRain | last post by:
The following code is dynamic create dropdownmenu which data within pulled from database However, the code work well on IE but not on Firefox. On Firefox, the whole mouseover and mouseout function...
2
by: englishman69 | last post by:
Hello, I have been banging my head against this one for a while... Searches online have revealed many different proposals for correcting my issue but none that I can follow! My basic situation...
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: 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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
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,...

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.