I have a wizard control where each step contains a user control.
On each user control (or each step) I have validators, custom validators, required validators, etc. The issue I have is that I am having to write this application in VB.Net, which has been forced on me rather in C#. In the hosting page on its OnLoad event, I usually attach the event by using the usercontrol name.RequiredValidator += usercontrol name.RequiredValidator_Validate. However, in VB.Net I can’t seem to do this!
I have tried using a C# to VB.net converter, but this didn’t work either.
So, my question is this, how do you attach events in the hosting page from the user control in VB.Net????
Say we have this control (pretend I added all the needed attributes):
In C#, you’d wire up an event like:
In VB.Net, you’d wire it up like:
Just apply that to whatever event you are wiring up to. For reference: http://msdn.microsoft.com/en-us/library/ms743596.aspx#Y0