C # winform Development Series-checkbox/button/label/progressbar

Source: Internet
Author: User

Includes custom color display checkbox, crystal effect button, transparent rounded corner label, Vista effect progressbar and other controls (ArticleAnd RelatedCodeCollected from the Internet for reference only. The copyright belongs to the original author! ).

1. Custom color display checkbox coloredcheckcontrols.zip


2. Realistic push button control like Vista effect crystalbutton.rar vistabutton.rar

3. Fully customized XP style progress bar

Xpssbar features

1. CPU resources are not used much, because dual buffering is used.
2. Dual-buffering provides good smooth processing without blinking
3. The text uses the anti-alias effect to make the text look better.
4. Use text shadow
5. Full Customization

4. display text and embed progress bar controls in the status bar

5. A rotator Control for winforms

6. The vertical label control of the transparent background

Translation
Randz. Extended vertical label control in C #. net

Introduction
This document describes how to create a vertical label user control with a transparent background color in C. This user control allows you to draw text from the bottom or top.

This article is a continuation of vertical label control in VB. NET. In fact, to be more accurate, I translated his work into C # and added the function of displaying text from the bottom up. In addition, the background is transparent.

7. label controls with font borders

Translation
Cesarsouza. A simple label-like control with border effect

Introduction

When I was designing some interfaces, I found that I needed something similar to adding a border around the font. Unfortunately, not only does. net not provide this effect on the font with borders, but I cannot find any free implementation on the Internet. So I decided to do it myself.

 Background

At the beginning, I plan to implement it by drawing two texts of different sizes on the screen. Later, I published this article on codeproject, and hoped that someone could come up with a better solution. The results are also true. fwsouthern provides good suggestions. The main idea is the same, but the overlapping text method is no longer used. Instead, graphicpath, brush and other effects are adopted. Of course, the latter method is much better.

I have no experience with GDI + and do not know how to draw images directly on the screen. So I learned how to get started with Bob Powell.

Create Code

Now, the encoding is started. First, I created an object that inherits from system. windows. forms. the onpaint method is rewritten, and several new attributes are added to make them feel more like label-like.

8. Use Vista-style controls. NET 2.0

9. Customizable mobile font label control with transparent background color

10. C # Vista style progress bar

11. Similar to the WinRAR compression progress bar rarprogressbar.rar

12. Custom optiongroup optiongroup.rar

13. splitbutton splitbutton.rar

14. verticalprogressbar.rar

15. Rotating progress circle component during program loading

[Translation]

Martin Gagne.How to Write a loading circle animation in. Net?

[Introduction]

In the past, we used a progress bar to displayProgramLoading. However, this is no longer popular.

LookSQL Server Management studio Express,Windows Media Center,Encarta 2006OrFirefox/IE7When a page is loaded, a circle is continuously rotated to show that the program is loading.

16. Multi-task Status display progress bar list (Vista style, cool)

[Translation]

Igor velikorossov follows the Status List

Introduction

This article is inspired by the post "status list-Vista style" written by shapour ".

The reason for writing this project and article is:
1. the original project uses VB. net, but I am a C # developer (although I often and can smoothly read the code in VB or other languages, I still can't help writing it out ).
2. I found that the original control has many restrictions, so I decided to modify and improve the project.

Improvements

The improvements of this project are as follows:
-The statusitem class is called a control derived class, which means it inherits all the good features of the control class of the parent class. The reason for these changes is that, in this way, the paint of the item itself is not executed by statuslist, which is a more object-oriented method. This method also makes it possible to add other controls to it. (I have not further tested this assumption, but it is okay when I write this article .)

-I don't want to hide the heading information if I scroll down when there are many task items ). I hope this heading will always be visible. The project also provides an interface to hide heading. If you do not need heading, you can hide heading.

-I personally think that all items in the list should be of a width, which looks better. You can move or change a single item in the designer, but the control will automatically Rearrange these items.

-I have added some events: statusitemadded, statusitemremoved, and statusitemstatuschanged. They will give you enough adaptation to track the status of each item.
.

Tasks in different running states

Code usage

Code usage is very direct and simple. reference the Linked Library (or directly add it to your vs ide Toolbox), and then add this control to your form. In the Property controller, the control shows enough property settings.

Point of interest

A better design is to easily add 3D frames to items. You can learn more from statusitempane. CS.
The funny thing is that when I got stuck in this design and spent several hours working on it, I found that the final UI was not what I wanted. Therefore, the border is not displayed by default.

There are also a lot of functions that can be improved (there is no end to improvement ). One of them is some of statusitem's virtual attributes (like, foreground color) which can be removed from the object and put in a single type object. However, I think this will be done for you, or modify it at some point in the future (if you are interested in it ).

I hope that if there are many items in the container, you can scroll them with the scroll wheel. However, so far, I have not had enough time to do some research in this direction. If anyone has such a solution, I 'd like to hear it.

History

2007-04-23: Version 1.0.0.0.

Credits
Thanks to shapour for its origins.

Author: Igor velikorossov

Click here to view the personal description of Igor velikorossov.

 

 

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.