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.
weeraa
0
Light Poster
Recommended Answers
Jump to PostIf its not big deal customise your form, that will be best for you.
Jump to PostYou 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.
Jump to PostOP = "Original Poster"...the person who started the thread.
All 12 Replies
Sahil89
0
Newbie Poster
weeraa
0
Light Poster
Sahil89
0
Newbie Poster
Sahil89
0
Newbie Poster
Jx_Man
987
Nearly a Senior Poster
Featured Poster
QVeen72
104
Posting Shark
Jx_Man
987
Nearly a Senior Poster
Featured Poster
QVeen72
104
Posting Shark
Sahil89
0
Newbie Poster
BitBlt
452
Practically a Master Poster
Featured Poster
Sahil89
0
Newbie Poster
weeraa
0
Light Poster
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.