-
Your ** is not good in itself, move slowly Unless it is directX programming, in other cases, please use timer instead of directly using loops, otherwise the CPU usage will be very high.
Give you a complete paragraph** for reference.
You don't have to put anything on the form, just glue the ** directly.
private withevents timer1 as timer
private sub form_load()
set timer1 = "", "timer1")
0= 50 'Represents a form move every 50 milliseconds.
trueend sub
private sub timer1_timer()
if + then
10 * 'This 10 represents 10 pixels per move.
else = false
end if
end sub
It's as simple as that, you don't need to set any variables.
You can change the speed and smoothness of the form by modifying the values 50 and 10 above.
If you really don't want to use a timer, or you really can't use a timer (which is rare but exists, and generally needs to ensure that the movement is absolutely smooth), I will teach you to use a timekeeping method that takes up little CPU and is highly accurate.
-
Because of this sentence. = b
From **, b is undefined, so the initial value is 0, so the initial position of the form is on the left!!
-
1。You can copy the new form file you are going to add, this file, to the folder of your new project "Project 1".
2。In Project 1, click "Add Form to Project ---" on the menu, select "Existing" in the pop-up tab, do not select "New", then find this file, select, and then click to open it, and you will see the new form in Project Explorer.
3.The first step can be omitted, but we usually do it to make the program appear more orderly. It's important to note that newly added form names that duplicate existing form names will fail.
-
You save the frm250 of the person first, and then add the form to the project you wrote, and select the one you save.
-
You can copy from250 and paste it in the specified position under the project.
-
Add form Existing Save.
Or directly copy the Add Form existing.
public variable or the name of the form. Object. Properties|Method.
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
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 : >>>More
This program of the landlord is written into a notepad. If you want to write data to the access database. >>>More