learn to do C # skin beautification (1)
-- Overview and navigation
Every time you look at QQ, 360, and so on, are you always wondering when my software will wear such a beautiful coat? But now when you see thisArticleYou don't have to worry about it any more, because next I will show you these beautiful clothes step by step!
Before writing this series of articles, I would like to thank su Fei of the blog Park. I also think that his articles have started to be made with skin! The articles I wrote in this series are the same as those of Su Fei. Also, I want to make this series of articles so that beginners who just come into contact with skin programming can follow me step by step to create skin, so I will explain it in detail. I don't know if this is a little different from Su Fei's big brother ?! In addition, the series I wrote will not include the skin swap function for the moment, and the robustness and comprehensiveness of the control may also be inadequate. I hope you will forgive me, after all, I have just come into contact with the skin to make this content. Please forgive me for not writing well or having to make some mistakes. Of course, if you have good suggestions or want to share with me the content, I would like. My mailboxQianlf2008@163.com
Next, I will write all the controls in a user control library qlfui. In future software, if you want to apply these skins, simply inherit them or use them. The entire control library can be simply divided into two categories: user control class and Form class. User Controls are common user controls such as button controls, so that they are no longer monotonous! The Form class is to write a form with skin. In the future, other forms will automatically carry skin as long as they are inherited (more convenient ).
After talking about this, let's take a look at what we finally made!
In the future, the content I will explain will look like this: (for time reasons, some controls may increase or decrease, but I will try to explain them as much as possible)
Controls:
--- Button control creation
--- Create a checkbox control
--- Create textboxex Control
Form class:
--- Create a mainform (as long as you inherit the form, you can basically put on the simplest coat)
--- Form creation 1
--- Form creation 2
--- Form creation 3
--- Form skin replacement