473,406 Members | 2,343 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,406 software developers and data experts.

Value of a HScrollbar

Hi,

I set the maximum value of an HScrollbar on 255. When I scroll to the
maximum, the maximum value remains 246.
How is this possible??

I put some code in the Scroll event, make the HScrollbar.Value appear in a
TextBox.
Also the ScrollEventArgs.NewValue remains 246

Thanks
Eddy
Nov 15 '05 #1
2 3901
Hi,

"Eddy" <so********@pandora.be> wrote in message
news:Ot**************@TK2MSFTNGP12.phx.gbl...
Hi,

I set the maximum value of an HScrollbar on 255. When I scroll to the
maximum, the maximum value remains 246.
How is this possible??

I put some code in the Scroll event, make the HScrollbar.Value appear in a
TextBox.
Also the ScrollEventArgs.NewValue remains 246
from msdn.net:
The value of a scroll bar cannot reach its maximum value through user
interaction at run time. The maximum value that can be reached is equal to
the Maximum property value minus the LargeChange property value plus one.
The maximum value can only be reached programmatically.
Don't know why this is so.
HTH
greetings


Thanks
Eddy

Nov 15 '05 #2
On Sat, 15 Nov 2003 22:49:47 +0100, "Eddy" <so********@pandora.be>
wrote:
Hi,

I set the maximum value of an HScrollbar on 255. When I scroll to the
maximum, the maximum value remains 246.
How is this possible??

I put some code in the Scroll event, make the HScrollbar.Value appear in a
TextBox.
Also the ScrollEventArgs.NewValue remains 246


Probably because you are displaying nine lines of information when
the new value is 246? The total would then be 255, your maximum.

Oz

Nov 15 '05 #3

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

Similar topics

1
by: G Kannan | last post by:
Hey all! I have written a perl script to retrieve information from a HTML Form and insert the data into an Oracle database table. I am gettting the the following error message: "Use of...
16
by: cwizard | last post by:
I'm calling on a function from within this form, and there are values set but every time it gets called I get slammed with a run time error... document.frmKitAmount.txtTotalKitValue is null or not...
0
by: meicher | last post by:
Hello, HScrollBar and VScrollBar respond to the arrow keys. How can I disable this ? I tried to override the key methodes from this two classes. It didn't help. :?: Posted Via Usenet.com...
0
by: meicher | last post by:
Hi, I have an application with forms. Every form includes a VScrollBar and a HScrollBar. The ScrollBars allways get the arrow keys and start blinking ? How can I catch these key events ? KeyUp,...
0
by: Lex Yacc | last post by:
Hello,every one, I meet a question, that I use the VScrollBar and HScrollBar in my Form, and control a Control(Whitch is like PicureBox,but can draw sth. on it). Some reason, I can't use the...
0
by: Valerie Hough | last post by:
I have created an owner draw ListBox object. I have added an HScrollBar control to its Control collection. I have set the Anchor property to AnchorStyles.Bottom and the Dock property to...
1
by: john doe | last post by:
I'm subclassing a HScrollBar and overriding the WndProc method: protected override void WndProc(ref Message m) { base.WndProc (ref m); System.Diagnostics.Debug.WriteLine((Msg)m.Msg); } ...
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...
0
by: lazzypink | last post by:
Hi guys! May i know how to use HScrollBar to control listview scrollbar? thanks!
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
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...
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...
0
tracyyun
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...
0
agi2029
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,...
0
isladogs
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...

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.