孤独的猫

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

2012年12月30日

摘要: 使用VB.NET开发复合控件界面:控件类型名称 文本ListBox lstSourceListBox lstTargegButton btnAddAdd >Button btnAddAllAdd All >>Button btnRemove < RemoveButton btnClear << Clear代码如下: 1 Public Class SelectCombo 2 Inherits System.Windows.Forms.UserControl 3 4 ' Make the width of the area for the buttons 阅读全文
posted @ 2012-12-30 17:01 孤独的猫 阅读(1563) 评论(0) 推荐(0)

摘要: 带下划线的LABEL控件继承自Label,代码如下: 1 using System.Drawing.Drawing2D; 2 using System.Windows.Forms; 3 using System.Collections.Generic; 4 using System.ComponentModel; 5 using System.Linq; 6 using System.Text; 7 8 namespace CustomControlSample 9 { 10 public class LineLabel:System.Windows.Forms.L... 阅读全文
posted @ 2012-12-30 12:09 孤独的猫 阅读(2354) 评论(0) 推荐(0)