Home > Software engineering >  Everyone a great god, help to see the VB procedure calls
Everyone a great god, help to see the VB procedure calls

Time:03-03








Can click the button, the program calls can't, please help to look at, thank you

CodePudding user response:

Didn't load from the load process, buttons, so call doesn't work, you can put the call in other places, such as from the click, must wait for the form to load

CodePudding user response:

Well, the form

CodePudding user response:

How do you judge can or can't?
What did jump to single-step tracking try,

CodePudding user response:

To be a global

CodePudding user response:

reference 3 floor crispy large ice cream response:
how do you determine can or can't?
Single-step tracking what did jump, try

I think, affirmation is his "start the program, see no output content" on the form,
So a conclusion "can't" just...

CodePudding user response:

1/f, what reference is which girl takes up reply:
the from of the load process, and didn't load button, so call doesn't work, you can put the call in other places, such as from the click, must wait for finished form loads can


You can test, should not you say this reason,

CodePudding user response:

I dare say, the original poster is sure don't know "interface re-paint,"
Form or PictureBox control autoredraw attribute is going on...

CodePudding user response:

Oh, he is going to print output,
So, add a timer, form the onl oad time to set the timer timing 1 second, and then call the timer event command1_click (), then the timer stop off

CodePudding user response:

Upstairs for 17 years

CodePudding user response:

Have you put the call button code in the following we give it a try, Form_Activate

 Private Sub Form_Activate () 

End Sub

CodePudding user response:

capital, Internet cafes, 9/f, refer to administrator reply:
upstairs had 17 years


Actually is the main active in 5 years, and now the experts grading is essentially the time rob posts, silence for a few years later, suddenly saw and small red flowers or something came up last year to make a strange saving achievement to unexpectedly into the top three is not difficult, difficult is 500,

CodePudding user response:

refer to 6th floor crispy big ice cream reply:
Quote: 1/f, what reference is which girl takes up reply:

Didn't load from the load process, buttons, so call doesn't work, you can put the call in other places, such as from the click, must wait for finished form loads can


You can test, should not be this reason, you said
I can say I have ever met? Haha

CodePudding user response:

What
refer to 12th floor is occupied by a which girl? Reply:
Quote: refer to 6th floor crispy big ice cream reply:

Quote: 1/f, what reference is which girl takes up reply:

Didn't load from the load process, buttons, so call doesn't work, you can put the call in other places, such as from the click, must wait for finished form loads can


You can test, should not be this reason, you said
I can say I have ever met? Haha


Should be the best because no load caused by pictures or need to draw the form of things wrong, call the subprocesses that sort of thing seems to has nothing to do with form drawing,

CodePudding user response:

 Option Explicit 

Private Sub Command1_Click ()
Print "SLDKJ
"End Sub

Private Sub Form_Click ()
Call Command1_Click

End Sub

Private Sub Form_Load ()
Call Command1_Click
End Sub


On a new project, add a command, and paste the above code,
See the load event, didn't find relevant specification, the specific reason is the dark,

CodePudding user response:

What
reference 14 floor is occupied by a which girl? Reply:
 Option Explicit 

Private Sub Command1_Click ()
Print "SLDKJ
"End Sub

Private Sub Form_Click ()
Call Command1_Click

End Sub

Private Sub Form_Load ()
Call Command1_Click
End Sub


On a new project, add a command, and paste the above code,
See the load event, didn't find relevant specification, the specific reason is guess,


This is because in the load event called the click of the print, didn't start painting form, so behind drawn form without the thing you want,
You try change the print to debug. Print and see, start the forms immediately form is printed as a result, the call is correct and effective,

Or try to put the form attribute autoredraw is set to true, this bottom form there is something inside,

If you don't set autoredraw properties, also can click the call process adding a line me. Show, draw form force first, then print, also can achieve the same effect,

So there will be a 7th floor, the building Lord and you haven't actually, the course of the research through the form start

CodePudding user response:

Uh uh huh...
  • Related