mouse
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace mouse
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void btnmouse_MouseDown(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
this.lblmouse.Text = "izquierda";
}
else
if (e.Button == MouseButtons.Middle)
{
this.lblmouse.Text = "centro";
}
else
if (e.Button ==MouseButtons.Right)
{
this.lblmouse.Text = "derecha";
}
}
}
}
0 Response to "mouse"
Publicar un comentario