I am quite new to c#, and the first thing i want to do is being familiar with that environment by trying Key's Combination Events. In particular, alt+k. I'm working on Microsoft Visual c# 2010 Express. I want to test if that code works. If errors are found, please notify me :)
public void begin(object sender, KeyEventArgs ev)
{
if (ev.KeyCode == Keys.K && ev.Modifiers == Keys.Alt)
{
//display a message
}
}
but even if I know theoretically what are the different models of projects that are proposed when clicking on new project and what are their uses, I tried unsuccessfully several models to test that code. In short, i don't know what models to choose and where to put code for testing that kind of simple code, and more precisely working on events(key+mouse) with a minimalist gui. Someone could help me to tell me how to concretly get started with events stuff in c#? Thks in advance :)