By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,882 Members | 2,082 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,882 IT Pros & Developers. It's quick & easy.

Convert to VB question

P: n/a
Jon
I need help converting the following to vb from c#

base.Load +=new EventHandler(CommonPage_Load);

I've tried a couple of things, but none is working. I think the closest I
came is:
MyBase.Load += New EventHandler(AddressOf PageAuth_Load)

Anyone care to show me the correct way? Thanks
--
********************************
Jon
Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
"Jon" <ru******@msn.com> schrieb:
I need help converting the following to vb from c#

base.Load +=new EventHandler(CommonPage_Load);


\\\
AddHandler MyBase.Load, AddressOf CommonPage_Load
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #2

P: n/a
You can use this:

Private Sub PageAuth_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'To do: Code here.
End Sub
Jon wrote:
I need help converting the following to vb from c#

base.Load +=new EventHandler(CommonPage_Load);

I've tried a couple of things, but none is working. I think the closest I
came is:
MyBase.Load += New EventHandler(AddressOf PageAuth_Load)

Anyone care to show me the correct way? Thanks


--

Best,
_____________
Bharat Sharma

* TEN Technologies.
* Official Web: _www.ten-technologies.com_
<http://www.ten-technologies.com/>
Personal Web: _www.bharatsharma.net_ <http://www.bharatsharma.net/>

Nov 21 '05 #3

P: n/a
Jon
Thanks so much!

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
"Jon" <ru******@msn.com> schrieb:
I need help converting the following to vb from c#

base.Load +=new EventHandler(CommonPage_Load);


\\\
AddHandler MyBase.Load, AddressOf CommonPage_Load
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.