Click here to Skip to main content
12,625,402 members (35,842 online)

.NET Framework

 
QuestionMessage Automatically Removed Pin
12-May-13 17:14
membergolfal12-May-13 17:14 
QuestionMessage Automatically Removed Pin
12-May-13 17:11
membergolfal12-May-13 17:11 
QuestionMessage Automatically Removed Pin
12-May-13 16:46
membergolfal12-May-13 16:46 
QuestionMessage Automatically Removed Pin
12-May-13 16:37
membergolfal12-May-13 16:37 
QuestionMessage Automatically Removed Pin
12-May-13 16:33
membergolfal12-May-13 16:33 
QuestionMessage Automatically Removed Pin
12-May-13 16:31
membergolfal12-May-13 16:31 
QuestionMessage Automatically Removed Pin
12-May-13 16:27
membergolfal12-May-13 16:27 
QuestionThe equivalent of 'OninitDlg()' Pin
Bram van Kampen10-May-13 14:51
memberBram 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()' Pin
dusty_dex10-May-13 15:18
memberdusty_dex10-May-13 15:18 
GeneralRe: The equivalent of 'OninitDlg()' Pin
Bram van Kampen12-May-13 14:03
memberBram van Kampen12-May-13 14:03 
GeneralRe: The equivalent of 'OninitDlg()' Pin
dusty_dex12-May-13 14:42
memberdusty_dex12-May-13 14:42 
GeneralRe: The equivalent of 'OninitDlg()' Pin
Bram van Kampen13-May-13 14:06
memberBram van Kampen13-May-13 14:06 
AnswerRe: The equivalent of 'OninitDlg()' Pin
Richard MacCutchan12-May-13 22:03
mvpRichard MacCutchan12-May-13 22:03 
GeneralRe: The equivalent of 'OninitDlg()' Pin
Bram van Kampen13-May-13 15:22
memberBram van Kampen13-May-13 15:22 
GeneralRe: The equivalent of 'OninitDlg()' Pin
Richard MacCutchan13-May-13 21:54
mvpRichard MacCutchan13-May-13 21:54 
AnswerRe: The equivalent of 'OninitDlg()' Pin
Marco Bertschi15-May-13 0:11
professionalMarco Bertschi15-May-13 0:11 
Questioncan application service start without being logged in? Pin
neodeaths8-May-13 2:50
memberneodeaths8-May-13 2:50 
AnswerRe: can application service start without being logged in? Pin
Dave Kreskowiak8-May-13 3:07
mvpDave Kreskowiak8-May-13 3:07 
GeneralRe: can application service start without being logged in? Pin
neodeaths8-May-13 3:18
memberneodeaths8-May-13 3:18 
GeneralRe: can application service start without being logged in? Pin
Dave Kreskowiak8-May-13 6:09
mvpDave Kreskowiak8-May-13 6:09 
AnswerRe: can application service start without being logged in? Pin
Abhinav S9-May-13 0:05
mvpAbhinav S9-May-13 0:05 
AnswerRe: can application service start without being logged in? Pin
Member 100361729-May-13 4:00
memberMember 100361729-May-13 4:00 
AnswerRe: can application service start without being logged in? Pin
Marco Bertschi15-May-13 0:13
professionalMarco Bertschi15-May-13 0:13 
GeneralRe: can application service start without being logged in? Pin
neodeaths15-May-13 4:16
memberneodeaths15-May-13 4:16 
GeneralRe: can application service start without being logged in? Pin
Dave Kreskowiak15-May-13 5:12
mvpDave Kreskowiak15-May-13 5:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    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
Web02 | 2.8.161128.1 | Last Updated 30 Nov 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid