Enable application framework VS 2013 causing modal forms buttons not to work

I have a midi desktop application that has been working for years.  Recently we upgraded to VS 2013 and in the process we turned on the 'Enable application framework' option to give the buttons and forms more of a rounded/modern look.  Everything has been working fine except for one form.  So we show the midi form, then show a form on that.  We have a SaveAs inputdialog/form we made.  We use a show dialog to show that.  The form comes up fine, but I can't click on either buttons on the form.  I can click in a text box on the form and enter data, but the two buttons don't allow clicking.  I can hit enter and it will go to my accept button code but no clicking.  If I turn off application framework I can then click on the two buttons just like always.  Any idea on what might be causing this?
LVL 1
pmac38CDSAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jacques Bourgeois (James Burger)PresidentCommented:
I cannot say it if will solve your problem, but enabling application framework is not recommended... if you are a professional. You lose a bit of control, and each of the options in there can be set with one line of code.

If all you want it to use the visual styles, then simply launch your application through a Sub Main and call       Application.EnableVisualStyles() before displaying your main form.
pmac38CDSAuthor Commented:
Okay I tried that and my buttons still don't work.  I'm stumped on this one.
Jacques Bourgeois (James Burger)PresidentCommented:
Can we see the code of your Click event and a screen shot of the properties for these buttons?
pmac38CDSAuthor Commented:
Well I figured it out.  We had an onpaint event in this form that we had to put in back when we were running VS2003.   For some reason it didn't like that.  Taking that out fixed the problem and the form works perfectly without it.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
pmac38CDSAuthor Commented:
I figured it out on my own
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.