C # Windows programming (1) message box and form

xiaoxiao2021-03-05  28

One message box refers to the MessageBox indicates that the button is displayed, and the Icon is displayed. It returns the value and Delphi is an enumeration type. The two window window Inherits SHOW and HIDE methods, Show indicates that hide means hidden. There is also a text property indicating the text to be displayed. For the window, the text box is the text to edit. Just define the window, just put the form to the Application, Application is responsible for creating a form, otherwise you must display the creation of the creation and call the show method to see the form. In a single form, if you want a form of task, use Thread.sleep (2500), examples Pause 2.5 seconds.

Several common properties: 1, StartPosition indicates that the form is displayed in that position. Its value formstartPosition enumeration type. CenterParent form is in its parent form. The CenterScreen Form is in the current display window, which is specified in the form size. The location of the Manual Form is determined by the Location property. The WindowsDefaultBounds form is located in the Windows default location, and its boundaries are also determined by default by Windows. WindowsDefaultLocation Forms are located in the Windows default location, which is specified in the form size. 2, FormBorderstyle This enumeration is used by the Form class. It represents the different styles of the form. The default style is Sizable.

Fixed3D fixed three-dimensional border. FixedDialog fixed dialog style crude box. Fixedsingle fixed single line border. FIXEDTOOLWINDOW does not adjust the size of the tool window border. The tool window does not appear in the taskbar and does not appear in the window that appears when the user appears in Alt Tab. None border. Sizable adjusts the size of the border. SizAbleToolWindow can adjust the size of the tool window border. The tool window does not appear in the taskbar and does not appear in the window that appears when the user appears in Alt Tab.

转载请注明原文地址:https://www.9cbs.com/read-32488.html

New Post(0)