using vb.net, and this may have been discussed before but I could not find an answer in the forum
I have a form that is an MDI child that has a gdviewer control on it. I have anchored the control on all 4 sides so that it resizes with the form. If the viewer has a loaded image, and the form is resized I get a "unable to render this image error" .
I have also tried just anchoring top/left and then tried to resize via code in one of the forms resize events, but I still get the same error
Is there a way to resize the viewer when the form is resized?
Code: Select all
Dim ImageID As Integer = GDP.CreateGdPictureImageFromFile(filepath) GdViewer1.DisplayFromGdPictureImage(ImageID) GDP.ReleaseGdPictureImage(ImageID) '<--- why I did this I have no idea, caused the issue
Who is online
Users browsing this forum: No registered users and 7 guests