Hello,
Ive built a Winforms RadForms application with VB.Net. The application contains several forms that contains several rad controls. The form contains several buttons when clicked changes the theme. But it takes around 3-4 seconds for the theme to change. Now what I want to achieve is the application must show a message box with the message- "Theme Changed" when the theme has changed. I was wondering if there are any events that can be fired during a theme change and found one event named "ThemeNameChanged". I set it up like this:
Private Sub (source as Object, args As ThemeNameCahngedEventArgs) Handles Me.ThemeNameChanged
Msgbox("Theme Changed")
EnsSub
Then I switch the theme with the click of a button:
Private sub Button1_Click(...) Handles Button1.Click
ThemeResolutionService.ApplicationThemeName = "TelerikMetroBlue"
End Sub
But when click Button1 the theme changes but the message is not displayed once the theme has changed. So How Do I dsiplay a message when the theme has changed?