changing form style or borderType at runtime

Is it possible to change a forms style of borderType at runtime???

in 2.2b1 you have this: application.overrideStyle(string,string)

there you can override one style with another so if a form is using style X you can with this call let the form use style Y

But this only has effect if the form is not yet shown again. So it doesn’t have any effect on a visible form. "
(you should do these things in the solution startup method)

Johan, can you add this too: application.currentLookAndFeel() ?
Than we can have/set different styles for each L&F.

for example: if you use Windows L&F you have to make the buttons transparant. In Kunstoff L&F transparant buttons are very ugly. etc.. etc..

added application.getCurrentLookAndFeel()

This is really good news!

Now you can make your solution look great under every L&F!!
WONDERFULL!! :D

one question: If you change the style, than the styleclasses stays the same? for example, I have style1 (with a style-class: button1) as default and I change it (with the method) to style2. (also with a style-class: button1)
Is this still working?

yes it is a complete replace. Just as if you do it in the designer.