I've deleted my previous answer you may try the below code. Using variable to remember if the user control is loaded or not.
public partial class SelectAccounts : UserControl
{
bool _Shown = false;
private void SelectAccounts_Paint(object sender, PaintEventArgs e)
{
if (!this._Shown)
{
this._Shown = true;
MessageBox.Show("something");
}
}
}