C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




window form resize runtime


Posted Date: 05 Aug 2008      Total Responses: 2

Posted By: sankar       Member Level: Silver     Points: 1



Hi,
I dont want to allow window forms resize at run time(.net 2005)
regards,
sankar





Responses

Author: akku    05 Aug 2008Member Level: SilverRating:     Points: 3

Try this

' Visual Basic
Form1.Size = New System.Drawing.Size(100, 100)

// C#
Form1.Size = new System.Drawing.Size(100, 100);

// C++
Form1->Size = System::Drawing::Size(100, 100);



Author: Ganesh Kumar    06 Aug 2008Member Level: BronzeRating:     Points: 3

Hi Sankar,
Yes. I found the answer. I changed the "FormBorderStyle" property to "FixedSingle". It wont allow the user to resize the form at runtime.

Regards,
Ganesh.



Post Reply
You must Sign In to post a response.
Next : how to write the validations for usercontrol in windows form in c#
Previous : Windows Form - Resize at runtime problem
Return to Discussion Forum
Post New Message
Category: Windows

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use