VisbileChanged Event fired at DesignTime?

3 posts, 0 answers
  1. Falk Wegener
    Falk Wegener avatar
    28 posts
    Member since:
    Oct 2007

    Posted 12 Jun 2008 Link to this post

    Hello,

    I am having problems with the docking manager (6.0.2.0) at Design time again.

    One of the Panels I am using in the docking manager has a Handler for the VisibleChanged-Event (so it fills its components with data the first time its actually visible)

    This caused the visual studio designer (!!) to freeze (CPU 100%).
    When I comment out the VisibleChanged Handler of the Panel , everything works fine.

    At runtime both alternatives work.

    So do events actually get fired at design time ?

    Which DockPanel-Event should I handle if I want to intialize components (for example fill a RadComboBox with data) at runtime when they are first visible to the user.


    Greetings
  2. erwin
    erwin avatar
    358 posts
    Member since:
    Dec 2006

    Posted 12 Jun 2008 Link to this post

    Events do get fired at design time in all windows forms components that can be loaded into the designer. You can use the DesignMode Property to implement different handling when in the Designer (for example use fake data instead of querying a database).

    if (this.DesignMode)

    {

    return;

    }

  3. UI for WinForms is Visual Studio 2017 Ready
  4. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 13 Jun 2008 Link to this post

    Hello Falk,

    Another customer has already raised the same issue. Please find the response at this location:
    http://www.telerik.com/community/forums/thread/b311D-bedtak.aspx

    Let us know if you need further assistance.

    Regards,
    Julian Benkov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top