Results 1 to 4 of 4

Thread: My application does not detect scrolling mouse

  1. #1
    ivor is offline VB.NET Forum Newbie
    .NET Framework
    .NET 3.5
    Join Date
    Mar 2011
    Location
    Croatia
    Posts
    7
    Reputation
    0

    My application does not detect scrolling mouse

    Hello guys,

    can anybody help with my problem. I made an application where i used mouse scrool event. On my PC everyting work excellent, but when I try it on different machine scrolling is not detected!? How is that possible?!
    i am using e.delta < 0 and e.delta > 0

    Please help

  2. #2
    jmcilhinney's Avatar
    jmcilhinney is offline VB.NET Forum Moderator
    .NET Framework
    .NET 4.0
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    11,358
    Reputation
    1544
    Please provide a FULL and CLEAR description of EXACTLY what you're doing and EXACTLY what happens. In exactly what context are you using those expressions?

  3. #3
    ivor is offline VB.NET Forum Newbie
    .NET Framework
    .NET 3.5
    Join Date
    Mar 2011
    Location
    Croatia
    Posts
    7
    Reputation
    0
    Quote Originally Posted by jmcilhinney View Post
    Please provide a FULL and CLEAR description of EXACTLY what you're doing and EXACTLY what happens. In exactly what context are you using those expressions?
    Thanks for trying to help jmcilhinney. No, problem.
    Actually my code is very simple. I have an image that is screenshoot of currently screen. Then, with rolling mouse, i zoom it + or -. Nothing more.


    'zooming down
    If e.Delta < 0 Then


    If img_zumiranje.Height > System.Windows.Forms.Screen.PrimaryScreen.Bounds.H eight And img_zumiranje.Width > System.Windows.Forms.Screen.PrimaryScreen.Bounds.W idth Then
    For i = 0 To 12
    img_zumiranje.Height = img_zumiranje.Height - System.Windows.Forms.Screen.PrimaryScreen.Bounds.H eight * 0.1
    img_zumiranje.Width = img_zumiranje.Width - System.Windows.Forms.Screen.PrimaryScreen.Bounds.W idth * 0.1
    img_zumiranje_MouseMove(Nothing, Nothing)
    Next
    End If

    End If

    ' zooming up
    If e.Delta > 0 Then

    If img_zumiranje.Height < System.Windows.Forms.Screen.PrimaryScreen.Bounds.H eight * 5 Or img_zumiranje.Width < System.Windows.Forms.Screen.PrimaryScreen.Bounds.W idth * 4 Then

    For i = 0 To 12
    img_zumiranje.Height = img_zumiranje.Height + System.Windows.Forms.Screen.PrimaryScreen.Bounds.H eight * 0.1
    img_zumiranje.Width = img_zumiranje.Width + System.Windows.Forms.Screen.PrimaryScreen.Bounds.W idth * 0.1
    'img_zumiranje.Refresh()
    img_zumiranje_MouseMove(Nothing, Nothing)
    Next
    End If
    End If

    But, i must also mention something strange that i remark tonight. Some buttons on my form that should react on ONE mouse click, react only on double mouse click. I really do not understand.
    p.s. this is my first post ever. So please forgive me if i did not made it in suitable form (i mean code)

    Thanks

  4. #4
    ivor is offline VB.NET Forum Newbie
    .NET Framework
    .NET 3.5
    Join Date
    Mar 2011
    Location
    Croatia
    Posts
    7
    Reputation
    0
    I discovered problem. There was also one little form in my application that was set to top most. That was problem. Thanks jmcilhinney for trying to help.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Harvest time tracking