Problems with VB moving forms, operation issues with VB form interfaces

Updated on technology 2024-05-05
6 answers
  1. Anonymous users2024-02-09

    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.

  2. Anonymous users2024-02-08

    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!!

  3. Anonymous users2024-02-07

    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.

  4. Anonymous users2024-02-06

    You save the frm250 of the person first, and then add the form to the project you wrote, and select the one you save.

  5. Anonymous users2024-02-05

    You can copy from250 and paste it in the specified position under the project.

  6. Anonymous users2024-02-04

    Add form Existing Save.

    Or directly copy the Add Form existing.

Related questions
10 answers2024-05-05

public variable or the name of the form. Object. Properties|Method.

20 answers2024-05-05

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

13 answers2024-05-05

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

9 answers2024-05-05

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

11 answers2024-05-05

This program of the landlord is written into a notepad. If you want to write data to the access database. >>>More