I have 2 textboxes in the form textbox1 and textbox2 (Yeah was pretty lazy) and the task of creating a copy and paste like function for the application (for practice reasons)
but I have no idea how the program will determine which textbox is currently the active one
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void Form1_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.F1) //Copy
{
}
else if (e.KeyCode == Keys.F2) //Paste
{
}
}
}