Use only one command of the control to implement interface skin replacement and multi-language version

Source: Internet
Author: User

During this period of time, I have been working on the interface. At the beginning, it was a simple texture operation. Later, I felt that it was not universal and the code was not reusable, you also need to do a lot of basic work (you need to add images on the interface and set the order of stacked images ). Later, it was encapsulated into a class, and the code reusability was improved. However, you had to add multiple controls on the interface. In addition, you had to add a lot of code when the form was changed and scaled down. Later, I suddenly thought that VB could realize the automatic addition of controls. After a try, it really worked well. Later, some events were integrated into the class.

Currently, the class is encapsulated into a control, which is easier to use. You only need one command to complete interface skin replacement and multi-language version.

Private Sub Form_Load ()
YFSkin1.SkinInit Me only requires this line of code

End Sub

This is some of the interfaces I have designed (skin and language files can be customized and can be expanded infinitely)

Controls use source code: http://www.bjjr.com.cn/yefan/yfskins.rar


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.