block resizing of windows form on double click title bar

block resizing of windows form on double click title bar

Page 1 of 1

1 Replies - 15058 Views - Last Post: 28 March 2008 - 05:54 AM Rate Topic: -----

#1 Rajasree  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 10
  • Joined: 27-February 08

block resizing of windows form on double click title bar

Posted 28 March 2008 - 12:50 AM

Hi,

I have set the wondows form property as formborderstyle = fixedDialog and Locked = true

but still if we double click on the title bar , the window is maximizing.

I dont want to allo resizing.

in the initialize component , i have given

this.MinimumSize = this.Size;
this.MaximumSize = this.MinimumSize;

but when form loads ,it comes in the left corner of the screen.
but i want to show the window in the centre oof screen.

Can anybody help me out.?

Is This A Good Question/Topic? 1

Replies To: block resizing of windows form on double click title bar

#2 zakary  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 27
  • View blog
  • Posts: 427
  • Joined: 15-February 05

Re: block resizing of windows form on double click title bar

Posted 28 March 2008 - 05:54 AM

you can disable the minimize button by using this.MinimizeBox = false;
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1