Divelements Community
Customer discussion of all Divelements products

AfterDisplay event for IntroductionPage

Latest post 01-07-2007 19:34 by Tim Dawson. 1 replies.
  • 11-15-2006 18:58

    • Sergy
    • Not Ranked
    • Joined on 11-15-2006
    • Posts 1

    AfterDisplay event for IntroductionPage

    Hello all,

    I have a problem to catch the AfterDisplay event for introductionPage (it's a first page of my wizard).

    Here the code:

    this.introductionPage = new Divelements.WizardFramework.IntroductionPage();

    this.mainWizard.Controls.Add(this.introductionPage);

    this.mainWizard.SelectedPage = this.introductionPage;

    this.introductionPage.AfterDisplay +=new EventHandler(introductionPage_AfterDisplay);

    private void introductionPage_AfterDisplay(object sender, EventArgs e){

       MessageBox.Show(this, "OK", "OK", MessageBoxButtons.OK);

    }

    The message box is never shown.

    Is it a normal behaviour? I trying to open a help file for wizardframework, but it doesnt work

    Strictly speaking, I need to catch a latest moment after the panel entering to showing phase.

    Thank you for the help  

  • 01-07-2007 19:34 In reply to

    Re: AfterDisplay event for IntroductionPage

    You are binding the event after setting the page, which won't help. However I do not believe that setting the page programmatically triggers those events anyway. The idea is that if you're setting it in code, you _know_ when the page has just been selected so you can just run your code.
Page 1 of 1 (2 items) | RSS
Copyright © 2008 Divelements Limited
Powered by Community Server (Commercial Edition), by Telligent Systems