C # Basic Video Tutorial 3.2 Common types of controls and how to use them

Source: Internet
Author: User

In this section we describe how to use third-party controls, and we've covered the official controls provided by Microsoft in the previous sections, and don't worry about stability. But most of the time we would like to use third-party controls to make our software more beautiful and unique.

On the simple button, text box This kind of thing, I personally recommend using the Cskin control, note the usage, just put the DLL in the program's debug directory, and then press and hold the drag and drop to the toolbox (you can see a lot of skin beginning of the control name)

?

To test, search text, you can find in addition to the traditional textbox, as well as Skintextbox, the search button will also find that our third-party control

?

The properties of these custom controls are slightly different from Microsoft's own, such as to modify the color, we set the Basecolor and BorderColor two (the text box is also the default Microsoft Jas font, in addition to the text of the shadow, the test can be sent down is really more beautiful than the own)

?

Take a look at some of the more fun controls, Skinhotkey is used to customize hotkeys, such as I set CTRL+D is a custom hotkey

?

Skincode is a verification code control, click can automatically change the verification code, you can also get the real string of this verification code (so we do not have to bother to write a kind of this thing, can be used by others ready to use)

?

The ProgressBar of the third-party control comes with the numerical display, the trackbar is also more beautiful than the official, here is not an example

?

Even if my main form references Ccwin, you can change the entire Form1 to another style (like the VS style, Metro style), and notice his writing,Form1 : The form refers to this Form1 inherits from Microsoft's form, and Form1 : skin_metro refers to the control he inherits from a third party Skin_ Metro (inheritance is an important property of object-oriented), the Form1 inherits from who, who has all the properties and methods, but also on this basis to add new properties and methods (now as long as you know, do not need to delve into)

?

So as long as the setting of a custom ICO icon can be said to be custom software (find this Form1, and then set icon for the other Ico icon, try to keep the size of 32*32, and Xining after you can see the entire software icon also changed over)

?

Let's look at other third-party controls, such as text boxes if you use Fastcoloredtextbox to automatically display line numbers (just like Cskin, drag and drop DLLs into the toolbox to use)

?

Again, such as the 2D Drawing Control zedgraphic can easily display the graph, the specific use of this chart control can refer to my FAQ, here does not do a detailed introduction (he this control is still very complex, can be scaled, can right-click Copy and paste, display a point of data and so on, If you want to make such a control from scratch for a few months, so when we want to implement some of the complex functions of the first to find out if someone else can do it directly to use it.

?

?

For more instructional videos and downloads, please pay attention to the following information:

My Youku Space:

Http://i.youku.com/acetaohai123

?

My online forum:

http://csrobot.gz01.bdysite.com/

?

Problem Exchange:

qq:910358960

Email:[email protected]

?

?

C # Basic Video Tutorial 3.2 Common types of controls and how to use them

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.