How to Capture Mouse Movement in C#.NET

  • strict warning: Non-static method view::load() should not be called statically in /home/content/02/6751802/html/techpint/sites/all/modules/views/views.module on line 843.
  • strict warning: Declaration of views_plugin_display::options_validate() should be compatible with views_plugin::options_validate(&$form, &$form_state) in /home/content/02/6751802/html/techpint/sites/all/modules/views/includes/handlers.inc on line 77.
  • strict warning: Declaration of views_plugin_display_block::options_submit() should be compatible with views_plugin_display::options_submit(&$form, &$form_state) in /home/content/02/6751802/html/techpint/sites/all/modules/views/includes/handlers.inc on line 77.
  • strict warning: Declaration of views_handler_field_broken::ui_name() should be compatible with views_handler::ui_name($short = false) in /home/content/02/6751802/html/techpint/sites/all/modules/views/includes/handlers.inc on line 77.
  • strict warning: Declaration of views_handler_filter::options_validate() should be compatible with views_handler::options_validate($form, &$form_state) in /home/content/02/6751802/html/techpint/sites/all/modules/views/includes/handlers.inc on line 77.
  • strict warning: Declaration of views_handler_filter::options_submit() should be compatible with views_handler::options_submit($form, &$form_state) in /home/content/02/6751802/html/techpint/sites/all/modules/views/includes/handlers.inc on line 77.
  • strict warning: Declaration of views_handler_filter_broken::ui_name() should be compatible with views_handler::ui_name($short = false) in /home/content/02/6751802/html/techpint/sites/all/modules/views/includes/handlers.inc on line 77.
  • strict warning: Declaration of views_plugin_style_default::options() should be compatible with views_object::options() in /home/content/02/6751802/html/techpint/sites/all/modules/views/includes/handlers.inc on line 77.
  • strict warning: Declaration of views_plugin_row::options_validate() should be compatible with views_plugin::options_validate(&$form, &$form_state) in /home/content/02/6751802/html/techpint/sites/all/modules/views/includes/handlers.inc on line 77.
  • strict warning: Declaration of views_plugin_row::options_submit() should be compatible with views_plugin::options_submit(&$form, &$form_state) in /home/content/02/6751802/html/techpint/sites/all/modules/views/includes/handlers.inc on line 77.
  • strict warning: Non-static method view::load() should not be called statically in /home/content/02/6751802/html/techpint/sites/all/modules/views/views.module on line 843.
  • strict warning: Declaration of views_plugin_display_page::options_submit() should be compatible with views_plugin_display::options_submit(&$form, &$form_state) in /home/content/02/6751802/html/techpint/sites/all/modules/views/includes/handlers.inc on line 77.
  • strict warning: Declaration of views_plugin_display_attachment::options_submit() should be compatible with views_plugin_display::options_submit(&$form, &$form_state) in /home/content/02/6751802/html/techpint/sites/all/modules/views/includes/handlers.inc on line 77.
  • strict warning: Declaration of views_handler_sort_broken::ui_name() should be compatible with views_handler::ui_name($short = false) in /home/content/02/6751802/html/techpint/sites/all/modules/views/includes/handlers.inc on line 77.
  • strict warning: Declaration of views_handler_filter_user_name::value_submit() should be compatible with views_handler_filter_in_operator::value_submit($form, &$form_state) in /home/content/02/6751802/html/techpint/sites/all/modules/views/includes/handlers.inc on line 77.
  • strict warning: Declaration of views_handler_filter_user_name::value_validate() should be compatible with views_handler_filter::value_validate($form, &$form_state) in /home/content/02/6751802/html/techpint/sites/all/modules/views/includes/handlers.inc on line 77.
  • strict warning: Non-static method view::load() should not be called statically in /home/content/02/6751802/html/techpint/sites/all/modules/views/views.module on line 843.
  • strict warning: Declaration of views_handler_field_comment_username::init() should be compatible with views_handler_field::init(&$view, $options) in /home/content/02/6751802/html/techpint/sites/all/modules/views/includes/handlers.inc on line 77.
  • strict warning: Declaration of views_handler_filter_boolean_operator::value_validate() should be compatible with views_handler_filter::value_validate($form, &$form_state) in /home/content/02/6751802/html/techpint/sites/all/modules/views/includes/handlers.inc on line 77.
  • warning: Creating default object from empty value in /home/content/02/6751802/html/techpint/sites/all/modules/views/modules/comment/views_handler_field_comment_username.inc on line 33.
  • warning: Creating default object from empty value in /home/content/02/6751802/html/techpint/sites/all/modules/views/modules/comment/views_handler_field_comment_username.inc on line 33.
  • warning: Creating default object from empty value in /home/content/02/6751802/html/techpint/sites/all/modules/views/modules/comment/views_handler_field_comment_username.inc on line 33.
  • warning: Creating default object from empty value in /home/content/02/6751802/html/techpint/sites/all/modules/views/modules/comment/views_handler_field_comment_username.inc on line 33.
  • warning: Creating default object from empty value in /home/content/02/6751802/html/techpint/sites/all/modules/views/modules/comment/views_handler_field_comment_username.inc on line 33.
  • strict warning: Non-static method view::load() should not be called statically in /home/content/02/6751802/html/techpint/sites/all/modules/views/views.module on line 843.
  • strict warning: Non-static method view::load() should not be called statically in /home/content/02/6751802/html/techpint/sites/all/modules/views/views.module on line 843.
  • warning: Creating default object from empty value in /home/content/02/6751802/html/techpint/sites/all/modules/views/modules/comment/views_handler_field_comment_username.inc on line 33.
  • warning: Creating default object from empty value in /home/content/02/6751802/html/techpint/sites/all/modules/views/modules/comment/views_handler_field_comment_username.inc on line 33.
  • warning: Creating default object from empty value in /home/content/02/6751802/html/techpint/sites/all/modules/views/modules/comment/views_handler_field_comment_username.inc on line 33.
  • warning: Creating default object from empty value in /home/content/02/6751802/html/techpint/sites/all/modules/views/modules/comment/views_handler_field_comment_username.inc on line 33.
  • warning: Creating default object from empty value in /home/content/02/6751802/html/techpint/sites/all/modules/views/modules/comment/views_handler_field_comment_username.inc on line 33.
  • warning: Creating default object from empty value in /home/content/02/6751802/html/techpint/sites/all/modules/views/modules/comment/views_handler_field_comment_username.inc on line 33.
