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. Vb.net form

Vb.net form

Scheduled Pinned Locked Moved Visual Basic
csharpquestion
6 Posts 3 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.
  • E Offline
    E Offline
    eshban284
    wrote on last edited by
    #1

    I make a form in vb.net. I set its window state property to "Maximized". Means my form will open in "FULL SCREEN". I also set property "Form Border style " to fixed, so that my form cannot be moved or resized. But after applying properties, my form still be resized and movable. How can i restrict my form, so that it cannot be moved or resized. Kindly reply me soon Eshban EsHbAn BaHaDuR EsHbAn BaHaDuR

    R H 2 Replies Last reply
    0
    • E eshban284

      I make a form in vb.net. I set its window state property to "Maximized". Means my form will open in "FULL SCREEN". I also set property "Form Border style " to fixed, so that my form cannot be moved or resized. But after applying properties, my form still be resized and movable. How can i restrict my form, so that it cannot be moved or resized. Kindly reply me soon Eshban EsHbAn BaHaDuR EsHbAn BaHaDuR

      R Offline
      R Offline
      rwestgraham
      wrote on last edited by
      #2

      Set the border style to FixedDialog.

      1 Reply Last reply
      0
      • E eshban284

        I make a form in vb.net. I set its window state property to "Maximized". Means my form will open in "FULL SCREEN". I also set property "Form Border style " to fixed, so that my form cannot be moved or resized. But after applying properties, my form still be resized and movable. How can i restrict my form, so that it cannot be moved or resized. Kindly reply me soon Eshban EsHbAn BaHaDuR EsHbAn BaHaDuR

        H Offline
        H Offline
        H is here
        wrote on last edited by
        #3

        If you set the FormBorderStyle to FixedSingle the form cannot be resized. There is no property to set the movable state of the Form. Not in VB.Net, only on VB6.

        R 1 Reply Last reply
        0
        • H H is here

          If you set the FormBorderStyle to FixedSingle the form cannot be resized. There is no property to set the movable state of the Form. Not in VB.Net, only on VB6.

          R Offline
          R Offline
          rwestgraham
          wrote on last edited by
          #4

          Fixed single prevents resizing but it does not enforce the maximized form state which is the objective as I understand the post. You could disable the maximize button. In which case you might as well use FixedDialog.

          H 1 Reply Last reply
          0
          • R rwestgraham

            Fixed single prevents resizing but it does not enforce the maximized form state which is the objective as I understand the post. You could disable the maximize button. In which case you might as well use FixedDialog.

            H Offline
            H Offline
            H is here
            wrote on last edited by
            #5

            but it does not enforce the maximized form state which is the objective Doesn't enforce? What do you mean by that? You can set the WindowState Property to Maximied and the form will start maximized on FormBorderStyle = Fixed Single or on FixedDialog.

            R 1 Reply Last reply
            0
            • H H is here

              but it does not enforce the maximized form state which is the objective Doesn't enforce? What do you mean by that? You can set the WindowState Property to Maximied and the form will start maximized on FormBorderStyle = Fixed Single or on FixedDialog.

              R Offline
              R Offline
              rwestgraham
              wrote on last edited by
              #6

              Start a form up with FixedSingle, Window State maximized. Then click the Maximize button in the form's control box. You'll figure it out. :-)

              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