Click here to Skip to main content
15,891,777 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hi
I have a Winforms App in .NET 3.5. I am using a Treeview Control and binding it to the database table(s). All the click and expand events work fine in development/debug mode.However , when I create a setup package in 'Release' mode for the app and install it on the same machine (or other), then the click and expand events do not work. Any suggestions from the CP experts?
Posted
Updated 8-Nov-11 3:46am
v3
Comments
Sergey Alexandrovich Kryukov 8-Nov-11 11:43am    
Not enough information. Just check up all settings in both configurations. They are just configurations with slightly different options, nothing else; check up those options. Who knows where could you screw up?
--SA
bbirajdar 10-Nov-11 3:59am    
thank you for the expert advice

1 solution

I ran into a odd issue with my treeview when deploying, I had to add the following lines when loading the application.

I put this code in main() startup method:
System.Windows.Forms.Application.EnableVisualStyles();
System.Windows.Forms.Application.DoEvents();
 
Share this answer
 
Comments
bbirajdar 10-Nov-11 3:40am    
Thank you Pete.. I will try this and will let you know if this works for me
Pete BSC 22-Nov-11 15:17pm    
Any luck?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900