473,396 Members | 1,833 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,396 software developers and data experts.

SplitContainer

Hi,
Is it possible to ada windows forms to split container?
Is there other types of containers that supports windows forms?

Thank you,
Jonas
Jun 2 '06 #1
6 2983
I think that will do it : YourForm.Parent = YourSplitContainer;
Steph.

"Jazer" <jo*************@gmail.com> wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
Hi,
Is it possible to ada windows forms to split container?
Is there other types of containers that supports windows forms?

Thank you,
Jonas

Jun 2 '06 #2
I think that will do it : YourForm.Parent = YourSplitContainer;
Steph.

"Jazer" <jo*************@gmail.com> wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
Hi,
Is it possible to ada windows forms to split container?
Is there other types of containers that supports windows forms?

Thank you,
Jonas

Jun 2 '06 #3
Eception:
Top-level control cannot be added to a control. if YourForm.Parent =
YourSplitContainer.panel1
Collection is read only. if YourForm.Parent = YourSplitContainer
"TheSteph" <Th******@NoSpam.com> wrote in message
news:uH**************@TK2MSFTNGP03.phx.gbl...
I think that will do it : YourForm.Parent = YourSplitContainer;
Steph.

"Jazer" <jo*************@gmail.com> wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
Hi,
Is it possible to ada windows forms to split container?
Is there other types of containers that supports windows forms?

Thank you,
Jonas


Jun 2 '06 #4
Jazer wrote:
Eception:
Top-level control cannot be added to a control. if YourForm.Parent =

You need to set the TopLevel property of the form to False. You may
also wish to set the FormBorderStyle property to None as well.

Also, you can use a UserControl instead of a form.

Jun 2 '06 #5
Chris Dunaway wrote:
You need to set the TopLevel property of the form to False.


I tested the following code with a splitContainer and it works:

private void button1_Click(object sender, EventArgs e)
{
Form2 f2 = new Form2();
f2.TopLevel = false;
f2.Parent = splitContainer1.Panel2;
f2.Dock = DockStyle.Fill;
f2.Show();
}

Jun 2 '06 #6
Thank you. It works.
"Chris Dunaway" <du******@gmail.com> wrote in message
news:11*********************@f6g2000cwb.googlegrou ps.com...
Chris Dunaway wrote:
You need to set the TopLevel property of the form to False.


I tested the following code with a splitContainer and it works:

private void button1_Click(object sender, EventArgs e)
{
Form2 f2 = new Form2();
f2.TopLevel = false;
f2.Parent = splitContainer1.Panel2;
f2.Dock = DockStyle.Fill;
f2.Show();
}

Jun 5 '06 #7

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

Similar topics

0
by: Brian A. Cline | last post by:
I have a SplitContainer that holds a TreeView and ListView. When using the splitter to resize them, a focus rectangle is shown during and after the resize event. Is there any way to prevent this? I...
1
by: Martin | last post by:
Hi all! I made a UserControl with a SplitContainer in it. I put some controls in the SplitContainer.Panel1. After that, I created a new UserControl which inherit from the previously created...
1
by: Ronald S. Cook | last post by:
At design time, how can I change the name of the SplitterPanels that are children within my SplitContainer control? I was able to name the SplitContainer splContainer, but I can't see how to...
7
by: newscorrespondent | last post by:
I want to save the state of a splitcontainer when an application ends. I also save the form state. The SplitContainer does not seem to have a well defined place to put intiialization and...
0
by: =?Utf-8?B?TmVpbGc=?= | last post by:
I have a SplitContainer in which I have TextBox filled on one side and a RichTextBox on the other. I just noticed when I do a text select in either textbox, the controls don't respond to...
0
by: Ronald S. Cook | last post by:
Thanks in advance for reading/responding. In my Windows forms app, I was going to have an Infragistics ListBar control docking/filling the left panel of a SplitContainer, and use the right panel...
2
by: Doc John | last post by:
We developed a Win application that basically consists of an Mdi Form and several child Forms. Now we want to change its appearance so that it has an Outlook-like appearance: it would have a panel...
0
by: KalupaPaluku | last post by:
Hello!!! I've got a problem of my form application that the KeyDown function doesn't work. It suppose to be go to the next textbox field within same panel control but it doesn't work, as i'm using...
1
by: Zoliq | last post by:
Hi, I have the following problem: have a splitcontainer with horizontal orientation. The application saves the current settings of the user interface including the splitter distance when the form...
5
by: kulabhishek | last post by:
Hello, I have developed one user control using SplitContainer. It is simply like two textboxes connected to each other with splitter in between them. Whenever I increase width of the control ...
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
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
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.