This is a migrated thread and some comments may be shown as answers.

VS 2005 InitializeComponent Events

1 Answer 26 Views
Miscellaneous
This is a migrated thread and some comments may be shown as answers.
Sebastijan Pistotnik
Top achievements
Rank 1
Sebastijan Pistotnik asked on 03 Dec 2005, 12:19 PM

Hello

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

NewsList.ascx
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!

Lp
Sebastijan

1 Answer, 1 is accepted

Sort by
0
Vladimir Milev
Telerik team
answered on 05 Dec 2005, 07:11 PM
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
Tags
Miscellaneous
Asked by
Sebastijan Pistotnik
Top achievements
Rank 1
Answers by
Vladimir Milev
Telerik team
Share this question
or