Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

onclick not firing

Status
Not open for further replies.

overDeveloper

Programmer
Dec 11, 2006
58
US
I have a button that I have some code in the _Click event that is not firing, I think I am missing something in the InitializeComponent... any ideas? Does this even make sense?
 
have any relevant code to go along with the problem?

[sub]____________ signature below ______________
The worst mistake you'll ever make is to do something simply the way you know how while ignoring the way it should be done[/sub]
 
make sure that you have

Handles yourbuttonid.click

attached to the onclick event sub

-DNG
 
DotNetGnat's advice is most likely what you need. I am using VS 2003, and every now and then, the Handle statement on the end just doesn't show up; I have to type it in.

Example below:

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) [red]Handles Button2.Click[/red]
Response.Redirect("config_default.aspx")
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top