Commit eeada1a9 HZH

添加描述信息

1 个父辈 0356ae55
正在显示 64 个修改的文件 包含 493 行增加134 行删除
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:UCBtnExt.cs
// 创建日期:2019-08-15 15:57:36
// 功能描述:按钮
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:UCBtnFillet.cs
// 创建日期:2019-08-15 15:58:03
// 功能描述:按钮
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:UCBtnImg.cs
// 创建日期:2019-08-15 15:58:07
// 功能描述:按钮
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
......@@ -41,7 +46,7 @@ namespace HZH_Controls.Controls
}
set
{
this.imageList1.Images.Clear();
this.imageList1.Images.Clear();
this.imageList1.Images.Add(value);
this.lbl.ImageIndex = 0;
}
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:UCBtnsGroup.cs
// 创建日期:2019-08-15 15:58:13
// 功能描述:按钮组
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
......@@ -41,6 +46,7 @@ namespace HZH_Controls.Controls
m_selectItem = value;
if (m_selectItem == null)
m_selectItem = new List<string>();
SetSelected();
}
}
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:UCCheckBox.cs
// 创建日期:2019-08-15 15:58:34
// 功能描述:CheckBox
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
......@@ -14,12 +19,12 @@ namespace HZH_Controls.Controls
{
[Description("选中改变事件"), Category("自定义")]
public event EventHandler CheckedChangeEvent;
[Description("字体"), Category("自定义")]
public override Font Font
{
get
{
{
return base.Font;
}
set
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:UCComboBox.cs
// 创建日期:2019-08-15 15:58:51
// 功能描述:ComboBox
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:DataGridViewCellEntity.cs
// 创建日期:2019-08-15 15:59:03
// 功能描述:DataGridView
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
......@@ -10,6 +15,6 @@ namespace HZH_Controls.Controls
public string Title { get; set; }
public int Width { get; set; }
public System.Windows.Forms.SizeType WidthType { get; set; }
}
}
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:DataGridViewCellEventArgs.cs
// 创建日期:2019-08-15 15:59:10
// 功能描述:DataGridView
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:DataGridViewCellEventHandler.cs
// 创建日期:2019-08-15 15:59:13
// 功能描述:DataGridView
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:DataGridViewColumnEntity.cs
// 创建日期:2019-08-15 15:59:17
// 功能描述:DataGridView
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Drawing;
namespace HZH_Controls.Controls
{
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:IDataGridViewRow.cs
// 创建日期:2019-08-15 15:59:21
// 功能描述:DataGridView
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:UCDataGridView.cs
// 创建日期:2019-08-15 15:59:25
// 功能描述:DataGridView
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:UCDataGridViewRow.cs
// 创建日期:2019-08-15 15:59:31
// 功能描述:DataGridView
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:DateTimePickerType.cs
// 创建日期:2019-08-15 15:59:40
// 功能描述:DateTime
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:UCDatePickerExt.cs
// 创建日期:2019-08-15 15:59:46
// 功能描述:DateTime
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:UCDateTimeSelectPan.cs
// 创建日期:2019-08-15 15:59:51
// 功能描述:DateTime
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:UCTimePanel.cs
// 创建日期:2019-08-15 15:59:56
// 功能描述:DateTime
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:UCKeyBorderAll.cs
// 创建日期:2019-08-15 16:00:06
// 功能描述:KeyBord
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
......@@ -122,7 +127,7 @@ namespace HZH_Controls.Controls
}
break;
}
}
}
}
}
}
......@@ -142,7 +147,7 @@ namespace HZH_Controls.Controls
pc.Tag = strTag;
break;
}
}
}
}
}
}
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:UCKeyBorderNum.cs
// 创建日期:2019-08-15 16:00:10
// 功能描述:KeyBord
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
......@@ -21,7 +26,7 @@ namespace HZH_Controls.Controls
get { return useCustomEvent; }
set { useCustomEvent = value; }
}
[Description("数字点击事件"),Category("自定义")]
[Description("数字点击事件"), Category("自定义")]
public event EventHandler NumClick;
[Description("删除点击事件"), Category("自定义")]
public event EventHandler BackspaceClick;
......@@ -29,7 +34,7 @@ namespace HZH_Controls.Controls
public event EventHandler EnterClick;
public UCKeyBorderNum()
{
InitializeComponent();
InitializeComponent();
}
private void Num_MouseDown(object sender, MouseEventArgs e)
......@@ -63,8 +68,8 @@ namespace HZH_Controls.Controls
EnterClick(sender, e);
}
if (useCustomEvent)
return;
SendKeys.Send("{ENTER}");
return;
SendKeys.Send("{ENTER}");
}
}
}
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:UCKeyBorderPay.cs
// 创建日期:2019-08-15 16:00:14
// 功能描述:KeyBord
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
......@@ -155,7 +160,7 @@ namespace HZH_Controls.Controls
{
if (values[i].ToString("0.##").Length < 4)
{
lbl[i].Font = new System.Drawing.Font("Arial Unicode MS", 30F);
lbl[i].Font = new System.Drawing.Font("Arial Unicode MS", 30F);
}
else
{
......@@ -172,7 +177,7 @@ namespace HZH_Controls.Controls
graphics.Dispose();
}
lbl[i].Tag = lbl[i].Text = values[i].ToString("0.##");
}
}
}
private void Num_MouseDown(object sender, MouseEventArgs e)
{
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:IPageControl.cs
// 创建日期:2019-08-15 16:00:24
// 功能描述:PageControl
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:PageControlEventHandler.cs
// 创建日期:2019-08-15 16:00:47
// 功能描述:PageControl
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
......

// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:TreeViewEx.cs
// 创建日期:2019-08-15 16:00:55
// 功能描述:TreeView
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.ComponentModel;
......@@ -340,7 +345,7 @@ namespace HZH_Controls.Controls
private void treeview_DrawNode(object sender, DrawTreeNodeEventArgs e)
{
try
{
{
if (e.Node == null || !this._isShowByCustomModel || (e.Node.Bounds.Width <= 0 && e.Node.Bounds.Height <= 0 && e.Node.Bounds.X <= 0 && e.Node.Bounds.Y <= 0))
{
e.DrawDefault = true;
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:UCHorizontalList.cs
// 创建日期:2019-08-15 16:01:06
// 功能描述:HorizontalList
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:UCHorizontalListItem.cs
// 创建日期:2019-08-15 16:01:13
// 功能描述:HorizontalList
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
......@@ -23,7 +28,7 @@ namespace HZH_Controls.Controls
int intWidth = ControlHelper.GetStringWidth(value.Value, lblTitle.CreateGraphics(), lblTitle.Font);
if (intWidth < 50)
intWidth = 50;
this.Width = intWidth +20;
this.Width = intWidth + 20;
lblTitle.Text = value.Value;
SetSelect(false);
}
......@@ -53,7 +58,7 @@ namespace HZH_Controls.Controls
}
else
{
lblTitle.ForeColor = Color.FromArgb(64,64,64);
lblTitle.ForeColor = Color.FromArgb(64, 64, 64);
ucSplitLine_H1.Visible = false;
this.lblTitle.Padding = new Padding(0, 0, 0, 0);
}
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:UCListExt.cs
// 创建日期:2019-08-15 16:01:22
// 功能描述:List
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:UCListItemExt.cs
// 创建日期:2019-08-15 16:01:34
// 功能描述:List
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:UCPagerControl.cs
// 创建日期:2019-08-15 16:00:32
// 功能描述:PageControl
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
......@@ -14,7 +19,7 @@ namespace HZH_Controls.Controls
{
public UCPagerControl()
{
InitializeComponent();
InitializeComponent();
}
private void panel1_MouseDown(object sender, MouseEventArgs e)
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:UCPagerControl2.cs
// 创建日期:2019-08-15 16:00:37
// 功能描述:PageControl
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:UCPagerControlBase.cs
// 创建日期:2019-08-15 16:00:41
// 功能描述:PageControl
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:IMenuItem.cs
// 创建日期:2019-08-15 16:02:14
// 功能描述:Menu
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:MenuItemEntity.cs
// 创建日期:2019-08-15 16:02:18
// 功能描述:Menu
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:UCMenu.cs
// 创建日期:2019-08-15 16:02:22
// 功能描述:Menu
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
......@@ -255,7 +260,7 @@ namespace HZH_Controls.Controls
{
Control cMenu = menuitem as Control;
int index = m_lstParentItems.IndexOf(cMenu);
this.Controls.SetChildIndex(m_panChildren,m_lstParentItems.Count- index-1 );
this.Controls.SetChildIndex(m_panChildren, m_lstParentItems.Count - index - 1);
m_panChildren.Controls.Clear();
int intItemHeigth = 0;
foreach (var item in menuitem.DataSource.Childrens)
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:UCMenuChildrenItem.cs
// 创建日期:2019-08-15 16:02:26
// 功能描述:Menu
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:UCMenuParentItem.cs
// 创建日期:2019-08-15 16:02:35
// 功能描述:Menu
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:ProcessExt.cs
// 创建日期:2019-08-15 16:02:44
// 功能描述:Process
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:UCRadioButton.cs
// 创建日期:2019-08-15 16:03:13
// 功能描述:RadioButton
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
......@@ -169,7 +174,7 @@ namespace HZH_Controls.Controls
private void UCRadioButton_Load(object sender, EventArgs e)
{
if (this.Parent != null&&this._checked)
if (this.Parent != null && this._checked)
{
foreach (Control c in this.Parent.Controls)
{
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:UCSplitLine_H.cs
// 创建日期:2019-08-15 16:03:21
// 功能描述:Split
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:UCSplitLine_V.cs
// 创建日期:2019-08-15 16:03:25
// 功能描述:Split
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:KeyBoardType.cs
// 创建日期:2019-08-15 16:03:33
// 功能描述:KeyBoard
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:TextBoxEx.cs
// 创建日期:2019-08-15 16:03:44
// 功能描述:TextBox
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
......@@ -204,7 +209,7 @@ namespace HZH_Controls.Controls
private void TextBoxEx_TextChanged(object sender, EventArgs e)
{
if (this.Text=="")
if (this.Text == "")
{
this.m_strOldValue = this.Text;
}
......@@ -238,7 +243,7 @@ namespace HZH_Controls.Controls
}
protected override void OnPaint(PaintEventArgs e)
{
{
base.OnPaint(e);
if (string.IsNullOrEmpty(this.Text) && !string.IsNullOrEmpty(this._promptText))
{
......@@ -257,7 +262,7 @@ namespace HZH_Controls.Controls
}
}
}
}
}
}
protected override void WndProc(ref Message m)
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:TextBoxTransparent.cs
// 创建日期:2019-08-15 16:03:49
// 功能描述:TextBox
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
......@@ -419,7 +424,7 @@ namespace HZH_Controls.Controls
//Draw the caret
Point caret = this.findCaret();
Pen p = new Pen(this.ForeColor, 3);
tempGraphics2.DrawLine(p, caret.X+2, caret.Y + 0, caret.X+2, caret.Y + myFontHeight);
tempGraphics2.DrawLine(p, caret.X + 2, caret.Y + 0, caret.X + 2, caret.Y + myFontHeight);
tempGraphics2.Dispose();
}
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:UCNumTextBox.cs
// 创建日期:2019-08-15 16:03:54
// 功能描述:TextBox
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:UCTextBoxEx.cs
// 创建日期:2019-08-15 16:03:58
// 功能描述:TextBox
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
......@@ -249,7 +254,7 @@ namespace HZH_Controls.Controls
txtInput.GotFocus += (a, b) =>
{
if (isFocusColor)
this.RectColor = Color.FromArgb(78,169,255);
this.RectColor = Color.FromArgb(78, 169, 255);
};
txtInput.LostFocus += (a, b) =>
{
......@@ -465,7 +470,7 @@ namespace HZH_Controls.Controls
}
m_HandAppWin = m_HandPWin.MainWindowHandle;
Control p = m_frmAnchor.Controls.Find("keyborder", false)[0];
SetParent(m_HandAppWin, p.Handle);
SetParent(m_HandAppWin, p.Handle);
ControlHelper.SetForegroundWindow(this.FindForm().Handle);
MoveWindow(m_HandAppWin, -111, -41, 626, 412, true);
//this.txtInput.SelectionStart = m_intSelectionStart;
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:UCControlBase.cs
// 创建日期:2019-08-15 16:04:12
// 功能描述:ControlBase
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
......
// 版权所有 河南汇智创享信息科技有限公司
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:FrmAnchor.cs
// 作  者:HZH
// 创建日期:2019-02-27 11:48:56
// 功能描述:停靠窗体
// 任务编号:POS
// 创建日期:2019-08-15 16:04:24
// 功能描述:FrmAnchor
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.ComponentModel;
......@@ -82,7 +82,7 @@ namespace HZH_Controls.Forms
this.Size = size;
this.HandleCreated += FrmDownBoard_HandleCreated;
this.HandleDestroyed += FrmDownBoard_HandleDestroyed;
Point p = parentControl.Parent.PointToScreen(parentControl.Location);
int intX = 0;
int intY = 0;
......@@ -164,7 +164,7 @@ namespace HZH_Controls.Forms
public bool PreFilterMessage(ref Message m)
{
if (m.Msg != 0x0201 || this.Visible == false)
if (m.Msg != 0x0201 || this.Visible == false)
return false;
var pt = this.PointToClient(MousePosition);
this.Visible = this.ClientRectangle.Contains(pt);
......@@ -186,7 +186,7 @@ namespace HZH_Controls.Forms
ControlHelper.AnimateWindow(this.Handle, 100, ControlHelper.AW_VER_POSITIVE);
else
{
ControlHelper.AnimateWindow(this.Handle, 100, ControlHelper.AW_VER_NEGATIVE);
ControlHelper.AnimateWindow(this.Handle, 100, ControlHelper.AW_VER_NEGATIVE);
}
}
else
......@@ -196,17 +196,17 @@ namespace HZH_Controls.Forms
else
{
ControlHelper.AnimateWindow(this.Handle, 100, ControlHelper.AW_VER_POSITIVE | ControlHelper.AW_HIDE);
}
}
}
private void timer1_Tick(object sender, EventArgs e)
{
if (this.Owner != null)
{
Form frm = this.Owner as Form;
IntPtr _ptr=ControlHelper.GetForegroundWindow() ;
IntPtr _ptr = ControlHelper.GetForegroundWindow();
if (_ptr != frm.Handle)
{
this.Hide();
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:FrmBase.cs
// 创建日期:2019-08-15 16:04:31
// 功能描述:FrmBase
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:FrmDialog.cs
// 创建日期:2019-08-15 16:04:36
// 功能描述:FrmDialog
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:FrmInputs.cs
// 创建日期:2019-08-15 16:04:41
// 功能描述:FrmInputs
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:FrmTemp1.cs
// 创建日期:2019-08-15 16:04:48
// 功能描述:FrmTemp1
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:FrmTips.cs
// 创建日期:2019-08-15 16:04:54
// 功能描述:FrmTips
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:FrmTransparent.cs
// 创建日期:2019-08-15 16:05:00
// 功能描述:FrmTransparent
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
......@@ -33,7 +38,7 @@ namespace HZH_Controls.Forms
public FrmTransparent()
{
InitializeComponent();
base.SetStyle(ControlStyles.UserPaint, true);
base.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
base.SetStyle(ControlStyles.DoubleBuffer, true);
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:FrmWaiting.cs
// 创建日期:2019-08-15 16:05:09
// 功能描述:FrmWaiting
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:FrmWithOKCancel1.cs
// 创建日期:2019-08-15 16:05:16
// 功能描述:FrmWithOKCancel1
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
......@@ -11,7 +16,7 @@ namespace HZH_Controls.Forms
{
[Designer("System.Windows.Forms.Design.ParentControlDesigner, System.Design", typeof(System.ComponentModel.Design.IDesigner))]
public partial class FrmWithOKCancel1 : FrmWithTitle
{
{
public FrmWithOKCancel1()
{
InitializeComponent();
......

// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:FrmWithOKCancel2.cs
// 创建日期:2019-08-15 16:05:21
// 功能描述:FrmWithOKCancel2
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.ComponentModel;
......@@ -12,7 +17,7 @@ namespace HZH_Controls.Forms
{
[Designer("System.Windows.Forms.Design.ParentControlDesigner, System.Design", typeof(System.ComponentModel.Design.IDesigner))]
public partial class FrmWithOKCancel2 : FrmWithTitle
{
{
public FrmWithOKCancel2()
{
InitializeComponent();
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:FrmWithTitle.cs
// 创建日期:2019-08-15 16:05:30
// 功能描述:FrmWithTitle
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:ControlHelper.cs
// 创建日期:2019-08-15 16:05:35
// 功能描述:ControlHelper
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:Ext.cs
// 创建日期:2019-08-15 16:05:40
// 功能描述:Ext
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:MouseHook.cs
// 创建日期:2019-08-15 16:05:44
// 功能描述:MouseHook
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:NativeMethods.cs
// 创建日期:2019-08-15 16:05:48
// 功能描述:NativeMethods
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
......
using System;
// 版权所有 黄正辉 交流群:568015492 QQ:623128629
// 文件名称:TextInputType.cs
// 创建日期:2019-08-15 16:05:53
// 功能描述:TextInputType
// 项目地址:https://gitee.com/kwwwvagaa/net_winform_custom_control
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
......
......@@ -50,6 +50,11 @@
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.button9 = new System.Windows.Forms.Button();
this.groupBox10 = new System.Windows.Forms.GroupBox();
this.groupBox11 = new System.Windows.Forms.GroupBox();
this.groupBox12 = new System.Windows.Forms.GroupBox();
this.groupBox13 = new System.Windows.Forms.GroupBox();
this.ucBtnsGroup2 = new HZH_Controls.Controls.UCBtnsGroup();
this.ucBtnsGroup1 = new HZH_Controls.Controls.UCBtnsGroup();
this.ucPagerControl21 = new HZH_Controls.Controls.List.UCPagerControl2();
this.ucMenu1 = new HZH_Controls.Controls.UCMenu();
this.ucHorizontalList1 = new HZH_Controls.Controls.UCHorizontalList();
......@@ -78,9 +83,6 @@
this.ucBtnFillet1 = new HZH_Controls.Controls.UCBtnFillet();
this.ucBtnExt2 = new HZH_Controls.Controls.UCBtnExt();
this.ucBtnExt1 = new HZH_Controls.Controls.UCBtnExt();
this.groupBox11 = new System.Windows.Forms.GroupBox();
this.groupBox12 = new System.Windows.Forms.GroupBox();
this.ucBtnsGroup1 = new HZH_Controls.Controls.UCBtnsGroup();
this.groupBox1.SuspendLayout();
this.groupBox9.SuspendLayout();
this.groupBox7.SuspendLayout();
......@@ -93,6 +95,7 @@
this.groupBox10.SuspendLayout();
this.groupBox11.SuspendLayout();
this.groupBox12.SuspendLayout();
this.groupBox13.SuspendLayout();
this.SuspendLayout();
//
// timer1
......@@ -315,6 +318,60 @@
this.groupBox10.TabStop = false;
this.groupBox10.Text = "导航";
//
// groupBox11
//
this.groupBox11.Controls.Add(this.ucPagerControl21);
this.groupBox11.Location = new System.Drawing.Point(19, 584);
this.groupBox11.Name = "groupBox11";
this.groupBox11.Size = new System.Drawing.Size(715, 61);
this.groupBox11.TabIndex = 5;
this.groupBox11.TabStop = false;
this.groupBox11.Text = "分页控件";
//
// groupBox12
//
this.groupBox12.Controls.Add(this.ucBtnsGroup1);
this.groupBox12.Location = new System.Drawing.Point(749, 584);
this.groupBox12.Name = "groupBox12";
this.groupBox12.Size = new System.Drawing.Size(221, 68);
this.groupBox12.TabIndex = 6;
this.groupBox12.TabStop = false;
this.groupBox12.Text = "单选按钮组";
//
// groupBox13
//
this.groupBox13.Controls.Add(this.ucBtnsGroup2);
this.groupBox13.Location = new System.Drawing.Point(992, 584);
this.groupBox13.Name = "groupBox13";
this.groupBox13.Size = new System.Drawing.Size(367, 68);
this.groupBox13.TabIndex = 6;
this.groupBox13.TabStop = false;
this.groupBox13.Text = "多选按钮组";
//
// ucBtnsGroup2
//
this.ucBtnsGroup2.BackColor = System.Drawing.Color.White;
this.ucBtnsGroup2.DataSource = ((System.Collections.Generic.Dictionary<string, string>)(resources.GetObject("ucBtnsGroup2.DataSource")));
this.ucBtnsGroup2.IsMultiple = false;
this.ucBtnsGroup2.Location = new System.Drawing.Point(6, 14);
this.ucBtnsGroup2.MinimumSize = new System.Drawing.Size(0, 50);
this.ucBtnsGroup2.Name = "ucBtnsGroup2";
this.ucBtnsGroup2.SelectItem = ((System.Collections.Generic.List<string>)(resources.GetObject("ucBtnsGroup2.SelectItem")));
this.ucBtnsGroup2.Size = new System.Drawing.Size(355, 50);
this.ucBtnsGroup2.TabIndex = 0;
//
// ucBtnsGroup1
//
this.ucBtnsGroup1.BackColor = System.Drawing.Color.White;
this.ucBtnsGroup1.DataSource = ((System.Collections.Generic.Dictionary<string, string>)(resources.GetObject("ucBtnsGroup1.DataSource")));
this.ucBtnsGroup1.IsMultiple = false;
this.ucBtnsGroup1.Location = new System.Drawing.Point(6, 14);
this.ucBtnsGroup1.MinimumSize = new System.Drawing.Size(0, 50);
this.ucBtnsGroup1.Name = "ucBtnsGroup1";
this.ucBtnsGroup1.SelectItem = ((System.Collections.Generic.List<string>)(resources.GetObject("ucBtnsGroup1.SelectItem")));
this.ucBtnsGroup1.Size = new System.Drawing.Size(194, 50);
this.ucBtnsGroup1.TabIndex = 0;
//
// ucPagerControl21
//
this.ucPagerControl21.BackColor = System.Drawing.Color.White;
......@@ -908,43 +965,12 @@
this.ucBtnExt1.TabStop = false;
this.ucBtnExt1.TipsText = "";
//
// groupBox11
//
this.groupBox11.Controls.Add(this.ucPagerControl21);
this.groupBox11.Location = new System.Drawing.Point(19, 584);
this.groupBox11.Name = "groupBox11";
this.groupBox11.Size = new System.Drawing.Size(715, 61);
this.groupBox11.TabIndex = 5;
this.groupBox11.TabStop = false;
this.groupBox11.Text = "分页控件";
//
// groupBox12
//
this.groupBox12.Controls.Add(this.ucBtnsGroup1);
this.groupBox12.Location = new System.Drawing.Point(749, 584);
this.groupBox12.Name = "groupBox12";
this.groupBox12.Size = new System.Drawing.Size(221, 68);
this.groupBox12.TabIndex = 6;
this.groupBox12.TabStop = false;
this.groupBox12.Text = "按钮组";
//
// ucBtnsGroup1
//
this.ucBtnsGroup1.BackColor = System.Drawing.Color.White;
this.ucBtnsGroup1.DataSource = ((System.Collections.Generic.Dictionary<string, string>)(resources.GetObject("ucBtnsGroup1.DataSource")));
this.ucBtnsGroup1.IsMultiple = false;
this.ucBtnsGroup1.Location = new System.Drawing.Point(6, 14);
this.ucBtnsGroup1.MinimumSize = new System.Drawing.Size(0, 50);
this.ucBtnsGroup1.Name = "ucBtnsGroup1";
this.ucBtnsGroup1.SelectItem = ((System.Collections.Generic.List<string>)(resources.GetObject("ucBtnsGroup1.SelectItem")));
this.ucBtnsGroup1.Size = new System.Drawing.Size(194, 50);
this.ucBtnsGroup1.TabIndex = 0;
//
// Form1
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.BackColor = System.Drawing.Color.White;
this.ClientSize = new System.Drawing.Size(1374, 709);
this.Controls.Add(this.groupBox13);
this.Controls.Add(this.groupBox12);
this.Controls.Add(this.groupBox11);
this.Controls.Add(this.groupBox10);
......@@ -974,6 +1000,7 @@
this.groupBox10.ResumeLayout(false);
this.groupBox11.ResumeLayout(false);
this.groupBox12.ResumeLayout(false);
this.groupBox13.ResumeLayout(false);
this.ResumeLayout(false);
}
......@@ -1031,6 +1058,8 @@
private System.Windows.Forms.GroupBox groupBox11;
private System.Windows.Forms.GroupBox groupBox12;
private HZH_Controls.Controls.UCBtnsGroup ucBtnsGroup1;
private System.Windows.Forms.GroupBox groupBox13;
private HZH_Controls.Controls.UCBtnsGroup ucBtnsGroup2;
}
}
......@@ -100,6 +100,9 @@ namespace Test
ucPagerControl21.DataSource = lstPage2;
ucBtnsGroup1.DataSource = new Dictionary<string, string>() { { "1", "男" }, { "0", "女" } };
ucBtnsGroup2.IsMultiple = true;
ucBtnsGroup2.DataSource = new Dictionary<string, string>() { { "1", "河南" }, { "2", "北京" }, { "3", "湖南" }, { "4", "上海" } };
ucBtnsGroup2.SelectItem = new List<string>() { "2","3"};
}
private void timer1_Tick(object sender, EventArgs e)
......
......@@ -231,4 +231,29 @@
ZW1zBV9zaXplCF92ZXJzaW9uBgAACAgCAAAACQMAAAAAAAAAAAAAABEDAAAAAAAAAAs=
</value>
</data>
<data name="ucBtnsGroup2.DataSource" mimetype="application/x-microsoft.net.object.binary.base64">
<value>
AAEAAAD/////AQAAAAAAAAAMAgAAAPcBbXNjb3JsaWIsIFZlcnNpb249NC4wLjAuMCwgQ3VsdHVyZT1u
ZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj1iNzdhNWM1NjE5MzRlMDg5XSxbU3lzdGVtLlN0cmluZywgbXNj
b3JsaWIsIFZlcnNpb249NC4wLjAuMCwgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj1iNzdh
NWM1NjE5MzRlMDg5XV0sIG1zY29ybGliLCBWZXJzaW9uPTQuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwg
UHVibGljS2V5VG9rZW49Yjc3YTVjNTYxOTM0ZTA4OQwDAAAAmgFtc2NvcmxpYiwgVmVyc2lvbj00LjAu
MC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODldXSwgbXNj
b3JsaWIsIFZlcnNpb249NC4wLjAuMCwgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj1iNzdh
NWM1NjE5MzRlMDg5BQEAAAA2U3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuRGljdGlvbmFyeWAyW1tT
eXN0ZW0uU3RyaW5nAwAAAAdWZXJzaW9uCENvbXBhcmVyCEhhc2hTaXplAAQACENTeXN0ZW0uQ29sbGVj
dGlvbnMuR2VuZXJpYy5HZW5lcmljRXF1YWxpdHlDb21wYXJlcmAxW1tTeXN0ZW0uU3RyaW5nAwAAAAgC
AAAAAAAAAAkEAAAAAAAAAAUEAAAAQ1N5c3RlbS5Db2xsZWN0aW9ucy5HZW5lcmljLkdlbmVyaWNFcXVh
bGl0eUNvbXBhcmVyYDFbW1N5c3RlbS5TdHJpbmcAAAAAAwAAAAs=
</value>
</data>
<data name="ucBtnsGroup2.SelectItem" mimetype="application/x-microsoft.net.object.binary.base64">
<value>
AAEAAAD/////AQAAAAAAAAAMAgAAAJoBbXNjb3JsaWIsIFZlcnNpb249NC4wLjAuMCwgQ3VsdHVyZT1u
ZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj1iNzdhNWM1NjE5MzRlMDg5XV0sIG1zY29ybGliLCBWZXJzaW9u
PTQuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49Yjc3YTVjNTYxOTM0ZTA4OQUB
AAAAMFN5c3RlbS5Db2xsZWN0aW9ucy5HZW5lcmljLkxpc3RgMVtbU3lzdGVtLlN0cmluZwMAAAAGX2l0
ZW1zBV9zaXplCF92ZXJzaW9uBgAACAgCAAAACQMAAAAAAAAAAAAAABEDAAAAAAAAAAs=
</value>
</data>
</root>
\ No newline at end of file
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!