1 reply [Last post]
rocker
rocker's picture
User offline. Last seen 6 years 12 weeks ago. Offline
Joined: 11/19/2009

How to Capture / Handle Mouse Movement in c#.NET form.

Vaibhav
Vaibhav's picture
User offline. Last seen 5 weeks 1 day ago. Offline
Joined: 08/19/2009
Here is the code. public

Here is the code.

public Form1( ) 
{ 
    InitializeComponent(); 
 
    this.MouseMove += new MouseEventHandler(Form1_MouseMove); 
} 
 
void Form1_MouseMove(object sender , MouseEventArgs e) 
{ 
    label1.Text= e.Location; 
} 

 

Also take a look at following links.

  1. Mouse and Keyboard library

  2. Handling Mouse Events in C#

Who's online

There are currently 0 users and 7 guests online.

Recent Answers

Anonymous added a answer to 301 Redirect in asp.net (18 weeks 1 day ago)
 
Anonymous added a answer to 301 Redirect in asp.net (18 weeks 2 days ago)
 
Anonymous added a answer to 301 Redirect in asp.net (18 weeks 3 days ago)
 
Anonymous added a answer to 301 Redirect in asp.net (18 weeks 3 days ago)
 
Anonymous added a answer to 301 Redirect in asp.net (18 weeks 4 days ago)
 
Anonymous added a answer to 301 Redirect in asp.net (18 weeks 4 days ago)