How Random Babbling Becomes Corporate Policy (t3knomanser) wrote,
How Random Babbling Becomes Corporate Policy
t3knomanser

  • Mood:
  • Music:

FACH!

Okay... let's take a look at this one.

Private Sub cmdBlock_MouseDown(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
    If Button = vbRightButton Then
        tmrMainClock.Enabled = False
        Unload cmdBlock(Index)
        intScore = intScore + 1
        sbrBottom.Panels("score") = "Score: " & intScore
        tmrMainClock.Enabled = True
        intTimeLeft = intTimeLeft + 1
        sbrBottom.Panels("time") = "Time Left: " & intTimeLeft
    ElseIf Button = vbLeftButton Then
        cmdBlock(Index).Visible = False
        cmdBlock(Index).Tag = "LEFT"
    End If
End Sub



Okay... so the Mouse_down even should get called whenever you click a mouse button on a cmdBlock object, right? Wrong. It only gets called when I right click, not when I left click. WTF, over? Has anyone seen this behavior in VB?
Subscribe

  • Strange Things People Say About Me (to my face)

    Recently, I've been at the center of a trend. That trend is complete strangers asking me "Are you ____?" A quick summary. For example: Are you…

  • Writer's Block: If I could find my way

    -10,000 years, at minimum. Tomorrow is always better than today, especially when you can't fact-check.

  • Bob Morlang

    When I was working at Tri-Mount, we had these camp trucks. They were army surplus, and while they could take a beating, they only sort of worked. And…

  • Post a new comment

    Error

    Comments allowed for friends only

    Anonymous comments are disabled in this journal

    default userpic

    Your IP address will be recorded 

  • 0 comments