Login required to post messages or search forums!
Hello,WinFormResizer assumes that the "dynamicValue" you specify for height is proportional to the current Form's size unless otherwise told.For example, if you specify a height of 10 while the Form is maximized, restoring the Form to its normal size will cause the problems you are seeing.The way to change a PictureBox control's height "manually" at run time is to modify it's InitialSize property:C#:// Get a reference to the PictureBox's current InitialSizeSize szInitial = winFormResizer1.Extenders[pictureBox1].ExtendedLayout.InitialSize;// Set the PictureBox's new height by specifying its new size based on its current initial width and// new height.winFormResizer1.Extenders[pictureBox1].ExtendedLayout.InitialSize = new Size(szInitial.Width, NewHeight);// Update the Target (Form)winFormResizer1.UpdateTarget();VB.NET:' Get a reference to the PictureBox's current InitialSizeDim szInitial As Size = winFormResizer1.Extenders(pictureBox1).ExtendedLayout.InitialSize' Set the PictureBox's new height by specifying its new size based on its current initial width and' new height.winFormResizer1.Extenders(pictureBox1).ExtendedLayout.InitialSize = new Size(szInitial.Width, NewHeight)' Update the Target (Form)winFormResizer1.UpdateTarget()This link (DnxPictureBoxes.zip) points to a simple VS 2005 (C#) example solution containing 10 picture box controls that have their Sizes manually modified at run time.Regards, Fengari Software Support