Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8341175
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T05:23:45+00:00 2026-06-09T05:23:45+00:00

I installed the Synaptics driver, therefore I can disable/enable the touchpad by hand. Here

  • 0

I installed the Synaptics driver, therefore I can disable/enable the touchpad by hand.

Here is the way I’m using to enable/disable touchpad by C#:

private void Switch_Mouse(int i = 0) // 1: Enable, 0: Disable
{
    Process.Start("control.exe", "main.cpl");
    Thread.Sleep(1000);
    int iHandle = FindWindow(null, "Mouse Properties");
    SetForegroundWindow(iHandle); // Line ABC
    SendKeys.Send("^+{TAB}");
    if (i == 1)
    {
        SendKeys.Send("%E");
    }
    else
    {
        SendKeys.Send("%D");
        SendKeys.Send("{Enter}");
    }
    SendKeys.Send("%A");
    SendKeys.Send("{Enter}");
}

It sends keystrokes to the Mouse Properties. But after line labeled // ABC (above), the Mouse Properties app loses focus and it doesn’t work.

Is there any other way to enable/disable the trackpad by C#?

(OS: Window 32 bits).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T05:23:46+00:00Added an answer on June 9, 2026 at 5:23 am

    This forum has a topic in which apparently the issue has been figured out (it’s all VB but porting to C# is quite straight-forward fortunately) -> Controlling Synaptics Touchpad

    Looks like all touchpad-related handling starts here:

    SynAPICtrl1.Initialize
      SynAPICtrl1.Activate ' Activate to receive device notifications
      DeviceHandle = SynAPICtrl1.FindDevice(SE_ConnectionAny, SE_DevicecPad, -1)
      If DeviceHandle = -1 Then
        MsgBox "Unable to find a Synaptics cPad"
        End
      End If
    
      SynDeviceCtrl1.Select (DeviceHandle)
      SynDeviceCtrl1.Activate 'Activate to receive pointing packets
    
      ZTouchThreshold = SynDeviceCtrl1.GetLongProperty(SP_ZTouchThreshold)
    

    It’s taken from the Synaptics SDK which, as they state, is available here Synaptics SDK along with Developer Manuals

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have installed LibHX using the Synaptic Packet Manager. I can see the libHX.so.22
I have installed the vim-latex package using Ubuntu Synaptic package manager and updated my
I installed clojure-mode and slime using the emacs starter kit and I get this
There is a similar question here but regarding the class path. ClassNotFoundException com.mysql.jdbc.Driver I've
I just installed mongodb from Synaptic (Using ubuntu 11.10). I'm following this tutorial: http://howtonode.org/express-mongodb
I installed Eclipse from the repository using the synaptic package manager under Ubuntu 10.04
After installing Boost library using Synaptic Package Manager, the version installed is 1.42 .
I am using Ubuntu 10.10 and I installed phpmyadmin from synaptic package manager. But
I installed virtualmin and phpmyadmin separately using the apt-get command. phpMyAdmin didn't work because
I installed Eclipse using Synaptic Package Manager (Ubuntu 9.10). However, my Eclipse does not

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.