I've read the help docs but can't figure what AutoScrollMinSize does.
Probably very simple so they felt no need to explain but it is not evident
to me.
Can someone give a few words about it and an example of when it would be
useful?
Thanks 8 12986
" Just Me" <gr****@a-znet.com> schrieb: I've read the help docs but can't figure what AutoScrollMinSize does.
Probably very simple so they felt no need to explain but it is not evident to me.
The 'AutoScrollMinSize' property contains the minimum size of the area that
can be scrolled if scrollbars are shown. Does this make it more clear?
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
I saw something that suggests : If the window becomes smaller then the
AutoScrollMinSize the scroll bars appear. Is that true?
What happens if I do not set it?
Seems I should normally set it to ClientSize?
Thanks
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:Ov**************@TK2MSFTNGP11.phx.gbl... " Just Me" <gr****@a-znet.com> schrieb: I've read the help docs but can't figure what AutoScrollMinSize does.
Probably very simple so they felt no need to explain but it is not evident to me.
The 'AutoScrollMinSize' property contains the minimum size of the area that can be scrolled if scrollbars are shown. Does this make it more clear?
-- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Just Me, Seems I should normally set it to ClientSize?
At design time yes, at run time no. If you are designing a form that is
larger then your "target" screen, then I normally set AutoScrollMinSize to
the size of my "target" screen. For example if I laid out my controls in a
640 x 960 grid (client area), I could set AutoScrollMinSize to 640 x 480 and
be able to scroll the controls up & down on the page to see both "halves".
Think about it in terms of how Page Preview shows a page. AutoScrollMinSize
would be set to the actual size of the Page itself, if the client area is
larger then the Page, then there is no need for Scroll Bars as the entire
Page can be seen. If the client area is smaller then the page itself, then
you do need Scroll Bars, as you need to what part of the page you are
looking at.
Bob Powell (GDI+ guru) has a nice writeup on Understanding Auto-Scroll,
including AutoScrollMinSize: http://www.bobpowell.net/understanding_autoscroll.htm
Hope this helps
Jay
" Just Me" <gr****@a-znet.com> wrote in message
news:uv**************@TK2MSFTNGP12.phx.gbl... I saw something that suggests : If the window becomes smaller then the AutoScrollMinSize the scroll bars appear. Is that true?
What happens if I do not set it?
Seems I should normally set it to ClientSize?
Thanks
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message news:Ov**************@TK2MSFTNGP11.phx.gbl..." Just Me" <gr****@a-znet.com> schrieb: I've read the help docs but can't figure what AutoScrollMinSize does.
Probably very simple so they felt no need to explain but it is not evident to me.
The 'AutoScrollMinSize' property contains the minimum size of the area that can be scrolled if scrollbars are shown. Does this make it more clear?
-- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
What do I get if I don't set it to anything?
Thanks
"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message
news:eW****************@TK2MSFTNGP09.phx.gbl... Just Me, Seems I should normally set it to ClientSize? At design time yes, at run time no. If you are designing a form that is larger then your "target" screen, then I normally set AutoScrollMinSize to the size of my "target" screen. For example if I laid out my controls in a 640 x 960 grid (client area), I could set AutoScrollMinSize to 640 x 480 and be able to scroll the controls up & down on the page to see both "halves".
Think about it in terms of how Page Preview shows a page. AutoScrollMinSize would be set to the actual size of the Page itself, if the client area is larger then the Page, then there is no need for Scroll Bars as the entire Page can be seen. If the client area is smaller then the page itself, then you do need Scroll Bars, as you need to what part of the page you are looking at.
Bob Powell (GDI+ guru) has a nice writeup on Understanding Auto-Scroll, including AutoScrollMinSize:
http://www.bobpowell.net/understanding_autoscroll.htm
Hope this helps Jay
" Just Me" <gr****@a-znet.com> wrote in message news:uv**************@TK2MSFTNGP12.phx.gbl... I saw something that suggests : If the window becomes smaller then the AutoScrollMinSize the scroll bars appear. Is that true?
What happens if I do not set it?
Seems I should normally set it to ClientSize?
Thanks
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message news:Ov**************@TK2MSFTNGP11.phx.gbl..." Just Me" <gr****@a-znet.com> schrieb: I've read the help docs but can't figure what AutoScrollMinSize does.
Probably very simple so they felt no need to explain but it is not evident to me.
The 'AutoScrollMinSize' property contains the minimum size of the area that can be scrolled if scrollbars are shown. Does this make it more clear?
-- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Doh!
I said that backwards: 640 x 960 grid (client area), I could set AutoScrollMinSize to 640 x 480 and be able to scroll the controls up & down on the page to see both "halves".
I could set the ClientSize to 640 x 480 & the AutoScrollMinSize to 640 x 960
and be able to scroll up & down on the page to see both halves!
Hope this helps
Jay
"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message
news:eW****************@TK2MSFTNGP09.phx.gbl... Just Me, Seems I should normally set it to ClientSize? At design time yes, at run time no. If you are designing a form that is larger then your "target" screen, then I normally set AutoScrollMinSize to the size of my "target" screen. For example if I laid out my controls in a 640 x 960 grid (client area), I could set AutoScrollMinSize to 640 x 480 and be able to scroll the controls up & down on the page to see both "halves".
Think about it in terms of how Page Preview shows a page. AutoScrollMinSize would be set to the actual size of the Page itself, if the client area is larger then the Page, then there is no need for Scroll Bars as the entire Page can be seen. If the client area is smaller then the page itself, then you do need Scroll Bars, as you need to what part of the page you are looking at.
Bob Powell (GDI+ guru) has a nice writeup on Understanding Auto-Scroll, including AutoScrollMinSize:
http://www.bobpowell.net/understanding_autoscroll.htm
Hope this helps Jay
" Just Me" <gr****@a-znet.com> wrote in message news:uv**************@TK2MSFTNGP12.phx.gbl... I saw something that suggests : If the window becomes smaller then the AutoScrollMinSize the scroll bars appear. Is that true?
What happens if I do not set it?
Seems I should normally set it to ClientSize?
Thanks
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message news:Ov**************@TK2MSFTNGP11.phx.gbl..." Just Me" <gr****@a-znet.com> schrieb: I've read the help docs but can't figure what AutoScrollMinSize does.
Probably very simple so they felt no need to explain but it is not evident to me.
The 'AutoScrollMinSize' property contains the minimum size of the area that can be scrolled if scrollbars are shown. Does this make it more clear?
-- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Just Me,
You get nothing, as in no AutoScrolling, unless you set AutoScroll = True!
If you set AutoScroll = True & leave AutoScrollMinSize at (0,0) as far as I
can tell it picks bounding rectangle of all your controls on the form, which
is what I would normally set it to...
Of course this is something that is easy enough to try.
Create a form, place a bunch of controls on the form. Set FormBorderStyle to
Sizable, set AutoScroll to True, run the form, resize the form to a rather
small size. You should get scroll bars.
With the same form set AutoScroll to False, run the form, resize the form to
a rather small size. You should not get scroll bars.
Hope this helps
Jay
" Just Me" <gr****@a-znet.com> wrote in message
news:eO****************@TK2MSFTNGP09.phx.gbl... What do I get if I don't set it to anything?
Thanks
"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message news:eW****************@TK2MSFTNGP09.phx.gbl... Just Me, Seems I should normally set it to ClientSize? At design time yes, at run time no. If you are designing a form that is larger then your "target" screen, then I normally set AutoScrollMinSize to the size of my "target" screen. For example if I laid out my controls in a 640 x 960 grid (client area), I could set AutoScrollMinSize to 640 x 480 and be able to scroll the controls up & down on the page to see both "halves".
Think about it in terms of how Page Preview shows a page. AutoScrollMinSize would be set to the actual size of the Page itself, if the client area is larger then the Page, then there is no need for Scroll Bars as the entire Page can be seen. If the client area is smaller then the page itself, then you do need Scroll Bars, as you need to what part of the page you are looking at.
Bob Powell (GDI+ guru) has a nice writeup on Understanding Auto-Scroll, including AutoScrollMinSize:
http://www.bobpowell.net/understanding_autoscroll.htm
Hope this helps Jay
" Just Me" <gr****@a-znet.com> wrote in message news:uv**************@TK2MSFTNGP12.phx.gbl... I saw something that suggests : If the window becomes smaller then the AutoScrollMinSize the scroll bars appear. Is that true?
What happens if I do not set it?
Seems I should normally set it to ClientSize?
Thanks
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message news:Ov**************@TK2MSFTNGP11.phx.gbl... " Just Me" <gr****@a-znet.com> schrieb: > I've read the help docs but can't figure what AutoScrollMinSize does. > > Probably very simple so they felt no need to explain but it is not > evident to me.
The 'AutoScrollMinSize' property contains the minimum size of the area that can be scrolled if scrollbars are shown. Does this make it more clear?
-- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Check out the article in Windows Forms Tips and Tricks.
--
Bob Powell [MVP]
Visual C#, System.Drawing
Find great Windows Forms articles in Windows Forms Tips and Tricks http://www.bobpowell.net/tipstricks.htm
Answer those GDI+ questions with the GDI+ FAQ http://www.bobpowell.net/faqmain.htm
All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
" Just Me" <gr****@a-znet.com> wrote in message
news:OE**************@TK2MSFTNGP14.phx.gbl... I've read the help docs but can't figure what AutoScrollMinSize does.
Probably very simple so they felt no need to explain but it is not evident to me.
Can someone give a few words about it and an example of when it would be useful?
Thanks
Good site.
I didn't see a description of what happens if I set it to 0,0 or do not set
it at all.
It appears that what happens is that it effectively includes all the
controls on the form.
Thanks
"Bob Powell [MVP]" <bob@_spamkiller_bobpowell.net> wrote in message
news:uZ****************@TK2MSFTNGP11.phx.gbl... Check out the article in Windows Forms Tips and Tricks.
-- Bob Powell [MVP] Visual C#, System.Drawing
Find great Windows Forms articles in Windows Forms Tips and Tricks http://www.bobpowell.net/tipstricks.htm
Answer those GDI+ questions with the GDI+ FAQ http://www.bobpowell.net/faqmain.htm
All new articles provide code in C# and VB.NET. Subscribe to the RSS feeds provided and never miss a new article.
" Just Me" <gr****@a-znet.com> wrote in message news:OE**************@TK2MSFTNGP14.phx.gbl... I've read the help docs but can't figure what AutoScrollMinSize does.
Probably very simple so they felt no need to explain but it is not evident to me.
Can someone give a few words about it and an example of when it would be useful?
Thanks
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: thecrow |
last post by:
Alright, what the hell is going on here?
In the following code, I expect the printed result to be:
DEBUG: frank's last name is burns.
Instead, what I get is:
DEBUG: frank's last name is...
|
by: Brandon J. Van Every |
last post by:
What's better about Ruby than Python? I'm sure there's something. What is
it?
This is not a troll. I'm language shopping and I want people's answers. I
don't know beans about Ruby or have...
|
by: mike420 |
last post by:
I think everyone who used Python will agree that its syntax is
the best thing going for it. It is very readable and easy
for everyone to learn. But, Python does not a have very good
macro...
|
by: Reed L. O'Brien |
last post by:
I see rotor was removed for 2.4 and the docs say use an AES module
provided separately... Is there a standard module that works alike or
an AES module that works alike but with better encryption?...
|
by: Philippe C. Martin |
last post by:
I apologize in advance for launching this post but I might get enlightment
somehow (PS: I am _very_ agnostic ;-).
- 1) I do not consider my intelligence/education above average
- 2) I am very...
|
by: Dario |
last post by:
The following simple program behaves differently
in Windows and Linux .
#include <stdexcept>
#include <iostream>
#include <string>
using namespace std;
class LogicError : public logic_error {...
|
by: Sarah Tanembaum |
last post by:
Beside its an opensource and supported by community, what's the fundamental
differences between PostgreSQL and those high-price commercial database (and
some are bloated such as Oracle) from...
|
by: active |
last post by:
Set(ByVal NewSize As Drawing.Size)
Me.AutoScrollMinSize = NewSize
picDisplay.Size = NewSize
picMarquee.Size = NewSize
AdjustBitmap()
|
by: =?Utf-8?B?Tmljaw==?= |
last post by:
Hi,
I'm running into a scaling issue.
I'm having a simple form. I have some control in that form (2 group boxes,
one dock to the left , the other set to fill, with some misc. controls in
them)....
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
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...
|
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...
|
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,...
|
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...
| |