4 Replies - 294 Views - Last Post: 25 July 2013 - 10:03 AM Rate Topic: -----

#1 fugio  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 27
  • Joined: 21-July 13

how to change the default size of the form?

Posted 24 July 2013 - 10:10 PM

hi there.
I have a form that FormborderStyle is none put it, after I create forms like resizing the original form, but its default size does not change when scaled
how to change the default size of the form?
for example, the default size of the media player in window 7
Thank you !
Is This A Good Question/Topic? 0
  • +

Replies To: how to change the default size of the form?

#2 Momerath  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 1010
  • View blog
  • Posts: 2,444
  • Joined: 04-October 09

Re: how to change the default size of the form?

Posted 24 July 2013 - 11:51 PM

Not sure what you are asking here but you can change the default size of form and controls by dragging the edges in the designer. If you are talking about resizing the controls when the form is resized, during runtime, then either you'll have to handle that or use docking to make things 'stick' to the edges.
Was This Post Helpful? 0
  • +
  • -

#3 fugio  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 27
  • Joined: 21-July 13

Re: how to change the default size of the form?

Posted 25 July 2013 - 02:08 AM

Thank you !
I want a desired size and can not be shrink by the default size
Posted Image
Was This Post Helpful? 0
  • +
  • -

#4 Skydiver  Icon User is online

  • Code herder
  • member icon

Reputation: 3556
  • View blog
  • Posts: 11,027
  • Joined: 05-May 12

Re: how to change the default size of the form?

Posted 25 July 2013 - 05:59 AM

If you take time to look at the documentation instead of just depending on Intellisense and the Designer, I think that you will discover that there are properties that lets you define the minimum (and maximum) window sizes:
Form.MinimumSize: http://msdn.microsof...inimumsize.aspx
window.MinWidth & window.MinHeight: http://msdn.microsof...properties.aspx
Was This Post Helpful? 0
  • +
  • -

#5 fugio  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 27
  • Joined: 21-July 13

Re: how to change the default size of the form?

Posted 25 July 2013 - 10:03 AM

thank you very much, now I do not have to worry.

this.MinimumSize = new Size(400,400);
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1