OnClick Event for Toolbar WebControl

J

Jim Mitchell

I added a toolbar and then added two images that the user can not click on.
I double click on the toolbar in design mode and it does not seem to create
any kind of OnClick Event.

Can someone show me some sample code for the Toolbar's onclick event?

Thanks in advance.
 
J

Jim Mitchell

ANSWER....

Private Sub Toolbar1_ButtonClick(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Toolbar1.ButtonClick

TextBox1.Text = "Clciked"

TextBox1.Text = sender.ToString()

TextBox1.Text = sender.Text

TextBox1.Text = sender.Index

'TextBox1.Text = e.ToolTip.ToString

'textbox1.Text = sender..gettype.IndexOf(e.Button))



End Sub
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top