I have a big application with many old and new forms. When I put a button onto a new form, it looks just as you would expect, a button to click on.
But on old forms the buttons look like a simple rectangle. If I add a new button to an old form, it looks like a simple rectangle and not like a button at all.
Is there a setting for the form that I can change that will allow new type buttons to be added?
Robert
Sorry for the delay i only just noticed this.
To make old buttons look like new buttons you would need to set the use Theme property but also Back, Hover, Pressed, HoverFore and PressedFore Colors using Theme colors to Accent1 and Text1 with the relevant Lighter and Darker percentages.
The properties to use in VBA are BackThemeColorIndex, HoverThemeColorIndex etc. Lighter values use the property BackTint, HoverTint etc darker percentages use BackShade, HoverShade etc. The tint and shade are equal to 100 - the percentage that shows on the property sheet.
You also need to set the Shape property and Gradient which are not visible in the property sheet but can be found in the properties in the VB Editor properties pane.
Rather than setting the properties manually, you can use the Format Painter, double-clicking it will allow you to change multiple controls.
You may still have to set the gradient manually as a change to the back color now sets the gradient to solid color. That is a feature not a bug.
The problem will remain with any new buttons you create on the form. Each form stores the default properties for controls that are used at the time the form was created. To have new Buttons look like new style buttons you would need to set the default properties accordingly.
Once Themed you can change the colors on all buttons in the database by simply setting a new theme. Many people don't use themes since the Themes that Microsoft offer use varying fonts that might not fit controls.
The way to resolve that is to create a new theme with the desired fonts.
Simple way to create new font is to use my free TMDThememaker