Click here to Skip to main content
15,887,350 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionCRViewer Slow down my system Pin
Adrian_Mia11-Sep-09 8:07
Adrian_Mia11-Sep-09 8:07 
AnswerRe: CRViewer Slow down my system Pin
εїзεїзεїз11-Sep-09 8:16
εїзεїзεїз11-Sep-09 8:16 
GeneralRe: CRViewer Slow down my system Pin
Adrian_Mia11-Sep-09 8:21
Adrian_Mia11-Sep-09 8:21 
GeneralRe: CRViewer Slow down my system Pin
εїзεїзεїз11-Sep-09 10:28
εїзεїзεїз11-Sep-09 10:28 
GeneralRe: CRViewer Slow down my system Pin
Adrian_Mia21-Sep-09 12:14
Adrian_Mia21-Sep-09 12:14 
QuestionMouse up event Pin
RyJaBy11-Sep-09 5:13
RyJaBy11-Sep-09 5:13 
AnswerRe: Mouse up event Pin
dan!sh 11-Sep-09 6:25
professional dan!sh 11-Sep-09 6:25 
GeneralRe: Mouse up event Pin
RyJaBy11-Sep-09 8:09
RyJaBy11-Sep-09 8:09 
I'm basically making my own slider.
Dim mouseheight As Integer
    Dim slidepos As Integer
    Dim handletop As Integer


    




    Private Sub sliderhandle_mousedown(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles sliderhandle.MouseDown
        handletop = sliderhandle.Top
        If MouseButtons = Windows.Forms.MouseButtons.Left Then
            SliderTimer.Enabled = True

        End If


        mouseheight = MousePosition.Y
    End Sub
    Private Sub sliderhandle_mouseup(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles sliderhandle.MouseUp
        SliderTimer.Enabled = False
        handletop = sliderhandle.Top


    End Sub


    Private Sub SliderTimer_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SliderTimer.Tick




      
        slidepos = handletop + MousePosition.Y - mouseheight


        If slidepos >= EmptyBar.Bottom - 15 Then
            sliderhandle.Top = EmptyBar.Bottom - 15


        ElseIf slidepos <= EmptyBar.Top Then
            sliderhandle.Top = EmptyBar.Top

        Else
            sliderhandle.Top = slidepos
        End If

endTimer:

    End Sub
End Class


So when i have the mouse down it is going through the timer routine and when i let go it should make sliderTimer.enabled = false
It works most of the time except for when i click and move the slider for a split second. Then what happens is it follows my mouse even though i do not have the button clicked. So i was thinking if i could check the mouse button state then i could force it to disable the timer.
AnswerRe: Mouse up event Pin
Luc Pattyn11-Sep-09 8:23
sitebuilderLuc Pattyn11-Sep-09 8:23 
QuestionWin7 Pin
cstrader23211-Sep-09 3:45
cstrader23211-Sep-09 3:45 
AnswerRe: Win7 Pin
tosch11-Sep-09 3:53
tosch11-Sep-09 3:53 
GeneralRe: Win7 Pin
cstrader23211-Sep-09 4:09
cstrader23211-Sep-09 4:09 
GeneralRe: Win7 Pin
Eddy Vluggen11-Sep-09 4:45
professionalEddy Vluggen11-Sep-09 4:45 
GeneralRe: Win7 Pin
cstrader23211-Sep-09 5:12
cstrader23211-Sep-09 5:12 
GeneralRe: Win7 Pin
cstrader23211-Sep-09 6:47
cstrader23211-Sep-09 6:47 
GeneralRe: Win7 [modified] Pin
DaveAuld11-Sep-09 9:50
professionalDaveAuld11-Sep-09 9:50 
GeneralRe: Win7 Pin
cstrader23211-Sep-09 15:47
cstrader23211-Sep-09 15:47 
GeneralRe: Win7 Pin
cstrader23215-Sep-09 1:49
cstrader23215-Sep-09 1:49 
Questionshorter File Path Pin
Bob Beaubien11-Sep-09 2:35
Bob Beaubien11-Sep-09 2:35 
AnswerRe: shorter File Path Pin
Johan Hakkesteegt11-Sep-09 2:46
Johan Hakkesteegt11-Sep-09 2:46 
GeneralRe: shorter File Path Pin
Bob Beaubien11-Sep-09 3:00
Bob Beaubien11-Sep-09 3:00 
GeneralRe: shorter File Path Pin
Eddy Vluggen11-Sep-09 3:07
professionalEddy Vluggen11-Sep-09 3:07 
GeneralRe: shorter File Path Pin
Johan Hakkesteegt11-Sep-09 3:07
Johan Hakkesteegt11-Sep-09 3:07 
GeneralRe: shorter File Path Pin
Dave Kreskowiak11-Sep-09 4:10
mveDave Kreskowiak11-Sep-09 4:10 
GeneralRe: shorter File Path Pin
Johan Hakkesteegt13-Sep-09 22:38
Johan Hakkesteegt13-Sep-09 22:38 

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.