button automatically changing property when added to groupbox

zid

Member
Joined
Mar 5, 2009
Messages
5
Programming Experience
Beginner
hi,
I added a groupbox and changed its heading's font and fore color. The problem is that, when I add a button to this groupbox, it automatically changes its font and fore color to that of the groupbox!!!!!!!!!!!
How to prevent this from happening?

plz help

Thanks in advance
zid
 
You can add a panel inside each group box and set that panel's Font to the default value so the controls you add to it inherit that value instead.

Sorry I don't have any better solution for you...
 
Thanks Stonkie, If you ever come across a permanent fix please let me know. Till then I will stick to this panel method.If I get a solution I will share it in this thread.
Thanks again
 
Back
Top