Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Hide Cursor in my Application

Hide Cursor in my Application

Scheduled Pinned Locked Moved C#
question
3 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ASysSolvers
    wrote on last edited by
    #1

    In my Application i want to Hide Cursor. i want to disable right click,..left click menu strip all. I try with Cursor.Show(); ShowCursor(1); [DllImport("user32")] public static extern int ShowCursor(int bShow); but it is not success.Also i need to enable the mouse in one page. i have an internet page also in my application i want to enable the cursor in that page. So what is the best solution for my application?

    D 1 Reply Last reply
    0
    • A ASysSolvers

      In my Application i want to Hide Cursor. i want to disable right click,..left click menu strip all. I try with Cursor.Show(); ShowCursor(1); [DllImport("user32")] public static extern int ShowCursor(int bShow); but it is not success.Also i need to enable the mouse in one page. i have an internet page also in my application i want to enable the cursor in that page. So what is the best solution for my application?

      D Offline
      D Offline
      DaveyM69
      wrote on last edited by
      #2

      Cursor.Hide();

      Dave
      BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
      Expect everything to be hard and then enjoy the things that come easy. (code-frog)

      A 1 Reply Last reply
      0
      • D DaveyM69

        Cursor.Hide();

        Dave
        BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
        Expect everything to be hard and then enjoy the things that come easy. (code-frog)

        A Offline
        A Offline
        ASysSolvers
        wrote on last edited by
        #3

        yes Cursor.Hide(); is correct. Only thing is we need to balance Cursor.Hide() and Cursor.Show() we can do it by from win API also that do the same,.. ShowCursor(0) and ShowCursor(1) [DllImport("user32")] public static extern int ShowCursor(int bShow);

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups