Visual Studio C#: How to put messagebox in Form_Load?

VAer-4038 771 Reputation points
2021-01-02T15:00:52.753+00:00

I would like to display the message box when the child form FRegistration is loaded. The message box should be displayed as soon as the form is loaded, not depends on other condition.

Now it shows 0 references, why?

Of course that it does not show the message box, what goes wrong? Or where should I put the message box?

Thanks.

52799-messageboxload.jpg

Developer technologies Visual Studio Other
0 comments No comments
{count} votes

Accepted answer
  1. Castorix31 90,521 Reputation points
    2021-01-02T15:30:39.65+00:00

    Have you added FRegistration_Load with the Designer ?
    So that it adds automatically :

     this.Load += new System.EventHandler(this.FRegistration_Load);
    

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.