I've 2 buttons, 1 PictureBox and 1 Panel. PictureBox's inside of the Panel and Panel's AutoScroll property is set to "true". Also PictureBox Dock property is set to "Fill".
How can I make it? Any example for this thread?
My Best Regards...
Important: Please don't give advise using existing files! I'm not using them.
Disclaimer: Not tested.
1- Set your panel's AutoScroll property to true:
this.panel1.AutoScroll = true;
2- Set SizeMode property of your picturebox to AutoSize:
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
That should do the trick.
If you still have problems, there are some workaround mentioned in the following pages:
http://forums.techarena.in/software-development/1305463.htm
http://www.eggheadcafe.com/community/aspnet/2/10020769/picturebox.aspx
If you
To do that, you need to change the PictureBox's Dock to None, then set the size yourself.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With