Click here to Skip to main content
15,889,861 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I am working under Windows 7 64 Bit (fully updated) and
I am using VisualStudio Express 2013 for Desktop as IDE.
And I am using a Logitech Mouse 560 with 5 buttons and mouse wheel.
Left, Right, Middle, Previous X1, Following X2 and the wheel.
I have installed the most recent Logitech SetPoint for Win 7 and 64 Bit.

I have implemented the following method in my C# .NET 4.51 class.

C#
private void picAnalysis_MouseClick(object sender, MouseEventArgs e)
{
    MouseButtons mB = e.Button;
    int          corrSourceTemp;

    if (mB == MouseButtons.Left)
    {
        // do nothing
    }
    if (mB == MouseButtons.Middle )
    {
        doProceed();
    }
    if (mB == MouseButtons.XButton1)
    {
        btnPrevious_Click(this, null);

    }
    if (mB == MouseButtons.XButton2)
    {
        doProceed();
    }

    if (mB == MouseButtons.Right)
    {
        corrSourceTemp = corrSourceInd;
        if (sPressed == true)
        {
            corrSourceInd = 3;    // 3 ist unbedingtes verschmieren
            sPressed = false;
        }

        applyCorrection(imgXTL, imgYTL, recWI, recHI, corrSourceInd);
        corrSourceInd = corrSourceTemp;
    }

}


When I invoke the Application in the IDE via DEGUGGING Mode, then the application works correctly.
But when I publish this application and I invoke it outside of Visual Studio, then the middle mouse button and the buttons XButton1 and XButton2 do not react on clicks.

What is different between DEBUGGING Mode inside of VS and the finalized and published application invoked from a shortcut and the EXE file from the Windows 7 64 bit desktop.

Thanks for any help in advance.
Wolfgang
Posted
Comments
Wolfgang Kurz 3-Jun-14 10:05am    
No, this did not solve the problem. What is written under Solution 1 is just additional information.
Due to an unknown reason I did not get a submit comment box.
Sorry for that.

Wolfgang

1 solution

Hallo,

additional information:

If Logitech SetPoint is deinstalled (removed completely) the middle mouse button shows no reaction, the X1 Button brings up the "Windows Start Menu" and the X2 Button minimizes the actual window.

Wolfgang
 
Share this answer
 
Comments
Naz_Firdouse 3-Jun-14 4:17am    
does this solve your issue????

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900