locked
Clear KeyStrokes pressed ahead RRS feed

  • Question

  • Hi,

    How do I clear the key pressed by the user before showing the form in c#? The situation is when the user presses a button (and keeps pressing it) in a form that is going to display another form I would like to discard the keys pressed by the user on the previous form.

     

    Any help would be appreciated.

    Thanks,

    Swami

    Monday, August 9, 2010 3:12 PM

Answers

  • Hi Swami,

    Are you now showing the wait cursor? If not When you are running something behind, show the wait cursor hide it when that is done.

    To display wait cursor:
    Cursor.Current = Cursors.WaitCursor;  


    To display default cursor
    Cursor.Current = Cursors.Default;

    For Custom Cursors:

    http://www.christec.co.nz/blog/archives/320

     

    Please let me know if my understaing is wrong, regarding your query.

     

    Regards,

    Malleswar



     

    Tuesday, August 10, 2010 11:35 AM

All replies

  • Hi Swami,

    Are you now showing the wait cursor? If not When you are running something behind, show the wait cursor hide it when that is done.

    To display wait cursor:
    Cursor.Current = Cursors.WaitCursor;  


    To display default cursor
    Cursor.Current = Cursors.Default;

    For Custom Cursors:

    http://www.christec.co.nz/blog/archives/320

     

    Please let me know if my understaing is wrong, regarding your query.

     

    Regards,

    Malleswar



     

    Tuesday, August 10, 2010 11:35 AM
  • Thanks, that's what I am trying currently.
    Friday, August 13, 2010 8:51 PM