private void imagePanel1_MouseClick(object sender, MouseEventArgs e) { if (comboBox1.Items.Count > 0) { // e.X & e.Yare used to get MousePositionX and MousePositionY //Rect = new Rectangle(e.X, e.Y, 1200, 100); //this.Invalidate(); // int X2; Graphics g = imagePanel1.CreateGraphics(); g.DrawRectangle(new Pen(Brushes.Black), new Rectangle(new Point(e.X, e.Y), new Size(1200, 45)));
YourContainer.VerticalScroll.Value
YourContainer.HorizontalScroll.Value
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)