C # WinForm control development and beautification (1) -- control effect Introduction

Source: Internet
Author: User

I have always been interested in the beautification of. NET controls, and I also like to develop some controls. So far I have had some gains. First, I declare that many of the things I have learned come from the Internet. The purpose of this article is to summarize and review my previous studies, prepare for the next step to make these things a real skin control. A lot of things can't be seen at the beginning. If there is no source, please forgive me.

After reading this series of articles, if you have any good comments and suggestions, please leave a message for me.

Here I would like to thank the http://www.csharpwin.com/default.shtml website, you will find that many of the things I write can be found on this site. Let's take a look at it first:

I. Overview

A. The border of the form is translucent, and the transparency can be set by yourself.

Unimplemented part: the title and button of the form border are also translucent. I tried to put these parts in the opaque part for implementation, and then the transparent part for the above, the effect is achieved, but after the form is maximized

There will be residue in the background when it is reduced to normal hours. It is estimated that the transparency and opacity overlap. At present, there is no good solution to this problem.

About the form part, in my another essay has introduced, interested people can look at: http://www.cnblogs.com/liutao409/archive/2010/11/01/1866104.html

2. Panel controls

A. Some common features of custom Panel: border color, border line width, and border line style.

B. You can set whether each edge is displayed.

C. You can set corner styles and set each corner separately.

D. You can set the gradient fill style and color of the background.

E. All these settings remain unchanged in the rounded corner style.

3. Butten Control

A. the widget consists of three images. You can set the buttons as any irregular style.

B. Note that only transparent PNG or GIF images are supported.

Butten Design Style

4. The drop-down control creates a control that can drop down an empty Panel. Any other controls can be placed in the Panel.

1. Basic drop-down control

2. pull-down controls for 56 ethnic groups

3. Tree drop-down control

4. Date drop-down control

V. DataGridView control with pagination export Function

A. You can set the number of lines displayed on each page during running.

B. Set the display style and export style.

C. You can set the content displayed in the prompt. The columns are displayed or not.

E. It takes only a few seconds to export 10 million data records.

Style of the exported Excel File

Vi. Calendar controls

 

Some other controls will not be displayed today. If you are interested, follow my post! In the following post, I will introduce how these controls are implemented!

 

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.