当前位置:编程学习 > C#/ASP.NET >>

提供一个测试用的“平面按纽”控件代码!如想看结果,请自行编译

环境:win2000 server 、DOTNET beta2
本程序旨在练习,请朋友们多指教
using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Windows.Forms;
namespace SohoContral
{
    /// <summary>
    /// 定义平面格式的按扭
    /// </summary>
    public class FlatButton : System.Windows.Forms.UserControl
    {
        private string _text="";           //定义按纽文字
        public string Text{
       set{_text=value;}
       get{return _text;}
        }
        
        private System.Windows.Forms.Button button1;
        private System.Windows.Forms.Label label1;
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.Container components = null;
        public FlatButton()
补充:asp.net教程,Win开发 
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,