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.
private void picAnalysis_MouseClick(object sender, MouseEventArgs e)
{
MouseButtons mB = e.Button;
int corrSourceTemp;
if (mB == MouseButtons.Left)
{
}
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;
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