Convert to VB question

  • Thread starter Thread starter Jon
  • Start date Start date
J

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 said:
I need help converting the following to vb from c#

base.Load +=new EventHandler(CommonPage_Load);

\\\
AddHandler MyBase.Load, AddressOf CommonPage_Load
///
 
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

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/>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top