long FromScrollPos(int value)
{
int max = 65535;
if (_scrollVmax < max)
{
return value;
}
else
{
double valperc = value / (double)max * 100;
long res = (int)Math.Floor(_scrollVmax / (double)100 * valperc);
return res;
}
}