I wanted to draw a pixel on a specific place in my form when I press a specific key in my keyboard. how can I do that? here's a snippet code from my project:
private void paint(object sender, PaintEventArgs e) { int x = 5, y = 5; e.Graphics.FillRectangle(Brushes.Black, new Rectangle(55, 55, x, y));}