Click here to Skip to main content
15,887,596 members
Home / Discussions / C#
   

C#

 
GeneralRe: Scroollbar thumb Y position C# Pin
Richard MacCutchan30-Dec-16 23:38
mveRichard MacCutchan30-Dec-16 23:38 
GeneralRe: Scroollbar thumb Y position C# Pin
didielf31-Dec-16 7:52
professionaldidielf31-Dec-16 7:52 
GeneralRe: Scroollbar thumb Y position C# Pin
Luc Pattyn31-Dec-16 1:51
sitebuilderLuc Pattyn31-Dec-16 1:51 
GeneralRe: Scroollbar thumb Y position C# Pin
Richard MacCutchan31-Dec-16 2:03
mveRichard MacCutchan31-Dec-16 2:03 
GeneralRe: Scroollbar thumb Y position C# Pin
Luc Pattyn31-Dec-16 2:08
sitebuilderLuc Pattyn31-Dec-16 2:08 
GeneralRe: Scroollbar thumb Y position C# Pin
Richard MacCutchan31-Dec-16 2:20
mveRichard MacCutchan31-Dec-16 2:20 
GeneralRe: Scroollbar thumb Y position C# Pin
didielf31-Dec-16 7:48
professionaldidielf31-Dec-16 7:48 
GeneralRe: Scroollbar thumb Y position C# Pin
Luc Pattyn31-Dec-16 8:06
sitebuilderLuc Pattyn31-Dec-16 8:06 
If you can't reach the scroll's bottom, it means ratio is too small. As your math seems OK, I can imagine only two reasons:

1. a rounding down error, probably caused by a bad choice of data type (such as decimal only offering two fractional digits);

2. ThumbSize() returing too large a value; so please check and/or provide the exact code for that method.

Suggestion: take one example, note all the numbers, compare what they are (from logging or interactive debug session) with what they should be (manual calculation), you then should be able to see the error right away!


PS: ClientHeight isn't always the right value, e.g. when a HScrollBar appears, it reduces the VScrollBar's height!

Smile | :)
Luc Pattyn [My Articles] Nil Volentibus Arduum

GeneralRe: Scroollbar thumb Y position C# Pin
didielf31-Dec-16 10:54
professionaldidielf31-Dec-16 10:54 
GeneralRe: Scroollbar thumb Y position C# Pin
Luc Pattyn1-Jan-17 0:47
sitebuilderLuc Pattyn1-Jan-17 0:47 
QuestionBEGINNER NEEDS HELP Pin
Member 1292900130-Dec-16 19:30
Member 1292900130-Dec-16 19:30 
AnswerRe: BEGINNER NEEDS HELP Pin
Ravi Bhavnani30-Dec-16 20:03
professionalRavi Bhavnani30-Dec-16 20:03 
AnswerRe: BEGINNER NEEDS HELP Pin
Richard MacCutchan30-Dec-16 21:02
mveRichard MacCutchan30-Dec-16 21:02 
AnswerRe: BEGINNER NEEDS HELP Pin
OriginalGriff30-Dec-16 21:03
mveOriginalGriff30-Dec-16 21:03 
QuestionWorking Between Visual Studio and Visual Studio Code Pin
TheOnlyRealTodd30-Dec-16 18:17
professionalTheOnlyRealTodd30-Dec-16 18:17 
AnswerRe: Working Between Visual Studio and Visual Studio Code Pin
Gerry Schmitz31-Dec-16 7:35
mveGerry Schmitz31-Dec-16 7:35 
QuestionLocationChanged to set windowstate=Maximized Pin
Member 830292029-Dec-16 11:51
professionalMember 830292029-Dec-16 11:51 
AnswerRe: LocationChanged to set windowstate=Maximized Pin
Midi_Mick30-Dec-16 2:25
professionalMidi_Mick30-Dec-16 2:25 
AnswerRe: LocationChanged to set windowstate=Maximized Pin
Alan N30-Dec-16 3:49
Alan N30-Dec-16 3:49 
GeneralRe: LocationChanged to set windowstate=Maximized Pin
Member 83029203-Jan-17 6:56
professionalMember 83029203-Jan-17 6:56 
QuestionSimulate Desktop Mouse Scroll (Via C++ PInvoke) Pin
Imagiv29-Dec-16 10:22
Imagiv29-Dec-16 10:22 
AnswerRe: Simulate Desktop Mouse Scroll (Via C++ PInvoke) Pin
Gerry Schmitz29-Dec-16 11:13
mveGerry Schmitz29-Dec-16 11:13 
QuestionUnderstanding DbContext Class Pin
Liagapi29-Dec-16 7:00
Liagapi29-Dec-16 7:00 
AnswerRe: Understanding DbContext Class Pin
Dave Kreskowiak29-Dec-16 9:42
mveDave Kreskowiak29-Dec-16 9:42 
AnswerRe: Understanding DbContext Class Pin
John C Rayan30-Dec-16 3:21
professionalJohn C Rayan30-Dec-16 3:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.