What is the difference between the two methods of creating objects in the VB Operations Registry? 1

Updated on technology 2024-04-12
9 answers
  1. Anonymous users2024-02-07

    What is the method of setting or modifying the properties of an object in VB?

    1。It can be set or modified in the properties.

    2。It can be set or modified in **, such as: ="Tips"

  2. Anonymous users2024-02-06

    Modify its properties at design time, and also make use of ** changes at runtime.

  3. Anonymous users2024-02-05

    1. Use the properties window to modify (modify during programming).

    2. Modify with ** (let ** modify when running).

  4. Anonymous users2024-02-04

    The differences between objects and methods in VB are as follows:

    1. Definitions.

    1) Object. An object represents an instance of a class, such as form, control, or component. In Visual Basic, you must "instantiate" an object before you can apply one of the object's methods or change the value of one of its properties. Instancing is a process by which an instance of a class is created and assigned to an object variable.

    Here's an example:

    dim x as new myclass() In this example, assign the variable x to reference a new instance of the myclass class.

    2) Method. Methods are actions that can be performed by an object. For example, add is a method of the combobox object because it adds a new item to the combo box.

    The following example shows the start method of the timer component

    instantiates a timer object.

    dim mytimer as new

    invokes the start method of mytimer

    2. Usage.

    Methods are defined within an object and are part of an object.

  5. Anonymous users2024-02-03

    1. Modify it through the properties window in the program design stage.

    2. Modify through ** in the program running stage.

    For example, when a factory produces a TV, it will preset various parameters of the TV (volume, color, contrast, brightness, etc.) before leaving the factory, which is equivalent to the above method 1; After the customer buys the TV, these parameters can also be modified at any time, which is equivalent to the above method two!

  6. Anonymous users2024-02-02

    Call the registry API function directly.

    private declare function regopenkey lib “ alias “regopenkeya” (byval hkey as long, byval lpsubkey as string, phkresult as long) as long

    regsetvalueex(): stores data in the value field of the open registry keyword;

    regclosekey(): releases the handle of the specified keyword;

    regqueryvalueex(): looks up the value in the registry related to the key value you specified;

    regcreatekeyex(): creates and opens the specified keyword, and opens it if it already exists;

    regenumkeyex(): enumerates the subkeywords (32 bits) of the specified registry keyword;

    regenumvalue(): each time the value of the specified registry keyword is enumerated, the name and data-block of an indexed value are copied;

    regdeletekey(): deletes a keyword and its subkeys;

    regdeletevalue(): Removes a named value from the specified registry keyword.

  7. Anonymous users2024-02-01

    private sub command1_click()'The value of the registry key.

    dim linkname as string, w

    set w = createobject("")

    linkname = "hklm\software\microsoft\windows\currentversion\explorer\advanced\folder\hidden\showall\checkedvalue")

    msgbox linkname

    end sub

    private sub command2_click()'Delete the registry key.

    dim wset w = createobject("")

    hklm\software\microsoft\windows\currentversion\explorer\advanced\folder\hidden\showall\checkedvalue"

    set w = nothing

    end sub

  8. Anonymous users2024-01-31

    Methods and events are indistinguishable for newbies because they are all dynamic. But if you understand the two concepts more deeply, it's not hard to distinguish between them.

    Methods and properties are properties that are carried by the object itself.

    An event is a specific object-based scenario.

    Let's use an analogy: a fountain pen, it's black (property), it can write words (method), and then I use it to write a "good" word (event).

    Why is black an attribute and writing a method? Because black is static, while writing is dynamic.

    Why is writing a word a method and a "good" word an event? Because of the specific situation when writing the word "good".

  9. Anonymous users2024-01-30

    private sub command1_click()dim wsh

    set wsh = createobject("")"hkey_local_machine\software\policies\microsoft\windows\installer\disableuserinstalls", 2, "reg_dword"

    hkey_local_machine\software\policies\microsoft\windows\installer\disableuserinstalls_intelset_undo", 103606000, "reg_dword"

    end sub

    You misspelled the name.

Related questions
4 answers2024-04-12

Unlock the registry.

Now the malicious program on the Internet uses the registry to modify the home page of IE, it not only modifies the registry, but also prohibits the use of the registry in order to prevent you from using the registry program modification, in fact, as long as we start the notepad tool and enter the following string (note that the string cannot be more than one and one cannot be less). >>>More

6 answers2024-04-12

Rising and Optimizer are all available.

7 answers2024-04-12

Create a notepad and type "rd s q c: this should be written according to the path of the backup (excluding quotes), or rd s q $". >>>More

11 answers2024-04-12

First of all, the way to open the win10 registry is very simple, use the shortcut key "win" + r] combination shortcut. Type the command: regedit after opening >>>More

13 answers2024-04-12

Using Win+R, bring up the "Run" dialog box, enter control userpasswords2 (the last 2 cannot be missing), so that the "User Account" settings dialog box is launched, select the "Advanced" tab, and in "Advanced User Management", click the "Advanced" button. Next, open lusrmgr (Local Users and Groups), select "Users" in the tree diagram on the left, select "Administrator" on the right, right-click, and select "Properties" from the pop-up shortcut menu. Finally, we remove the tick before "Account disabled" and click "OK". >>>More