S
Sergey Hrushev
Hello All!
I found quite strange problem with a Form from System.Windows.Forms:
What I need is the borderless Form which must have initial dimensions and
position
specified by application (i.e. not default ones).
So for my form I've specified FormBorderStyle = None and StartPosition =
Manual.
After that I've called SetBounds(...) for it and made it visible with
Visible = true.
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.
From other side when I've tried to set Visible = true at first and then
SetBounds(...) all was working correctly.
But this causes so terrible flickering that this method seems to be
unusable.
Does anybody know how this problem can be solved?
Best regards,
Sergey Hrushev.
I found quite strange problem with a Form from System.Windows.Forms:
What I need is the borderless Form which must have initial dimensions and
position
specified by application (i.e. not default ones).
So for my form I've specified FormBorderStyle = None and StartPosition =
Manual.
After that I've called SetBounds(...) for it and made it visible with
Visible = true.
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.
From other side when I've tried to set Visible = true at first and then
SetBounds(...) all was working correctly.
But this causes so terrible flickering that this method seems to be
unusable.
Does anybody know how this problem can be solved?
Best regards,
Sergey Hrushev.