1.ChartControl 显示条形图 ChartControl1.Titles.Clear() ChartControl1.Series.Clear() Dim db As DataTable SqlDataAdapter1.SelectCommand.CommandText =sqlstr db = New DataTable SqlDataAdapter1.Fill(db) Dim series1 As DevExpress.XtraCharts.Series = New DevExpr…
本文实例中的自定义类PictureBox继承于UserControl,最终实现简单的分屏功能.分享给大家供大家参考之用.具体实现代码如下: public partial class PictureControl : UserControl { public event MouseEventHandler PicControl_DoubleClick; private int picNum; /// <summary> /// 屏幕个数 /// </summary> public i…
先创建实体基类:NotificationObject(用来被实体类继承) 实现属性更改通知接口: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel; namespace TabControlDemo { public class NotificationObject:INotifyPropertyChanged { pu…
下面演示如何利用列表控件 ListBox 实现多选与移动选项: using IMS.WinFormClient.UserControls; using System; using System.Collections.Generic; using System.Windows.Forms; namespace IMS.WinFormClient { public partial class ListBoxForm : Form { UCReport _uCReport = null; // pa…