Any way to use a graphic chart (similar to a CSS in HTML), to harmonize User Forms instead of changing fonts and colors one by one? Thanks -- ///// (o)-(o) ---ooO---(_)---Ooo-------------------------- Patrick EMIN http://www.CADxp.com The french CAD portal
CSS is good stuff I'm not totally sure why you would want this in a windows application but you can do it. You can somewhat emulate CSS in any OOP model but you'd have to write a routine to apply the 'styles' when a form is loaded initially. I would probably use a module with a bunch of public constants, or at least as many as you need you have properties that you want to control. Then create a routine to loop through all the given objects on a form (buttons, text boxes, labels, etc...) and set the desired properties to the corresponding constants. It would be quite a bit of work to set up, but you could easily re-use it in future projects, building upon it when necessary. Regards, Jacob Dinardi