KeyUp Event

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
histry
Newbie
Newbie
Posts: 79
Joined: Thu Aug 10, 2006 12:00 am

KeyUp Event

Post by histry » Thu Dec 14, 2006 7:14 pm

Should the Alt Key raise a KeyUp event? In an application that I am working on I need to trap the event for when the Alt key is released.

Thanks

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Dec 20, 2006 1:06 pm

Hi histry,

As told in this MSDN's page you can do something like this:

Code: Select all

    private void tChart1_KeyUp(object sender, KeyEventArgs e)
    {
      MessageBox.Show(e.Alt.ToString());
    }
And then do a Alt+C (or whatever).

With Alt key alone you can use:

Code: Select all

    private void tChart1_KeyUp(object sender, KeyEventArgs e)
    {
      MessageBox.Show(e.KeyValue.ToString());
    }
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply