I want make my form (with some size) in centerPDA. How i make it?

  • Thread starter Thread starter Igor Sharapoff
  • Start date Start date
I

Igor Sharapoff

In embedded VB3 for it, i set Form property "FormResize" to "VBFormUserSize". All is OK.

In VisualStudio2003 C# (project for smart devices ), i set Form property "FormBorderStyle" to "Sizable". And not effect.
 
Igor Sharapoff said:
In VisualStudio2003 C# (project for smart devices ), i set Form
property "FormBorderStyle" to "Sizable". And not effect. Attachment
decoded: untitled-1.txt
I don't quite know what you want to do, but on PPC, if FormBorderStyle =
FormBorderStyle.None, results in forms that have no border or title bar.
These can be resized or moved, but only programmatically, not by user

Default is FormBorderStyle.FixedSingle or any other values than None will
create forms that fill entire desktop area and cannot be moved.

If you want to centre the form use this snippet:

Rectangle screen = Screen.PrimaryScreen.Bounds;
this.Location = new Point((screen.Width - this.Width) / 2,
(screen.Height - this.Height ) / 2);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top