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

Visual Inheritence, UserControl and SplitContainer

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 UserControl. So far, so
good... I can see the SplitContainer in the new UserControl.

However, I have a problem. I can't add a control in the Panel2 of the
SplitContainer of the UserControl which inherit from the UserControl
with the SplitContainer in it. The SplitContainer and the Panel2 seem
to be locked. How to unlock them?

Thanks for your help!

Jan 6 '07 #1
1 2821
YOu cannot reference PAnel 2 of SplitContainer of the parent control Directly
in the inherited control. Becuase the Parent Control now itself behaves like
a single entity.
I dont know if its possible to do in design view or not but you can expose
Panel2 as a property of the Parent Control to be Public and then add
controls to the exposed PAnel instance.
I hope this will work.
Best Regards,
Rizwan aka RizwanSharp

"Martin" wrote:
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 UserControl. So far, so
good... I can see the SplitContainer in the new UserControl.

However, I have a problem. I can't add a control in the Panel2 of the
SplitContainer of the UserControl which inherit from the UserControl
with the SplitContainer in it. The SplitContainer and the Panel2 seem
to be locked. How to unlock them?

Thanks for your help!

Jan 7 '07 #2

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

Similar topics

5
by: john bailo | last post by:
For a c# web application, I created a user control that includes a form in control. The idea is, on the main Page, when the user clicks Submit from the master form, that makes the user control...
1
by: jacobryce | last post by:
Hi, I have a windows form with a few splitcontainerpanels that each load with a usercontrol. I would like the user to be able to move the usercontrols around so that they can customize their...
2
by: Istvan | last post by:
Hello ....Window.Forms.... Can somebody help me with Panels and Splitters ? I want to add three Panels to one Usercontrol , between them with two movable Splitter. First Row: 2...
4
by: Martin | last post by:
Hi everyone ! For those who haven't read my previous post, I have a problem with a UserControl. When I try to display it on a form, controls seem to appear one after one. In the following...
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...
1
by: Stefan Hoffmann | last post by:
hi @all, I have a lot of similar looking pages (TabPage) with a lot of code behind. I want to extract these page contents to user controls. Because they have all the same basic layout and some...
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: 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?
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
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...
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,...
0
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...

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.