Hello, ddanbe.
I was playing with your code ... I'm not sure, that this is what are you looking for:
this.AutoScroll = true;
if (ColumnCount > cMaxCol)
{
CC = cMaxCol;
RC = this.RowCount;
ColScr = 0;
}
else if (RowCount > cMaxRow)
{
CC = this.ColumnCount;
RC = cMaxRow;
RowScr = 0;
}
else
{
this.AutoScroll = false;
CC = this.ColumnCount;
RC = this.RowCount;
}