473,385 Members | 1,468 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,385 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 3897
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!
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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...

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.