PC Review


Reply
Thread Tools Rate Thread

show a new control outside of its parent

 
 
Milosz - [playseven.com]
Guest
Posts: n/a
 
      4th Feb 2004
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


 
Reply With Quote
 
 
 
 
AirPete
Guest
Posts: n/a
 
      4th Feb 2004
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




 
Reply With Quote
 
Milosz - [playseven.com]
Guest
Posts: n/a
 
      5th Feb 2004
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" <(E-Mail Removed)> schrieb im Newsbeitrag
news:Cg7Ub.11585$(E-Mail Removed)...
> Try dynamically adding the control to yourControl.Parent when you want it
> shown, and then removing it to hide.
>
> - Pete
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Page load of the parent page called twice when a modal dialog is opened from a button click of the user control on the parent page Samy Microsoft ASP .NET 2 15th Aug 2005 05:30 PM
is there an event that fires when a child control is added to a parent container control (ie child panel added to a parent panel)? notu Microsoft Dot NET Compact Framework 1 19th Jul 2005 08:34 PM
Pass a form value from a user control to parent control - Event Order issues ab_j@flyingrobot.com Microsoft ASP .NET 0 29th Oct 2004 07:38 PM
show a new control outside of its parent Milosz - [playseven.com] Microsoft Dot NET Compact Framework 3 6th Feb 2004 12:42 AM
show a new control outside of its parent Milosz - [playseven.com] Microsoft VB .NET 2 5th Feb 2004 08:58 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:47 PM.