G
Guest
Hello:
I came across the following code in C# that adds a custom event handler for
triggering the click event on a button:
System.Web.UI.WebControls.Button button;
object buttonOnTab1 = this.UltraWebTab1.Tabs.GetTab(0).FindControl("Button1");
if(buttonOnTab1 != null)
{
button = (System.Web.UI.WebControls.Button)buttonOnTab1;
button.Click += new System.EventHandler(this.ButtonOnTab1Clicked);
}
Can somebody tell me how this code can be re-written using VB.Net?
Thanks.
Venki
I came across the following code in C# that adds a custom event handler for
triggering the click event on a button:
System.Web.UI.WebControls.Button button;
object buttonOnTab1 = this.UltraWebTab1.Tabs.GetTab(0).FindControl("Button1");
if(buttonOnTab1 != null)
{
button = (System.Web.UI.WebControls.Button)buttonOnTab1;
button.Click += new System.EventHandler(this.ButtonOnTab1Clicked);
}
Can somebody tell me how this code can be re-written using VB.Net?
Thanks.
Venki