Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Resize user control at design time

0 views
Skip to first unread message

Billy_270

unread,
Dec 8, 2002, 8:27:43 AM12/8/02
to
Hi!
I have implementented a user control in by extending the TreeView control to
include some other functions. The problem is that when I add my user control
to a form and try to resize it, only the borders of the user control are
resized and the TreeView stays at the exact size when I placed it in the
user control. How can I resize the TreeView user control at design time?


Goran Genter

unread,
Dec 8, 2002, 9:55:13 AM12/8/02
to

Try to add panel to your control and dock it to fill the control, place all
other controls on that panel, and in resize event of that panel do whatever
you need to do to strech other controls!

That should work fine!


Billy_270

unread,
Dec 8, 2002, 10:03:30 AM12/8/02
to
ok, silly me, I needed to dock it to fill the user control

"Billy_270" <Bill...@hotmail.com> wrote in message
news:eDkLI3rnCHA.1868@TK2MSFTNGP12...

Billy_270

unread,
Dec 8, 2002, 10:07:22 AM12/8/02
to
oops, I didn't see your reply. Thanks very much :-)

"Goran Genter" <ge...@fly.srk.fer.hr> wrote in message
news:asvmgi$9i$1...@bagan.srce.hr...

0 new messages