Click here to Skip to main content

.NET Framework

 
QuestionMessage Automatically Removed Pinmembergolfal12-May-13 16:33 
QuestionMessage Automatically Removed Pinmembergolfal12-May-13 16:31 
QuestionMessage Automatically Removed Pinmembergolfal12-May-13 16:27 
QuestionThe equivalent of 'OninitDlg()' PinmemberBram van Kampen10-May-13 14:51 
Hi,
 
I am looking for an event to hook into that occurss after aform has been created, but, before the form is displayed. In MFC I would use OnInitDlg().
 
My Main Window is essentially aSplash Screen. I want to display a LogIn Screen op top of that.
If I do that in the constructor, the login box isnaturally displayed first, followed by the splash screen. The Splash Screen does not create events to hook into.
 
Furthermore, How do I call the Base Class version in a handler I override. Below is how I woulddo thisin CPP. but this code will not compile in C#.
 
namespace SgCntr
{
    public partial class MainWnd : Form
    {
        
        protected override void OnXXX(EventArgs e)
        {
 
            // Let the Base Class handle the event
            Form::OnXXX(e);
 
            // Now handle the event for our selves
            LogOn logon=new LogOn();
            DialogResult dlgres=logon.ShowDialog(this);
 
 
        }
        
 
    }
}
 
Smile | :)
Bram van Kampen

AnswerRe: The equivalent of 'OninitDlg()' Pinmemberdusty_dex10-May-13 15:18 
GeneralRe: The equivalent of 'OninitDlg()' PinmemberBram van Kampen12-May-13 14:03 
GeneralRe: The equivalent of 'OninitDlg()' Pinmemberdusty_dex12-May-13 14:42 
GeneralRe: The equivalent of 'OninitDlg()' PinmemberBram van Kampen13-May-13 14:06 
AnswerRe: The equivalent of 'OninitDlg()' PinmvpRichard MacCutchan12-May-13 22:03 
GeneralRe: The equivalent of 'OninitDlg()' PinmemberBram van Kampen13-May-13 15:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.8.150327.1 | Last Updated 30 Mar 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid