Custom button (Turn)

Source: Internet
Author: User
This user-defined control inherits from the Button class
The task of displaying the picture on the left of the button is implemented
and click to display the features of different styles
There's a family here.
I added some notes.
Using System;
Using System.Windows.Forms;
Using System.Drawing;
Namespace Nettoggle
{
<summary>
Summary description for Customflatbutton.
</summary>
public class CustomFlatButton:System.Windows.Forms.Button
{
Used to set the type of image this is displayed with the button
Public enum toggle_type{None, Xml_toggle, Html_toggle};//Display Type
private bool bselected = false;//is selected
Private System.Windows.Forms.ImageList flatbtnimagelist;//dragged in from the toolbar.
Some of his stuff has vs.net tools automatically generated
Private System.ComponentModel.IContainer components;
private int toggletype = 0;
public int Toggletype
{
get{return toggletype;}
set{toggletype = value;}

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.