Link to home
Start Free TrialLog in
Avatar of pmac38CDS
pmac38CDS

asked on

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?
Avatar of Jacques Bourgeois (James Burger)
Jacques Bourgeois (James Burger)
Flag of Canada image

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.
Avatar of pmac38CDS
pmac38CDS

ASKER

Okay I tried that and my buttons still don't work.  I'm stumped on this one.
Can we see the code of your Click event and a screen shot of the properties for these buttons?
ASKER CERTIFIED SOLUTION
Avatar of pmac38CDS
pmac38CDS

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I figured it out on my own