J
JT
is there an event that is raised right after the window
is shown? i have been trying to create my main window and
as soon as thats done, then show a login dialog box. i
cant seem to figure out where to put the dialog display
code. ive tried in the constructor, the onload, and the
onenter, but they are raised before the window is
actually shown. ive also tried to keep track of the first
time shown like this
bool firstactivated = true;
protected override void OnActivated(EventArgs ea)
{
base.OnActivated(ea);
if(firstactivated)
dlg.ShowDialog(this);
firstactivated = false;
}
but for some reason this doesnt work. i dont get it.
please help. thanks.
is shown? i have been trying to create my main window and
as soon as thats done, then show a login dialog box. i
cant seem to figure out where to put the dialog display
code. ive tried in the constructor, the onload, and the
onenter, but they are raised before the window is
actually shown. ive also tried to keep track of the first
time shown like this
bool firstactivated = true;
protected override void OnActivated(EventArgs ea)
{
base.OnActivated(ea);
if(firstactivated)
dlg.ShowDialog(this);
firstactivated = false;
}
but for some reason this doesnt work. i dont get it.
please help. thanks.