You can create a borderless form by setting the FormBorderStyle property to None. Borderless forms can't be moved. However, they also lack any kind of border-if you want the customary blue border, you'll need to add it yourself either with manual drawing code or by using a background image.
There's one other approach to creating an immovable form that provides a basic control-style border. First, set the ControlBox, MinimizeBox, and MaximizeBox properties of the form to false. Then set the Text property to an empty string. The form will have a raised gray border or black line (depending on the FormBorderStyle option you use), similar to a button. Below figure shows both types of immovable forms.
No comments:
Post a Comment