CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Jul 2001
    Posts
    41

    Form resizing arrow

    I have an MDI application with one Main form and 5 child forms. I am not getting the resizing arrow ( when moved the cursor at the ends of the form) for the child forms which facilitates the resizing of the form. I have set the Controlbox property of the each child form to be false so that those buttons do not appear on the form title bar. But the border style of the form is sizable.

    Can any body please tell me what is the reason.

    Thanks in advance.

    Goutam.


  2. #2
    Join Date
    Jun 2001
    Location
    Israel
    Posts
    228

    Re: Form resizing arrow

    in the MDI form write:

    Form1.BorderStyle = 1 ' (1 - Fixed Single)
    '(form1-child form)



    you can look for more suitable borderstyles in the forms BorderStyle property at design time

    ----------
    The @host is everywhere!
    ----------

  3. #3
    Join Date
    Jul 2001
    Posts
    41

    Re: Form resizing arrow

    Hello deghost

    Thanks for prompt reply. If set the border style of Form1 to Fixed single then I can not resize the form1 in run time. My requirement is that I should be able to resize the form at run time and I should get the Mouse (double arrow) handle to resize the form. Right now I am able to resize the form but not getting the double arrow mouse pointer when I move the mouse over the borders of the form.

    Thanks
    Goutam



  4. #4
    Join Date
    Jun 2001
    Location
    Israel
    Posts
    228

    Re: Form resizing arrow

    I don't quite get you, please write more clearly what do you want: with/without the arrows.
    if you want with arrows use Sizable BorderStyle, if you don't want them, use FixedSingle. anyway you can resize the form at run time.
    you can also choose both FixedSingle BorderStyle and false ControlBox if that's what you want

    ----------
    The @host is everywhere!
    ----------

  5. #5
    Join Date
    Jul 2001
    Posts
    41

    Re: Form resizing arrow

    Hello deghost,

    My requirement is as follows.
    1)I want the form to be resizable. Hence I have selected the border style of the form to be Sizable. In runtime I am able to resize the form also. This is fine.
    2)I want to get the double arrow pointer which indicates that the form is resizable (which you get for any normal window application when the cursor is brought on to the borders of the window). I am not getting this. The mouse pointer/cursor is not getting changed to double arrow pointer from the default cursor (VBarrow)when it is brought on to the borders of the form.

    Thanks
    Goutam


  6. #6
    Join Date
    Jun 2001
    Location
    Israel
    Posts
    228

    Re: Form resizing arrow

    This is very strange, if i understood you right this time, you just want the MDIchild form work like a regular form (in the resizing arrows stuff). i tried just to make a new MDI form, an MDIchild form and wrote form1.show (the child). it showed the form with the resizing arrows. you can also resize it at runtime.
    try creating a similar simple example and see if it works...

    ----------
    The @host is everywhere!
    ----------

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