actually I just remembered that I asked this very same question a while ago
and someone showed me this rather obscure way of doing it:
- open the page in design view
- right click on the background of the page
- select view component designer
- on the properties page you can now select the lightning bolt
- double click an event name to generate the code
"Andy Fish" <aj****@blueyonder.co.ukwrote in message
news:OO****************@TK2MSFTNGP04.phx.gbl...
you have to type it in yourself in the InitializeComponent method. Yes -
just where it says "do not modify the contents of this method with the
code editor" !!
put
this.PreRender += new System.EventHandler(this.MyPage_PreRender);
if you're lucky it will auto-complete after you type the +=
Andy
"Bjarke" <bj********@gmail.comwrote in message
news:11**********************@r29g2000hsg.googlegr oups.com...
>>I know how to do it in vs 2003, please help!