最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
自定义按钮(转)
时间:2022-07-02 11:37:17 编辑:袖梨 来源:一聚教程网
//这个用户自定义控件继承自Button类
//实现了在按纽左侧显示图片的任务
//和点击后显示不同样式的功能
//下面就是人家的了
//本人加如了一些注释
using System;
using System.Windows.Forms;
using System.Drawing;
namespace NETToggle
{
///
/// Summary description for customFlatButton.
///
public class customFlatButton : System.Windows.Forms.Button
{
//used to set the type of image that is displayed with the button
public enum TOGGLE_TYPE{ none, XML_TOGGLE, HTML_TOGGLE };//显示类型
private bool bSelected = false;//是否被选择
private System.Windows.Forms.ImageList flatBtnImageList;//从工具栏拖进来的了
//他的一些东西有vs.net工具自动生成
private System.ComponentModel.IContainer components;
private int toggleType = 0;
public int ToggleType
{
get{ return toggleType; }
set{ toggleType = value; }
//实现了在按纽左侧显示图片的任务
//和点击后显示不同样式的功能
//下面就是人家的了
//本人加如了一些注释
using System;
using System.Windows.Forms;
using System.Drawing;
namespace NETToggle
{
///
/// Summary description for customFlatButton.
///
public class customFlatButton : System.Windows.Forms.Button
{
//used to set the type of image that is displayed with the button
public enum TOGGLE_TYPE{ none, XML_TOGGLE, HTML_TOGGLE };//显示类型
private bool bSelected = false;//是否被选择
private System.Windows.Forms.ImageList flatBtnImageList;//从工具栏拖进来的了
//他的一些东西有vs.net工具自动生成
private System.ComponentModel.IContainer components;
private int toggleType = 0;
public int ToggleType
{
get{ return toggleType; }
set{ toggleType = value; }
相关文章
- 雪球官网网页版入口-雪球财经官网网页版 01-30
- 拷贝漫画2.1.0.4安卓下载入口-拷贝漫画2.1.0.4最新版本免费下载 01-30
- 有罪之身全集资源在线看-有罪之身最新一集免费观看入口地址 01-30
- 永劫无间云游戏入口-永劫无间无限畅玩云端官网 01-30
- 蓝莓影院官网入口-2026蓝莓影院电视剧免费观看 01-30
- 找靓机网页版直达-找靓机官网正版入口 01-30