Results 1 to 4 of 4

Thread: [RESOLVED] [2005] Hide the mouse cursor in a full-screen console-mode app

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 1999
    Location
    California, USA
    Posts
    662

    Resolved [RESOLVED] [2005] Hide the mouse cursor in a full-screen console-mode app

    I'm making a full-screen console-mode app. Since it is entirely text-based and needs no mouse interaction, I thought it'd be nice to not display the ugly blocky mouse cursor. It seems that all consoles in .net display this cursor when made full screen. I know it possible to disable the cursor because non-.net apps, such as cmd.exe hide the cursor.

    I don't mind using the API to do this but I've already played around with ShowCursor. It doesn't appear to do anything at all in console-mode apps, even when they're windowed.

  2. #2

    Thread Starter
    Fanatic Member
    Join Date
    Jun 1999
    Location
    California, USA
    Posts
    662

    Re: [2005] Hide the mouse cursor in a full-screen console-mode app

    What I did to overcome this problem was to clip the mouse cursor to 0,0 and reverse the colors of that particular character. less than ideal, but it works.

  3. #3
    PowerPoster sparrow1's Avatar
    Join Date
    May 2005
    Location
    Globetrotter
    Posts
    2,820

    Re: [RESOLVED] [2005] Hide the mouse cursor in a full-screen console-mode app

    Hi,

    I think you can use:

    vb Code:
    1. Cursor.Hide()



    Wkr,

    sparrow1
    Wkr,
    sparrow1

    If I helped you, don't forget to Rate my post. Thank you

    I'm using Visual Studio.Net 2003 and
    2005
    How to learn VB.Net Create setup with VB 2005 Drawing for beginners VB.Net Tutorials GDI+ Tutorials
    Video's for beginners

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Jun 1999
    Location
    California, USA
    Posts
    662

    Re: [RESOLVED] [2005] Hide the mouse cursor in a full-screen console-mode app

    Quote Originally Posted by sparrow1
    Hi,

    I think you can use:

    vb Code:
    1. Cursor.Hide()



    Wkr,

    sparrow1

    That doesn't seem to work either. Thanks, though. I did notice the Clip property of the Cursor class, though. That let me eliminate the API call I was using instead.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width