C#
this.openFile.FileOk += New
System.ComponentModel.CancelEventHandler(this.open File_FileOk);
VB.NET
Me.openFile.FileOk += New
System.ComponentModel.CancelEventHandler(Me.openFi le_FileOk)
I used Kamal's site for the conversion
http://www.kamalpatel.net/ConvertCSharp2VB.aspx
--
Regards,
Alvin Bruney [MVP ASP.NET]
[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @
http://tinyurl.com/27cok
----------------------------------------------------------
"SteveR" <> wrote in message
news:0D47929E-9E31-4A32-8FF0-...
>I want to add an imagebutton control into a datagrid at runtime and use the
> click event to navigate to another page. I can do this in C#
> imagebutton.click += new eventhandler... but how do I do this in VB?
> --
> Steve