CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    May 2002
    Location
    Ukraine
    Posts
    228

    Question How to disable resizing of a form?

    Hi!
    I have a question:

    How to disable resizing of a form?
    (ie a user cannot pulls body by the mouse)

    Thanks for help,
    Alex.

  2. #2
    Join Date
    Apr 2002
    Location
    Egypt
    Posts
    2,210

    Re: How to disable resizing of a form?

    Hi
    Change the form's FormBorderStyle property to Fixed3D or FixedDialog
    Hesham A. Amin
    My blog , Articles


    <a rel=https://twitter.com/HeshamAmin" border="0" /> @HeshamAmin

  3. #3
    Join Date
    Oct 2002
    Location
    Timisoara, Romania
    Posts
    14,360

    Re: How to disable resizing of a form?

    You probably also want to set MaximizeBox and MinimizeBox properties to False.
    Marius Bancila
    Home Page
    My CodeGuru articles

    I do not offer technical support via PM or e-mail. Please use vbBulletin codes.

  4. #4
    Join Date
    May 2002
    Location
    Ukraine
    Posts
    228

    Re: How to disable resizing of a form?

    Quote Originally Posted by hspc
    Hi
    Change the form's FormBorderStyle property to Fixed3D or FixedDialog
    thanks,
    it works.

  5. #5
    Andy Tacker is offline More than "Just Another Member"
    Join Date
    Jun 2001
    Location
    55°50' N 37°39' E
    Posts
    1,503

    Re: How to disable resizing of a form?

    Another way is to set the maximum and minimum size of dialog box.
    If you think you CAN, you can, If you think you CAN'T, you are probably right.

    Have some nice Idea to share? Write an Article Online or Email to us and You may WIN a Technical Book from CG.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured