473,386 Members | 1,702 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.

Name of Active User Control Docked in Panel

April 20, 2006

Hi All

Is there a way I can tell the name of the user control docked in a Split
Container Panel. I am using VB.Net 2005.

e.g. if I dock a user control using the code below:

UserControl1.Parent=Form1.SplitContainer1.Panel2
UserControl1.Dock=DockStyle.Fill
UserControl1.Show()

Is there a way I can find out the name of the user control docked in Split
Container Panel2.
(something that returns "UserControl1")

Thanks
Mike TI

Apr 20 '06 #1
1 2579
"Mike TI" <su*******@hotmail.com> schrieb:
Is there a way I can tell the name of the user control docked in a Split
Container Panel. I am using VB.Net 2005.

e.g. if I dock a user control using the code below:

UserControl1.Parent=Form1.SplitContainer1.Panel2
UserControl1.Dock=DockStyle.Fill
UserControl1.Show()

Is there a way I can find out the name of the user control docked in Split
Container Panel2.
(something that returns "UserControl1")


'MsgBox(Me.SplitContainer1.Panel1.Controls(0).Name )'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Apr 20 '06 #2

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

Similar topics

8
by: Yasutaka Ito | last post by:
Hi, Is there a way to find to which control the current control is docked against? For example, let's say I have panel1 and panel2 docked to left within a form. The panel1 is the first one on...
2
by: Richard Muller | last post by:
Hi All, I'm running MSDE 2002, ver. 7.0.9466 with Net Framework 1.0, ver. 1.0.3705 over Win2000ProSP4. I created a new Visual C# project using the Windows Application template. I'm trying...
4
by: Ron Vecchi | last post by:
Could someone point me in the right direction for creating a control similar to the VS solution explorer where it will auto hide and open when needed. Thanks -- Ron Vecchi
3
by: Dennis | last post by:
I have been trying all evening to add two panels to a form with a horizontal splitter in middle. How can I do this. I have one panel docked to top and one docked to bottom. I have tried all of...
2
by: illegal.prime | last post by:
I'm surprised that I'm only know discovering this problem, but I suppose I've never needed to change the dimension that is opposite to the docking of the control. That is, when I've docked a...
1
by: celoftis | last post by:
BACKGROUND: I have some PPT slides that have been converted to HTM (ensuring that the show slide animations while browsing checkbox is checked). The original HTM slides have custom animations to...
0
by: fblake | last post by:
FOR IMMEDIATE RELEASE Active Up expands ever popular product line Active Web.Controls 2007 V1, Active Cells V2 and Active AutoSuggest V1.0 Belgium (February 2007): Active Up today released...
7
by: Zytan | last post by:
I just wanted a little practice with the WebBrowser control, so I did the VB guided tour example here in C#: http://msdn2.microsoft.com/en-us/library/a08t4ke7(VS.80).aspx The tutorial asks to put...
3
by: =?Utf-8?B?UmFodnlu?= | last post by:
Hi All; I am building a Windows form with multiple panels. I have a large panel as the base on the form, with a tab control on top of it, docked to fill, and multiple panels on the tab control....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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...
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
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
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
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...

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.