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

VAer-4038 776 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
Developer technologies | Visual Studio | Other
A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
0 comments No comments
{count} votes

Answer accepted by question author
  1. Castorix31 91,506 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' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.