So, this what I was thinking, please let me know if there's a better way because I'm not quite geting the results I want.
In the ZoomChange method I'm trying this:
Code: Select all
If gdViewer1.isRectDrawed = vbTrue Then
If iWid > 200 And iHgt > 200 Then
' do nothing, go ahead and zoom on the rect
Else
' if zoom rectangle is too small cancel the zoom
Me.gdViewer1.ClearRect
End If
End If
Do you have a better of doing this (or one that works where it will ignore the zoom and leave the image alone)?
Thanks!!
Crystal