PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework
show a new control outside of its parent
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework
show a new control outside of its parent
![]() |
show a new control outside of its parent |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#3 |
|
Guest
Posts: n/a
|
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:Cg7Ub.11585$F23.10486@newsread2.news.pas.earthlink.net... > Try dynamically adding the control to yourControl.Parent when you want it > shown, and then removing it to hide. > > - Pete > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

