how to fix the size of a window?

hi

there is a windows form
i want to fix it's size , in a way , that user can't maximize or minimize it.
for example a window to ask username and password , it shouldn't be sizable.
i set the formborderstyle property to fixedtoolwindow , but if user double clicks the frame, it will be maximize!
how can i fix it

thank u


Answer this question

how to fix the size of a window?

  • MABrandt

    Hi,

    I guess its not possible. That's the default behavior of windows forms. Unless if you turn-off the title bar your window couldn't fix its location...

     

     

    cheers,

    Paul June A. Domag



  • michal krawczyk



    thank u

  • Bearc0025

    the other q is:


    in windows forms , users can click on the frame of forms , and move them to any position of the page .
    but i want to fix the position of forms.
    how

    thank  u


  • AndyReddy

    Hi,

    Just set the maximum size and the minimum size of your form (the same values).

     

     

     

    cheers,

    Paul June A. Domag



  • how to fix the size of a window?