473,392 Members | 1,516 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,392 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 3339
>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: 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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...

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.