How to change Fonts in project globally?

I’ve a written a huge piece of software with a lot of windows and controls (Texts, Buttons, Listboxes etc).
Now I would like to change the font settings (from TrebuchetMS to Helvetica Neue) without touching each item manually.

How can this be done without touching each element manually?
Is kinda global search & replace with external text editor possible?

[quote=165453:@Tomas Jakobs]I’ve a written a huge piece of software with a lot of windows and controls (Texts, Buttons, Listboxes etc).
Now I would like to change the font settings (from TrebuchetMS to Helvetica Neue) without touching each item manually.

How can this be done without touching each element manually?
Is kinda global search & replace with external text editor possible?[/quote]

You could use something like this in each window Open event :

for i as integer = 0 to self.ControlCount-1 if self.Control(i) isa PushButton then Pushbutton(self.Control(i)).TextFont = "TrebuchetMS" Pushbutton(self.Control(i)).TextSize = 14 end if next

It is necessary to do it for each kind of control because some do not have TextFont and TextSize. I also added TextSize because some controls may be System zero.

You could use the Window function to do that system level, but that can be cumbersome because all windows have to be instantiated then made invisible.

okay thanks will check this out today!