Home All Groups Group Topic Archive Search About

Making a UserControl scroll when host form is resized

Author
7 Dec 2004 11:43 AM
ian.mcewan@atonement.net
Hi, how can I make a UserControl scroll when host form is
resized?

Thanks
Ian.
Author
7 Dec 2004 11:07 PM
Herfried K. Wagner [MVP]
"ian.mce***@atonement.net" <anonym***@discussions.microsoft.com> schrieb:
> Hi, how can I make a UserControl scroll when host form is
> resized?

Set its 'AutoScrollPosition' accordingly.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>
Are all your drivers up to date? click for free checkup

Author
8 Dec 2004 9:14 AM
ian.mcewan@atonement.net
As would indeed seem obvious. However it doesn't seem to
work the way it should.

For example if I set AutoScrollMinSize to 100,100, no
matter how small or large I resize the form, the
usercontrol DOES NOT have scrollbars attached.


>-----Original Message-----
>"ian.mce***@atonement.net"
<anonym***@discussions.microsoft.com> schrieb:
Show quoteHide quote
>> Hi, how can I make a UserControl scroll when host form
is
>> resized?
>
>Set its 'AutoScrollPosition' accordingly.
>
>--
> M S   Herfried K. Wagner
>M V P  <URL:http://dotnet.mvps.org/>
> V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>
>.
>
Author
8 Dec 2004 5:40 PM
Herfried K. Wagner [MVP]
"ian.mce***@atonement.net" <anonym***@discussions.microsoft.com> schrieb:
> For example if I set AutoScrollMinSize to 100,100, no
> matter how small or large I resize the form, the
> usercontrol DOES NOT have scrollbars attached.

Set the usercontrol's 'AutoScroll' property to 'True'.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>
Author
13 Dec 2004 9:23 AM
ian.mcewan@atonement.net
Of course I tried that, but it is not sufficient to make
it work.

>-----Original Message-----
>"ian.mce***@atonement.net"
<anonym***@discussions.microsoft.com> schrieb:
Show quoteHide quote
>> For example if I set AutoScrollMinSize to 100,100, no
>> matter how small or large I resize the form, the
>> usercontrol DOES NOT have scrollbars attached.
>
>Set the usercontrol's 'AutoScroll' property to 'True'.
>
>--
> M S   Herfried K. Wagner
>M V P  <URL:http://dotnet.mvps.org/>
> V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>
>.
>

Bookmark and Share