Home > Software engineering >  For help! Please advise.
For help! Please advise.

Time:09-16


Form a command button, open the form code window lose code, according to the two charts respectively on typing the same code Private Sub Command1_Click (Index As an Integer)
Dim the ap (4) As POINTAPI
Dim al (5) As POINTAPI
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
Reslut=SetwindowRgn (hWnd. Me., region, True)
End the Select
End Sub

, what's the difference? One is the object list box in the upper left corner shows "general", a display "command1,"

CodePudding user response:

The first figure of the sub name for "Commandl_Click", following the Command with the is the lowercase letter "L", the second picture is the number "1",

Because there is no Commandl Form (l) the control, the Commandl_Click was considered you to customize a Sub system, so as (gm), while Command1 are on the Form (figure 1) the control, the Command1_Click is system regarded as Command1 an event,

CodePudding user response:

One is Commandl, one is the Command1, one is the letter l, one is letters 1, looks like in VB, but really is not a thing

CodePudding user response:

The first figure is the second picture is the process of a module to belong to a button click event ~
The first picture is Commandl (this is a lowercase letter l, not the number 1), because there is no this name on the form of the control system so that it is to belong to a process module
  • Related