Monday, August 10, 2020

[VB][Resolved] Pop up MessageBox when form load

Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

  MessageBox.Show("content","capture",MessageBoxButtons.YesNo)

End Sub

This _Load Event would raise when the form is about to be shown, so you can add the statement into this function if you Pop up MessageBox when form load.


Reference:

  • https://stackoverflow.com/questions/38619368/when-does-the-event-mybase-load-fire
  • https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.form.load?redirectedfrom=MSDN&view=netcore-3.1

No comments :

Post a Comment