Search - Articles
DevASP.NET for ASP.NET, VB.NET, XML and C# (C-Sharp) Developers Tuesday, March 03, 2009
Dev Articles
Search Directory
SQL Server

How to Swap Mouse Buttons using Win32 API in VB.Net (Part 5)

Author: DevASP
Download Source Code : 412_VB.NET - Advanced .NET Framework - Make WIn32 API

This Article has Win32 demonstrations of Swaping the mouse Buttons in Real time. This is the Part Five of win32 API Usage.

Each of the Win32 API functions and constants have been wrapped up in the Win32API class for use in each demonstration.

This Article explain the way that we can swap mouse Buttons in real time and reset them back I use Utility of win 32 Api Like Swap Mouse Button, These are examples of calls that returned information that is not obtainable from managed classes.

Lets start Understanding by using Code it is recommended that with this explanation please run application First. And try to understand because helpful Comments are written there. First routine shows the Swap Of button using Win32 Api and remember by this Routine Your Swapping of buttons still active Unless You reset them. Write down the Routine below against the click event of Swap Mouse Buttons Labels Button.


Private Sub btnSwapMouseButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSwapMouseButton.Click




End Sub


'Now Second routine deals with Reset Buttons of Mouse Or You can say this again Swap.Write the Routine below against the click event of Reset Buttons Label’s Button.


Private Sub btnResetMouseButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnResetMouseButton.Click




End Sub


Source code is given with this article .And theses Functions Are Given in attached application’s Fourth Tab in Red Panel. It is recommended run application first. In this Article I tried to explain Mouse Swapping Using WIN32 APIs, there are many other Concepts regarding Win32 API in I will Explain Others in Later Parts.

Add Article Comment:
Name :
Email Address :
Comments :
<< How to Hide Insert And Update Query Strings

Disclaimer - Privacy
© 2002-2018