When you want to use a different skin theme for your DevExpress Winform control but it still doesn't change when you run it, try doing these:
1. Go to your project properties and click on the "View Applicaiton Events"
2. Select "MyApplicationEvents" - "Startup" and under your startup procedure add these codes:
DevExpress.UserSkins.BonusSkins.Register()
DevExpress.Skins.SkinManager.EnableFormSkins()
DevExpress.Skins.SkinManager.EnableMdiFormSkins()
Example:
Imports Microsoft.VisualBasic.ApplicationServices
Namespace My
' The following events are available for MyApplication:
' Startup: Raised when the application starts, before the startup form is created.
' Shutdown: Raised after all application forms are closed. This event is not raised if the application terminates abnormally.
' UnhandledException: Raised if the application encounters an unhandled exception.
' StartupNextInstance: Raised when launching a single-instance application and the application is already active.
' NetworkAvailabilityChanged: Raised when the network connection is connected or disconnected.
Partial Friend Class MyApplication
Private Sub MyApplication_Startup(sender As Object, e As StartupEventArgs) Handles Me.Startup
DevExpress.UserSkins.BonusSkins.Register()
DevExpress.Skins.SkinManager.EnableFormSkins()
DevExpress.Skins.SkinManager.EnableMdiFormSkins()
End Sub
End Class
End Namespace
3. Now go to your Windows form designer and add a component called "DefaultLookAndFeel" and then select the skin theme that you want to use. Compile and run your solution and it should work.
I tried all other solutions suggested from different postings but this one worked for me.
Wednesday, 16 October 2019
Thursday, 15 August 2019
A Systems Developer should strive like a "Star Jasmine"
According to this site gardenia.net a "Star Jasmine" is an award-winning vigorous, medium-sized, evergreen shrub or vine...
My mum-in-law planted this one on one side of our previous house and it went really well, in fact too much well that I have to keep it trimmed or tamed as it tries to climb in the ceiling of our house via tiny gaps. Amazingly this plant also tries to make paths and widen gaps as I've discovered that it had made a bulging and very tough vines or trunk in between gaps of our steel fence, it had forced it ways in the gaps that it had deformed the look of the steel fence, not much but visibly noticeable.
Just like a "Star Jasmine" nothing should stop you from striving, learning and finding solutions even if you are working on a constrained environment like working in a corporate company where everything is restrained (of course for the sake of security/rules and paranoia - perhaps?). We should be vigorous and always aim to make path - not just a path but a good path, firm but innovative!
My mum-in-law planted this one on one side of our previous house and it went really well, in fact too much well that I have to keep it trimmed or tamed as it tries to climb in the ceiling of our house via tiny gaps. Amazingly this plant also tries to make paths and widen gaps as I've discovered that it had made a bulging and very tough vines or trunk in between gaps of our steel fence, it had forced it ways in the gaps that it had deformed the look of the steel fence, not much but visibly noticeable.
Just like a "Star Jasmine" nothing should stop you from striving, learning and finding solutions even if you are working on a constrained environment like working in a corporate company where everything is restrained (of course for the sake of security/rules and paranoia - perhaps?). We should be vigorous and always aim to make path - not just a path but a good path, firm but innovative!
Subscribe to:
Posts (Atom)