Sergey Hrushev schrieb:
> But the dimensions of the form on screen were different from ones I
> specified in SetBounds.
> I tried to look for something like StartPosition but for size (StartSize or
> something),
> but it seems nothing exists for this.
> Does anybody know how this problem can be solved?
If the form is bigger than specified, this may be a problem with
autoscaling. Do you have a high dpi setting? Does the problem occur if
you change the display settings to normal (96dpi)?
If so, than you should read this article:
http://msdn.microsoft.com/en-us/library/ms229605.aspx
I don't have a simple "click that option and it works" solution, because
I depends how you would like to handle those situations (high dpi
settings, large font settings, ...). Do you resize your form and your
content? Only your content, but not your form? Do you ignore it
completely and override the user preferences? Not a simple problem.
Hope to help,
Bernd Rausch