-
public variable or the name of the form. Object. Properties|Method.
-
Using public to define global variables can be used throughout the VB project.
-
In form2, you can use the process in form1, form1Process name ().
Set the boundary type to the following values
0none (borderless frame).
1FixedSingle, 2sizable, 3Fixeddialog, 4fixedtoolwindow, 5sizable toolwindow, <>
Basic introduction. A form is a graphical interface for a computer application to interact with a person with information. The properties and methods contained in the VB form can be used directly by developers or customized based on the class form, without the need to write every detail from the bottom, which greatly simplifies the workload and complexity of the developer, and enables the programmer to devote more energy to the design and implementation of the business functions of the program.
The above content reference: Encyclopedia-vb form.
-
The following describes how to create a generic dialog box in a VB form:
1. In the first step, select the "Part" option in the "Engineering" menu, see the figure below, and then enter the next step.
2. In the second step, after completing the above steps, click the "Controls" button, tick the "Microsoft Common Dialog" item in the "Controls" list, and then click "OK" to add the common dialog box control to the toolbar as shown in the following figure, and then enter the next step.
3. In the third step, after completing the above steps, drag and drop the general dialog box in the toolbar to the programming interface to complete the addition of the general dialog box, see the figure below, and then enter the next step.
4. In the fourth step, after completing the above steps, add the corresponding operation button and write executable ** for it according to the needs of the program, see the figure below. In this way, the problem is solved.
-
Add the Microsoft Common Dialog Control (SP3) control to the tool - widget, and then manipulate the control.
1. Use the generic dialog controls.
2. Use the API to getOpenFileName
-
Steps to set up a generic dialog box in a VB form:
Select the Assembly command from the Project menu.
In the Assembly dialog box, select the Controls tab.
Select the Microsoft Common Dialog check box in the list of controls.
Click OK
This adds a common dialog control to the toolbox, which provides a standard set of dialog boxes for actions such as opening and saving files, setting print options, and selecting colors and fonts. By running.
The Windows Help Engine control can also display Help.
-
1、borderstyle:
This property is used to set the border style of the form, and the values of the property are that the form has no outer border, the size of the form is fixed, the size of the form can be changed during the runtime, the size of the form cannot be changed during the runtime, the size of the form cannot be changed during the runtime, and the size of the form can be changed during the runtime.
2、maxbutton:
Sets whether the maximize button at the top right of the form is available. If the value is true, the maximize button is available; If the value is false, the maximize button is not available.
3、minbutton:
Set whether the minimize button at the top right of the form is available, the value is true, and the maximize button is available; If the value is false, the maximize button is not available.
4、controlbox:
Set whether there is a control menu at the top left of the form. If the value is true, it is displayed; A value of false is not displayed.
5、lcon:
This is used to set the icon that appears on the left side of the title bar when the form is running.
6、picture:
Set the background of the form, which can be inserted as needed.
7、autoredraw:
The autodraw property is used to set whether the content on the form is automatically redrawn. If the value is true, the content will be automatically redrawn, and if the value is false, it will not be automatically redrawn.
-
There are two main methods:
The first, which is the most commonly used and one of the advantages that makes VB simple, is to select the space directly from the toolbox, add it to the form, and you can also select the controls, set various properties, and after setting it, you don't need to use ** to set it.
The second type, which is more complicated, is to add controls directly with **. It is necessary to specify the size, position and other attributes of the control with **, which is generally less used in VB.
-
Three ways to open a window:
1) Select a form or standard module in the project window and click the View button.
2) Double-click the control of the form window or the form itself.
3) Click the Window command in the View menu.
The action that does not open the object window is a
Pressing F2 opens the Object Browser window.
VB stands for Visual Basic and is a popular programming development tool. It is based on the programming language Basic, visual basic is simply a set of tools that Microsoft uses in order to better allow people to learn programming, and the application of the basic development language, referred to as the advent of the original extremely complex and difficult programming, software development work has become simple.
The initial programming work was carried out by relying on a full set of **, and the amount of engineering was huge.
VB is the compiler of choice for basic language software developers, and it is an integrated technical compiler that must be contacted and often contacted to learn basic language programming.
-
Display: Double-click the design form, click the "View" button in the project window, click "Window" in the "View" menu, press F7, and so on. Don't show: Click"x", press Ctrl+F4, etc.
This program of the landlord is written into a notepad. If you want to write data to the access database. >>>More
How to implement the consistency of teaching assessment in teaching is as follows: >>>More
The languages spoken in g, countries, ethnic regions, etc. are different.
Personally, I think it should be a unified empire, and the Yuan Dynasty is the largest dynasty in Chinese history. According to the map of the Yuan Dynasty in middle school history textbooks, the territory of the Yuan Dynasty stretched from Sakhalin Island and the Sea of Japan in the east, to the South China Sea in the south, to the Tianshan Mountains in the west, and to the Arctic Ocean in the north, with a total area of more than 20 million square kilometers.
I want to join the Internet of Things project, how can I join the formal national Internet of Things platform. What are the conditions, what information is required, and how to develop, please give a reply to the superior platform. >>>More