0
I have an error of lack of use of Directive or a Assembly Reference aimed atKeyCodand Modifiers
Can anyone tell me what it would be and how I can carry it ?
private void lblAutoCod_MouseClick(object sender, MouseEventArgs e)
{
if (e.KeyCode == Keys.C && e.Modifiers == Keys.Control)
{
MessageBox.Show("You pressed ctrl + c");
}
}
The purpose is to make who in a click on a label the text is copied.

Exactly! I was just going to say that. What’s the point of trying to capture a key (from the keyboard) in an event fired when a mouse click occurs?
– Jéf Bueno
I know... it makes sense now. So maybe my reasoning isn’t getting where I really want to go. Maybe a completely different question would help me. Ex: In an Event
Mouse_Clickon top of a label, thetextoof that Label be copied (as if I had given one CTRL+C in thetextolabel) ..– Maurício Sanches
Yeah, better try another question.
– Leonel Sanches da Silva