0

I’ve developed a VB application. Now I want to disabled resizing the form. I know there is a property “Border style”, which changes to fixed single, can do my work. But I want minimize button to my form. Minimize button is only in “Sizable” mode. I changed another property “MaxButton” to false. When I run my program, still I can resize the form.
PLEASE TELL ME HOW TO DISABLE RESIZING THE FORM.

5
Contributors
12
Replies
13
Views
4 Years
Discussion Span
Last Post by weeraa
Featured Replies
  • 1

    You can capture the form resizing event then set the form into normal size. Private Sub Form_Resize() If (Me.WindowState <> vbMinimized) Then Me.Width = 4800 Me.Height = 3600 End If End Sub And set max button to false. Read More

  • 1

    OP = "Original Poster"...the person who started the thread. Read More

0

Make your border style to none. Then use the whatever graphics you want to use. Do total customization. Make your own window.
To move mouse see the last post in this thread. If you want comments I will explain the code.

0

To move mouse see the last post in this thread. If you want comments I will explain the code.

I mean to move form, sorry. :D i was in hurry.

1

You can capture the form resizing event then set the form into normal size.

Private Sub Form_Resize()
    If (Me.WindowState <> vbMinimized) Then
        Me.Width = 4800
        Me.Height = 3600
    End If
End Sub

And set max button to false.

0

Hi,
Set BorderStyle of the form to :
1 -Fixed Single

Regards
Veena

@ veena : I think the OP was do that.

0

@Jx_Man,

Yes... I did not read the question properly...
Your solution works perfect..

Regards
Veena

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.