10-14-2011, 12:58 AM
(This post was last modified: 10-14-2011, 04:07 AM by CodingWorm.)
First Download Devexpress Trial Here.
Install DevExpress To The Your Computer.
Now Make New VB.net Project in visual studio.
- After Making New Project Right click on the project under solution item and select add reference.
Step 1
- In the Add reference box select .NET and add following references.
Code:
-DevExpress.Data
-DevExpress.Utils
-DevExpress.OfficeSkins
-DevExpress.BonusSkins
-DevExpress.XtraEditors
- Now On Solution Explorer Click On Show all files.and Expand The Form1 and Double Click on the Form1.Designer.vb
- Then Change The Inheritance of the form as following.
Code:
Partial Class Form1
Inherits DevExpress.XtraEditors.XtraForm
- After Changing The Inheritance Go to Code View And Generate Method New()(Overloading Form1.)and Write Following Code :
Code:
Public Sub New()
' This call is required by the designer.
InitializeComponent()
DevExpress.Skins.SkinManager.EnableFormSkins()
DevExpress.UserSkins.BonusSkins.Register()
DevExpress.UserSkins.OfficeSkins.Register()
' Add any initializatSion after the InitializeComponent() call.
End Sub
- Then Under The Form1's LookAndFeel Property Set UseDefaultLookAndFill = False
Final Step
- And Select Your Skin Which Yo want to apply under skin name property.
- Then Run Your Project You Can See The New Applied Skin At Run Time.
- Now You Can Apply Skin Which You Want.
- If You Have Any Problem Post Here.
- Happy Coding.