Vb, Delphi, .net, framework, C++, Java, Pascal,Visual Studio, Asm, Ruby, C#, j#, Cs, Html, Php, Perl, Asp, xHtml Get Free Souce Code Here...



Theme application- Make a different style!

Sample Image - 1.png

Introduction

Dear.
Don't worry about your application style.
I'll tell you how to make your application deference. You can design them to the XP themes. How? Follow me.

1) Create a new windows application project with C#.NET or VB.NET
2) In your project constructor write this code:

/* C# Application */
public WindowsApplication1()
{
InitializeComponent();

////////////////////////////////////////////
///////////////// Add It /////////////////

System.Windows.Forms.Application.EnableVisualStyles();

////////////////////////////////////////////
////////////////////////////////////////////

}

static void Main()
{
Application.EnableVisualStyles();
Application.DoEvents();
Application.Run(new MainForm());
}

/* VB Application */
Public Sub New()
MyBase.New()
InitializeComponent()

''''''''''''''''''''''''''''''''''''''''''''''''''''
'''''''''''''''''''''' Add It '''''''''''''''

System.Windows.Forms.Application.EnableVisualStyles()

''''''''''''''''''''''''''''''''''''''''''''''''''''
''''''''''''''''''''''''''''''''''''''''''''''''''''
End Sub

3) Now, design your from with some of standard components.
For example put a TextBox, a Button and a CheckBox.

4) For your text box, do nothing. But for your button, set the FlatStyle property to the System.You must do that for the Checkbox and the radio button but do nothing for Combo Box, Progress and etc.

Sample screenshot

5) Run your project. Wow. See a deference style.

6) Good luck.

0 comments:

Post a Comment