Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. How the disable the resize function of a form

How the disable the resize function of a form

Scheduled Pinned Locked Moved Visual Basic
csharpquestion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MJay
    wrote on last edited by
    #1

    as topic, i wan to disable to user from resize the form size.. anyway can do this? anyhelp is appreciated... VB.NET

    G A S 3 Replies Last reply
    0
    • M MJay

      as topic, i wan to disable to user from resize the form size.. anyway can do this? anyhelp is appreciated... VB.NET

      G Offline
      G Offline
      Guillermo Rivero
      wrote on last edited by
      #2

      1. Change the FormBorderStyle Property of the form to FixedSingle or FixedDialog 2. Override the OnResize method and set the size to be constant. Free your mind...

      1 Reply Last reply
      0
      • M MJay

        as topic, i wan to disable to user from resize the form size.. anyway can do this? anyhelp is appreciated... VB.NET

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        In VB.Net form, under Properties of the form, you should set the Maximize button to "FALSE" and there is a Minimumzise & Maximumsize that you need to supply its values in order to disable the maximize button, e.g form size is 300X300, so set Minimumsize to 300 & maximumsize to 300...

        1 Reply Last reply
        0
        • M MJay

          as topic, i wan to disable to user from resize the form size.. anyway can do this? anyhelp is appreciated... VB.NET

          S Offline
          S Offline
          superwinsock
          wrote on last edited by
          #4

          If you haven't resolved this yet..... 'In the Resize event of your form set the size properties to be constant Private Sub MDIForm_Resize() On Error GoTo Handler With Me .Height = g_lngHeight + 1425 .Width = g_lngWidth + 180 .Top = 0 End With Exit Sub Cliff

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups