Also check to see if the forms FormClosing event is being handled, since it is possible to cancel the closing event by changing the eventargs of that event.
Main Topics
Browse All TopicsWindows form in Visual Basic 2008. I have a form with a button and a me.close behind it. But when I click it nothing happens. I put a debug break on it but it never gets there.
I set the CancelButton to this button and the Esc does trigger it and close the screen, but not when I press the button. It does work on other forms in the project.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Well...it's not unheard of to have a "corrupt" form...basically the designer file gets screwed up and funny things happen. =\
Does the problem persist with a NEW form and a button/datarepeater on it? Build the form as bare bones as possible and then slowly starting adding things to it to see what "breaks" it (if anything).
Business Accounts
Answer for Membership
by: ITHelper80Posted on 2009-09-08 at 08:10:10ID: 25282683
Have you checked to make sure the Clost Button is named butClose? Thats the only thing I can see that would prevent the sub from activating.
Double click on the button in VB 08 and see which sub it brings you to.