I am stumped on this problem. I have an image that is in Panel1 of the form's SplitContainer. The image is a TIFF file that is contained in the "old" Kodak Image Control (axImgEdit1). When the form is opened the image is properly displayed, but when you maximize the form by clicking the "max icon" (upper left corner of form), the image doesn't resize and fill Panel1. Everything resizes except the image which stays its original size!
This normally works. I have another program that uses the same code to display a TIFF image and the image resizes correctly to fill the max form. I've checked my code and everything is identical!
Here's the code to display the image:
axImgEdit1.Image = currentPath;
axImgEdit1.DisplayScaleAlgorithm = ImgeditLibCtl.DisplayScaleConstants.wiScaleOptimize;
//this.Dock = DockStyle.Fill;
axImgEdit1.FitTo(0);
axImgEdit1.Display();
I tried the "this.Dock = DockStyle.Fill" but it didn't help. I tried removing the Kodak Image Control and reloading it but no fix. I've triple-checked the other program and the code AND control settings are identical!
Any ideas would be greatly appreciated.
Thanks, Bob