#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2012
    Posts
    28
    Rep Power
    0

    How to fix the form size ?


    I just want to disable the form top and bottom anchors whereas for right and left anchors i want it to be in enable state....

    Is it possible ?

    What are all the changes i have to made ... ?

    Thanks in advance....
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jan 2006
    Location
    Carlsbad, CA
    Posts
    2,055
    Rep Power
    383
    Not sure what you are trying to do.
    Anchors for a form do not make much sense unless the form is embedded in another form
    or, possibly, if this is an old style MDI application.

    If you are simply wanting to control the vertical height of the form (as oppose to its position)
    take a look at the Constraints property (MaxHeight, MinHeight).

    If you actually want to force its position on the screen, I think you may have to resort
    to code in the onResize event.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2012
    Posts
    28
    Rep Power
    0
    Originally Posted by clivew
    Not sure what you are trying to do.
    Anchors for a form do not make much sense unless the form is embedded in another form
    or, possibly, if this is an old style MDI application.

    If you are simply wanting to control the vertical height of the form (as oppose to its position)
    take a look at the Constraints property (MaxHeight, MinHeight).

    If you actually want to force its position on the screen, I think you may have to resort
    to code in the onResize event.

    Thanks a lot..
    i did the changes on Constraints property,as u said...
    I got the result what I'm looking for....

IMN logo majestic logo threadwatch logo seochat tools logo