Friday, October 21, 2011

Write a program in C#.net for the smart device application for Mouse event handling.


Write a program in C#.net for the smart device application for Mouse event handling.
 Nagpur University MCA V Semester, C#.Net, Embedded System Programming, Nagpur University Practical MCA V SEM

using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace _9.mouse_event
{
    public partial class Form1 : Form
    {
        int x, y;
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_MouseDown(object sender, MouseEventArgs e)
        {
            x = MousePosition.X;
            y = MousePosition.Y;
            lblmessage.Text = " MOUSE DOWN EVENT OCCURED  POSITION : "+x +" "+y;

        }

        private void Form1_MouseMove(object sender, MouseEventArgs e)
        {
            x = MousePosition.X;
            y = MousePosition.Y;
            lblmessage.Text = " MOUSE MOVE EVENT OCCURED  POSITION : " + x + " " + y;
        }
        private void Form1_MouseUp(object sender, MouseEventArgs e)
        {
            x = MousePosition.X;
            y = MousePosition.Y;
            lblmessage.Text = " MOUSE UP EVENT OCCURED  POSITION : " + x + " " + y;
        }
    }
}
 


Write a program in C#.net for the smart device application for Mouse event handling.
Nagpur University MCA V Semester, C#.Net, Embedded System Programming, Nagpur University Practical MCA V SEM



Write a program in C#.net for the smart device application for Mouse event handling.
Nagpur University MCA V Semester, C#.Net, Embedded System Programming, Nagpur University Practical MCA V SEM


No comments:

Post a Comment

Popular 5 Posts Last 7 days