打印本文 打印本文 关闭窗口 关闭窗口
自定义控件--xp风格按钮(可设置文字颜色)
作者:武汉SEO闵涛  文章来源:敏韬网  点击数8771  更新时间:2009/4/25 0:44:49  文章录入:mintao  责任编辑:mintao

Imports System.Drawing

Imports System.ComponentModel

Public Class winxpbutton

    Inherits System.Windows.Forms.Button

 

 

    Private my_mouseDown As Boolean = False ''''鼠标按下

    Private my_mouseHover As Boolean = False ''''鼠标移到上面

    Private m_textcolor As Color = System.Drawing.Color.Black ''''字体颜色

    <Description("字体颜色。")> _

    Public Property textcolor() As Color

        Get

            Return m_textcolor

        End Get

        Set(ByVal Value As Color)

            m_textcolor = Value

            Me.Invalidate()

[1] [2] [3] [4] [5] [6] [7] [8] [9] [10]  ...  下一页 >> 

打印本文 打印本文 关闭窗口 关闭窗口