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

VAer-4038 766 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

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,189 questions
0 comments No comments
{count} votes

Accepted answer
  1. Castorix31 85,806 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.