Re: strange behaviour with vertical scrollbar
- From: "expvb" <nobody@xxxxxxx>
- Date: Fri, 26 Dec 2008 15:22:41 -0500
"Peter" <-> wrote in message
news:%23XYy%23OuZJHA.5772@xxxxxxxxxxxxxxxxxxxxxxx
Dear all
On my form I have a vertical scrollbar(VScroll1) and often(but not always)
I see strange behaviours:
If I press the up-arrow or the down-arrow(small change) of the Vscroll
control with the mouse then the slider is moving upwards or downwards as
expected.
If I press on the area between the arrow and the slider(large change) then
the following is happening:
sometimes the area between the arrow and the slider turns black and stays
black
sometimes it turns black but then changes to grey again.
If the area has turned black then sometimes if I just move the mouse over
the black area then the slider is moving without any mouse clicks. This
has happend only upwards so far, if the area has turned black in the lower
part of the vscroll control then moving the mouse over that area has never
moved the slider without any mouseclicks.
How can I prevent this?
I already put the following code into VScroll1_GotFocus event:
Picture1.Setfocus
to prevent blinking of the slider.
Both .SmallChange and .LargeChange properties are set to 1.
How long does it take for Change/Scroll event code to execute? You may want
to add test code:
Private Sub VScroll1_Change()
Dim t As Single
t = Timer
' Some code
Debug.Print "VScroll1_Change: Time taken " & Timer - t
End Sub
Try adding the following code as well to see if anything makes the scrollbar
lose focus:
Private Sub VScroll1_LostFocus()
Debug.Print "VScroll1_LostFocus called"
End Sub
.
- Prev by Date: Re: sql in vb6.0
- Next by Date: Re: sql in vb6.0
- Previous by thread: Re: strange behaviour with vertical scrollbar
- Next by thread: define maxmimum number of characters in mshflexgrid cell
- Index(es):
Relevant Pages
|