GoView.ShowsNegativeCoordinates

Hi,

I would like to prevent user the user from scrolling to negative coordinate positions in the document. But I need to have
SheetStyle still set to GoViewSheetStyle.Sheet.
Because of this GoView.ShowsNegativeCoordinates has no effect.
Is there a way to overcome this problem still keeping view's sheetstyle
as it is above?
Thanks and Regards,
Nagaraj.

Try this

[code]goView1.SheetStyle = GoViewSheetStyle.None; // this is the default value
goView1.ShowsNegativeCoordinates = false;
goView1.BackgroundHasSheet = true;
goView1.Sheet.Visible = true;

[/code]

Jake,

I don't really understand what is the sheetStyle is all about but when you set it to GoViewSheetStyle.Sheet the scrollbars start working correctly. i just have problem with the negative coordinates. if i have no choice then i'll render my entities relating to the negative start position and not relating to zero.l ill try to programmatically scroll my top left position to the negative top-left position so the scrollbars will not show this extention. is there a simple way for me to calculate the negative length (gap between zero and min value on X axis and min value on Y axis)?
hope my question was clear.
your solution (the link you gave me) didn't work well for me.
Thanks again,
Adi

You can look at GoView.DocumentTopLeft and GoView.DocPosition. Note the current Scale has an effect on this.