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.

If its not big deal customise your form, that will be best for you.

Please tell me how to do it....

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.

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.

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.

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

Regards
Veena

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

Regards
Veena

@ veena : I think the OP was do that.

@Jx_Man,

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

Regards
Veena

I think the OP was do that.

what is OP? I dont know

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

Thanks BitBlt

Thank you very much guys for your help...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.