473,387 Members | 1,925 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Scrollbar maximum property?

Hi
I have some problems understanding the properties for the scrollbar class.
F.eks. how do I set the Maximum property in comparison to the Height
property if I for example want to have the scroller to have half the size of
the scrollbar? If the question is formulated a little weird, an explanation
of the ScrollBar Maximum, Height and Value properties would be great?

Regards
Thorbjorn
Nov 16 '05 #1
3 5279
Hi Thorbjorn
The maximum property is setting or getting the upper limit value of the
scrollbar range ( that range is set between the min and max properties ) .
height is for the height of the control in display so that is away for
logical possible steps between the max and the min and value is for
current position of the scroll box on the scroll bar control ( of course
within min and max)
Mohamed M .Mahfouz
Developer Support Engineer
ITWorx on behalf of Microsoft EMEA GTSC

Nov 16 '05 #2
Hi...
Thanks for taking time to answer my question... but I quite does not
understand it yet.
The maximum property is setting or getting the upper limit value of the
scrollbar range ( that range is set between the min and max properties ) .
height is for the height of the control in display so that is away for
logical possible steps between the max and the min and value is for
current position of the scroll box on the scroll bar control ( of course
within min and max)


If I set the "height=100", and the "maximum=100", how do I set the height of
the scroller? I my reasoning if I set the "height=100" and the "maximum=200"
the scroller would have half the size of the entire scroll bar, but it does
not seen to be like that...

Regards
Thorbjørn
Nov 16 '05 #3
Hi Thorbjorn
That is because the height has nothing to do with the maxmim . hight is
the physical display thing . lest say for the sake of example that height
100 means that the bar will be 100 pixels for example from point (300, 300
) to point ( 300,400) on the controlling frame. Min and max is something
else , they define the stepping of the of the scroll on the bar so for the
same bar of the last example if we set min to 0 and max to four then i have
four possible steps on that bar step I so the scroll would be at point
(300, 325) , 2 at point (300, 350) .. etc. hope that explains it .

Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: markusszil | last post by:
Hello all I have a fairly simple listbox into which I add, insert, and remove strings It has the following property settings HorizontalScrollbar - true HorizontalExtent - ScrollAlwaysVisible...
4
by: juli | last post by:
I have a chart with data and I want to add a scroll bar there but to do a paging - each time I move the scroll bar to add a data (to divife all the data untill all of it will be presented) What is...
6
by: Colin McGuire | last post by:
Hello experts, this is a repost but I have been (much) more clear. I want to know the position of the horizontal scrollbar in a textbox as a percentage - if the horizontal scrollbar is hard...
3
by: spielmann | last post by:
Hello I want to change the scrollbar size of windows, How can I do that with vb.net I have find this in VB6 but how can we convert simply this code. thx
0
by: d.steininger | last post by:
Hi there! Is there a way to bind a Textbox.Text to a ScrollBar.Value (not the Textbox-own Scrollbar) and vice versa? The Problem: I have to deal with two controls. The Textbox should accept...
6
by: Steve Barnett | last post by:
I think I'm going nuts... Put a scroll bar control on a form and in the form_load method, initialise it as follows: vScrollBar.Minimum = 0; vScrollBar.Maximum = 10; vScrollBar.SmallChange = 1;...
3
by: MrNobody | last post by:
I have a mystery where my scrollbar behaves differently from when I use it's slider/arrow keys compared to when I manipulate it's value with a onMouseWheel event... When I manipulate my...
1
by: Victor Hadianto | last post by:
Hi, I have a WPF ScrollBar that had a rather large maximum value. Now the problem is that everytime I click the RepeatButton (the buttons on both side of the Thumb button) it only increases the...
1
robkeithd
by: robkeithd | last post by:
Greetings, In a nutshell: I've got a panel sitting on a form that is docked to full sitting next to a vertical scrollbar that is docked left. There is a picture control sitting in the panel that...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
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 using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.