VS 2005 InitializeComponent Events

2 posts, 0 answers
  1. Sebastijan Pistotnik
    Sebastijan Pistotnik avatar
    6 posts
    Member since:
    May 2005

    Posted 03 Dec 2005 Link to this post


    Here is misc question:
    In VS 2003 I used defined events in InitializeComponent

    private void InitializeComponent()
       //event for usercontrol
       this.PreRender +=new EventHandler(NewsList_PreRender);
       //event for telerik control
       RadToolbar1.OnClick += new Telerik.WebControls.RadToolbar.OnClickDelegate(RadToolbar1_OnClick);

    How (where) do I define those two event handlers in VS 2005 in partial class (I always use partial class)?

    I would like a practical example of the above code! Thank you for help!


  2. Vladimir Milev
    Vladimir Milev avatar
    1061 posts

    Posted 05 Dec 2005 Link to this post

    Hello Sebastijan,

    There is an easier way - you can use the VS property grid and double click on the events. It will create the necessary code for you.

    All the best,
    Vladimir Milev - r.a.d.rotator, r.a.d.toolbar lead
    the telerik team
Back to Top