473,473 Members | 1,569 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

show a new control outside of its parent

I am programming a control for the CF, and i need to make something like the
ComboBox enroll behavior.
If you click on it. it should enroll another item, for example a picturebox.

To enroll it down, it could be possible to define the picture box inside the
control, and on cliking the control to change its clientsize to make the
picturebox visible. But if the control shall enroll it to the top, because
its on the bottom of the form, I would have to change its location and the
size.
the original combobox shows the new item, without changing its size and
location.

So my question is how to show a new control outside of its parent ?

somebody knows help ?

THX

Milosz

www.playseven.com
Nov 20 '05 #1
2 1250
Try dynamically adding the control to yourControl.Parent when you want it
shown, and then removing it to hide.

- Pete

Milosz - [playseven.com] wrote:
I am programming a control for the CF, and i need to make something
like the ComboBox enroll behavior.
If you click on it. it should enroll another item, for example a
picturebox.

To enroll it down, it could be possible to define the picture box
inside the control, and on cliking the control to change its
clientsize to make the picturebox visible. But if the control shall
enroll it to the top, because its on the bottom of the form, I would
have to change its location and the size.
the original combobox shows the new item, without changing its size
and location.

So my question is how to show a new control outside of its parent ?

somebody knows help ?

THX

Milosz

www.playseven.com


Nov 20 '05 #2
Hi Pete,

i don't know how should this help ?
Where is the difference if I create the CTRL dynamically.
The problem is, if i define it and set the location of the new CTRL to -200
it will be not shown, because the parent control draws only the client area
0.
Somebody knows how the ComboBox does it ?

THX

Milosz
www.playseven.com
"AirPete" <x@x.x> schrieb im Newsbeitrag
news:Cg*******************@newsread2.news.pas.eart hlink.net... Try dynamically adding the control to yourControl.Parent when you want it
shown, and then removing it to hide.

- Pete

Nov 20 '05 #3

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

Similar topics

5
by: Steve | last post by:
Visual Studio 2003 C# Windows: I have a tree view control as my main menu control down the left side of my application. This has 2 Parent Nodes on it (Jobs and Employees). beneath these 2 main...
4
by: news.online.no | last post by:
In a query, I need too be able to show if a parent record has a child record. Using the query in a combo box too select record in a form. Thanks :)
2
by: Brian | last post by:
NOTE ALSO POSTED IN microsoft.public.dotnet.framework.aspnet.buildingcontrols I have solved most of my Server Control Collection property issues. I wrote an HTML page that describes all of the...
3
by: sorCrer | last post by:
Hi All, Posted after extensive searching! I have a nested repeater control as follows: (Simplified ;-)) <table> <asp:repeater id=parent onItemDataBound=createChild> <tr><td>Level...
2
by: David Gacek | last post by:
I'm just wondering how can i get the properties of the container that the control resides on in vb6 is was quite simple. I want to get the forms width and heigth thanks
3
by: tshad | last post by:
I am trying to put together a user control (.ascx). Can you access an outside control from it? My control: login2.ascx ****************************************************************...
2
by: jamesd | last post by:
I have a user control that has some simple textboxes. The user control is placed into a regular webform with a submit button on it. When the submit button is clicked, the form is posted to the...
5
by: rn5a | last post by:
Consider the following user control which resides in Address.ascx: <script runat="server"> Public Property Address() As String Get Address = txtAddress.Text End Get Set(ByVal value As String)...
0
by: MasterOfTheDark | last post by:
This one's a hairy one to explain. What I've got is a class called "VistaGroupBox" that I put some nice-looking Vista-style gradients in the background and made to look like the ribbon categories...
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
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...
1
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...
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,...
1
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.