In my application, when I change zoom factor from 100% to 500% of current view, then scroll the horizontal scroll bar to the end and then again 500% to 100%, then nothing is displayed on view.But when I just click on horizontal scroll bar, then all objects are automatically displays in the same view.
Can you please let me the reason?
How can I resolve this issue so that all objects are displayed without click on horizontal scroll bar?
Setting DocScale doesn’t change DocPosition… there are a lot of different models for how scaling changes perspective, so we don’t try to guess.
However, when setting DocPosition, it does try to keep the view within the document… so, the unlikely line:
goView.DocScale = 1;
goView.DocPosition = goView.DocPosition;
should fix your problem. Give it a try.