Vb.net form
-
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
-
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
Set the border style to FixedDialog.
-
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
-
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.
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.
-
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.
-
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.
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. :-)