-
Two methods:1Add an array of controls with the load method, provided you have to add a control to the form at design time and set its index property to 0, then use :
load control (control. count), after which its visible property must be set to true to be visible.
2.Add with the method, for example:
dim a as label
set a=form. "","The name of the control")
Then you can manipulate a like a normal control
-
Draw a text1 on the form, set the property index=0private sub form load()text1(0)move 0, 0, 1000, 350dim i as integer
for i = 1 to 5
load text1(i)
text1(i).move i * 500, i * 500text1(i).visible = truenextend sub
-
Click Controls.
Left-click in form1 and pull and you're done!!
Double-click on the control to program.
No, you can read more VB basic books.
-
In the menu Project - Add Form.
-
The menu bar in VB is not the same as text or label (click on the widget area on the left).
Instead, click a menu-like button to the right of the Save button on the toolbar, or from the Tools menu, choose Menur; Or use the shortcut key Ctrl+E to call it up.
Then: To create a menu control in the menuer, follow these steps:
In the Title text box, type the text that you want to appear on the menu bar for the first menu title. If you want a character to be the access key for the menu item, you can also precede the character with a (& character. In the menu, this character is automatically underscored.
The menu title text appears in the menu control list box.
In the Name text box, type the name that will be used to refer to the menu control in **. See "Menu Titles and Naming Guidelines" later in this chapter.
Click the left or right arrow button to change the indentation of the control.
If you want, you can also set other properties of the control. This can be done in the menur or later in the Properties window.
Choose Next to create another menu control.
or - Click Insert to add a menu control between existing controls.
You can also click the up and down arrow buttons to move the controls within the existing menu controls.
If all menu controls for the form have been created, choose OK to close the menu maker.
The created menu title is displayed on the form. At design time, click a menu title to pull down its corresponding menu item.
-
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.
-
Generally speaking, there are two more commonly used ones, the first is to directly select and drag, and the second is to add when running the program, this kind of writing **!
-
1.Click the control you want to add, and then click and drag in the form.
2.Double-click the control you want to add.
3.Cut and paste the control you want to add.
-
Click on the control of your choice and drag and drop the size you want over the form.
When you call it for the second time, it will automatically re-form load.,In fact, the form is closed and opened.,If you don't believe it, you can check the log from load to verify it.。 >>>More
Find a way to deal with it:
Check whether the filename is an empty string, if it is, do not perform the following operations. >>>More
option explicit statement.
Used at the module level to force all variables in the module to be explicitly declared. >>>More
Try my way:
Create a text on the form, and a command1 >>>More
Just turn on the machine to keep pressing... This makes it easy to get into the motherboard. If you miss it, you can't press it.。。。