-
There are two optional values for this property: 0-flat means that it is not displayed in 3D when the form is running, and 1-flat means that it is displayed in 3D when the form is running.
2) backcolor and forecolor attributes.
Set or return to the form foreground and background colors. **The settings are as follows:
form1. backcolor=vbcolor
form1. forecolor=vbcolor
3) bordertyle attributes.
The property is set to the boundary type of the form as follows:
The meanings of the individual values are as follows:
0- The none form has no border.
1- Fixed single fixed border, no maximize and minimize buttons, immutable when the form runs.
2- Sizeable defaults, two-line borders, with maximize and minimize buttons, variable form runtime.
3- Fixed dialog two-line border, no maximize and minimize buttons, immutable when the form runs.
-
There are three types of object properties: read-only properties, runtime read-only properties, and read-write properties.
Read-only attributes: These properties can only read information from them, not assign values, either at program design time or when the program is running.
Runtime read-only properties: These properties can set their values through the properties window when the program is designed, but their values can no longer be changed while the program is running.
Read-write property: This property can be read and written at both design time and runtime.
-
It is easier to understand by learning how to apply it first and then experiencing it through examples.
If it's for the exam, then there's no way but rote memorization. There are many, many words about this in textbooks.
Concepts of Object-Oriented Programming Languages:
The collection of objects of the same type, which makes everything in the world an object, is called a class.
It doesn't matter if it's moving or not, living or inanimate, visible or invisible, and so on. All of them, one by one, can be called objects.
Objects have: properties and methods.
Object properties: Used to describe some state of the object (appearance, weight, volume, size, position, etc.).
The method of the object: It is to represent the behavioral capacity of the object (different kinds of objects have their own characteristic behavioral capabilities).
You have an example: automobiles.
Let me give you another example: the object is a specific tiger.
The attributes of the tiger and its values: sex (female tiger), age (3 years), weight (300 kg).
Tiger methods: jump, roar, bite.
-
In VB, the whole application is an object, and the application contains objects, such as forms, command buttons, menus, etc.; A method is an internal program used to control the function and operation of an object. Take a form, for example, which has a way to show or hide; Attributes are metrics that describe the name, position, color, font, and other characteristics of an object.
-
A text box is an object.
Emptying is the way.
Content is an attribute.
The "Zhang San" filled in it is the attribute value.
-
An object is an abstraction of a concrete thing with certain properties, and when an object is established, its operation is described by properties, events, and methods related to that object.
Attributes refer to the properties that an object has, and different objects have different properties.
An event generally refers to the information sent by a user's action or a change in the state of an object that can be recognized by an object, that is, the response of an object.
A method is an intrinsic function or process that an object itself has that reflects the function of the object, that is, the action of the object.
-
1) Button – Attributes: tooltiptext ; Method: setfocus
tooltiptext: An explanatory text that appears when the mouse is moved over a button, which serves as a comment and help.
setfocus: Use this method to get command1 focus.
2) Tags – Attributes:
caption: The text content that appears on the label.
alignment: Set the alignment of its Chinese characters.
backstyle: specifies whether the background is transparent.
autosize: Sets whether the size of the label is automatically adjusted based on the amount of content in it.
wordwrap: Sets whether the text in a tag wraps according to the size of the tag.
borderstyle: Set the border style of the label, you can choose single line or none.
3) TextBox – Properties:
text: The text content displayed in the text box.
mulitiline: Specifies whether a text box can be displayed on multiple lines.
scrollbars: The scrollbar of the text box, there is no scroll bar by default, you can choose horizontal, vertical, both and none.
maxlength: specifies the maximum number of characters that can be stored in a text box.
passwordchar: password character, set the current text box as the password box, for example, QQ enters the password is a black circle, usually with *
locked: locks the text box so that the user cannot type.
selstart: The start position of the selected text.
seltext: The content of the text selected by the mouse.
sellength: The number of characters of the currently selected text.
If you have a book, just buy one yourself, and before each second-level exam, there are exam questions to refer to, 100% of which are inside, and there are many questions.
Referencing the Microsoft Excel Type Library in the project: >>>More
Save the following information in a "text document" with the name "1" echo off >>>More
First of all, the glyph of pain and impermanence is a must, and the others are of their own choice, and the dark souls should not be inserted. >>>More
There are a lot of ** on the Internet, search for it yourself.