c#winfrom 控件设计时支持的问题,自定义控件问题

来源:百度知道 编辑:UC知道 时间:2024/05/26 07:33:39
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace WindowsControlLibrary1
{
public partial class UserControl1 : TextBox
{
public UserControl1()
{
InitializeComponent();
}
}
[Category("控件大小"),Browsable(true),Description("控件的大小")]
public class MySize
{
private int m_Height = 0;
public int Height
{
get { return m_Height; }
set { m_Height = value; }
}

private int m_Width = 0;
public int Width
{
get { return m_Width; }
set { m_Width = value; }
}
}
}

我想显示
MySize左边有一个“+”
然后点击的时候变成“-”

CuteEditor 6.0 在线HTML编辑器的领航者
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=144183
ComponentArt.Charting.WebChart.dll
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=144386
ComponentArt.Web.UI 2007.2源代码+实例+DLL
http://bbs.topsage.com/dispbbs_123_161434_1.html
ComponentArt.WebUI.2007.1破解DLL
http://bbs.topsage.com/dispbbs.asp?boardID=123&ID=143055
ComponentArt.WebUI.2007.1源代码
http://bbs.topsage.com/dispb