Welcome to Dream.In.Code
Become a C# Expert!

Join 150,417 C# Programmers for FREE! Get instant access to thousands of C# experts, tutorials, code snippets, and more! There are 1,058 people online right now. Registration is fast and FREE... Join Now!




block resizing of windows form on double click title bar

 
Reply to this topicStart new topic

block resizing of windows form on double click title bar, block resizing of windows form on double click title bar

Rajasree
27 Mar, 2008 - 11:50 PM
Post #1

New D.I.C Head
*

Joined: 27 Feb, 2008
Posts: 10

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.?
User is offlineProfile CardPM
+Quote Post

zakary
RE: Block Resizing Of Windows Form On Double Click Title Bar
28 Mar, 2008 - 04:54 AM
Post #2

D.I.C Regular
Group Icon

Joined: 15 Feb, 2005
Posts: 420



Thanked: 8 times
Dream Kudos: 175
My Contributions
you can disable the minimize button by using this.MinimizeBox = false;
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/9/09 08:14PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live C# Help!

C# Tutorials

Reference Sheets

C# Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month