# Website
### [http://www.hzhcontrols.com/](http://www.hzhcontrols.com/)
# NetWinformCustom Controls
# My english is poor. The English below is from Google Translate. Please forgive me.
### [中文README.md(github)](https://github.com/kwwwvagaa/NetWinformControl/blob/master/README_CN.md)
### [中文README.md(码云)](https://gitee.com/kwwwvagaa/net_winform_custom_control/blob/master/README_CN.md)
#### Introduction
c#winform custom control, `has better operation support for touch screen`, the project is based on framework4.0, completely native control development, `do not use any third-party controls`, you can use it safely in your project .
Blog address: [https://www.cnblogs.com/bfyx](https://www.cnblogs.com/bfyx/p/11364884.html)
GitHub: [https://github.com/kwwwvagaa/NetWinformControl](https://github.com/kwwwvagaa/NetWinformControl)
Code Cloud: [https://gitee.com/kwwwvagaa/net_winform_custom_control.git](https://gitee.com/kwwwvagaa/net_winform_custom_control.git)
Welcome to exchange discussion: [Click to join QQ group 568015492](//shang.qq.com/wpa/qunwpa?idkey=6e08741ef16fe53bf0314c1c9e336c4f626047943a8b76bac062361bab6b4f8d)
#### If my code is useful to you, please reward me, thank you, your reward is my motivation.
![输入图片说明](https://images.gitee.com/uploads/images/2019/0905/180337_91c70c54_301547.jpeg "zanshangma.jpg")
![输入图片说明](https://images.gitee.com/uploads/images/2019/0905/180345_49207d1d_301547.jpeg "zfb1.jpg")
#### The source code is only for exchange learning. The open source agreement is [Apache License 2.0](https://gitee.com/kwwwvagaa/net_winform_custom_control/blob/master/LICENSE). For commercial use, please contact the group owner.
#### Come here, come to a `Star` and let's go.
#### NuGet
``` csharp
Install-Package HZH_Controls
```
``` csharp
The content listed below is only part of the control, more control effects, please download the source code to see the demo running effect!
```
![输入图片说明](https://images.gitee.com/uploads/images/2019/0903/084635_85b9e4a3_301547.gif "1.gif")
![输入图片说明](https://images.gitee.com/uploads/images/2019/0903/084848_9aaca7d2_301547.gif "3.gif")
#### Sample
##### 1, prompt window renderings
![sample image](https://images.gitee.com/uploads/images/2019/0808/142043_887cb342_301547.png "tip box 1.png")
![sample image](https://images.gitee.com/uploads/images/2019/0808/142050_1f5588a0_301547.png "tip box 2.png")
``` csharp
If (FrmDialog.ShowDialog(this, "Do you want to display a prompt box without a cancel button?", "Mode Form Test", true) == System.Windows.Forms.DialogResult.OK)
{
FrmDialog.ShowDialog(this, "This is a prompt box without a cancel button", "Mode Form Test");
}
```
##### 2, multiple input form
![sample image](https://images.gitee.com/uploads/images/2019/0808/142218_4c506097_301547.png "Multiple input form.png")
``` csharp
FrmInputs frm = new FrmInputs("Dynamic Multi-Input Form Test",
New string[] { "name", "telephone", "ID number", "address" },
New Dictionary<string, HZH_Controls.TextInputType>() { { "Phone", HZH_Controls.TextInputType.Regex }, { "ID number", HZH_Controls.TextInputType.Regex } },
New Dictionary<string, string>() { { "phone", "^1\\d{10}$" }, { "ID number", "^\\d{18}$" } },
New Dictionary<string, KeyBoardType>() { { "phone", KeyBoardType.UCKeyBorderNum }, { "ID number", KeyBoardType.UCKeyBorderNum } },
New List<string>() { "name", "telephone", "identity number" });
frm.ShowDialog(this);
```
``` csharp
/// <summary>
/// Function Description: Constructor
/// Author: HZH
/// Creation date: 2019-08-05 10:57:26
/// Task number: POS
/// </summary>
/// <param name="strTitle">form title</param>
/// <param name="args">Input name</param>
/// <param name="inTypes">Input type corresponds to input type, key: input item name, if no default control input is not set </param>
/// <param name="regexs">The input item corresponds to the regular rule, valid when imTypes=Regex, key: input item name, if you do not set the default no control input </param>
/// <param name="keyBoards"> text box keyboard, key: input item name, if you do not set the default English keyboard </param>
/// <param name="mastInputs">Required entry name</param>
/// <param name="defaultValues">Input default value, key: input name </param>
Public FrmInputs(
String strTitle,
String[] inPutLabels,
Dictionary<string, TextInputType> inTypes = null,
Dictionary<string, string> regexs = null,
Dictionary<string, HZH_Controls.Controls.KeyBoardType> keyBoards = null,
List<string> mastInputs = null,
Dictionary<string, string> defaultValues = null)
```
##### 3, Temp1 form
![sample image](https://images.gitee.com/uploads/images/2019/0808/143753_15610b9f_301547.png "temp.png")
``` csharp
/ / New form FrmTemp1Test inherits HZH_Controls.Forms.FrmTemp1
FrmTemp1Test frm = new FrmTemp1Test();
frm.ShowDialog(this);
```
##### 4, there is a form to confirm cancellation 1
![sample image](https://images.gitee.com/uploads/images/2019/0808/144723_55252cf2_301547.png "oc1.png")
``` csharp
/ / New form FrmOKCancel1Test inherits HZH_Controls.Forms.FrmWithOKCancel1
FrmOKCancel1Test frm = new FrmOKCancel1Test();
frm.ShowDialog(this);
```
##### 5, there is a form to confirm cancellation 2
![sample image](https://images.gitee.com/uploads/images/2019/0808/145516_07d73ec0_301547.png "oc2.png")
``` csharp
/ / New form FrmOKCancel2Test inherits HZH_Controls.Forms.FrmWithOKCancel2
FrmOKCancel2Test frm = new FrmOKCancel2Test();
frm.ShowDialog(this);
```
##### 6, single title form
![sample image](https://images.gitee.com/uploads/images/2019/0808/145718_ff035712_301547.png "t.png")
``` csharp
/ / New form FrmWithTitleTest inherits HZH_Controls.Forms.FrmWithTitle
FrmWithTitleTest frm = new FrmWithTitleTest();
frm.ShowDialog(this);
```
##### 7, control
![输入图片说明](https://images.gitee.com/uploads/images/2019/0827/113624_6e3e98ca_301547.png "1.png")
*Text box keyboard effect*
![sample image](https://images.gitee.com/uploads/images/2019/0808/153812_40d919ea_301547.png "k1.png")
![sample image](https://images.gitee.com/uploads/images/2019/0808/153820_31e8fea6_301547.png "k2.png")
![sample image](https://images.gitee.com/uploads/images/2019/0808/153829_37e4dff5_301547.png "k3.png")
`Handwriting input requires the handwriting support of Sogou, please copy the HandInput folder to the running directory.
*Time control effect*
![sample image](https://images.gitee.com/uploads/images/2019/0808/160404_b8cf7353_301547.png "time1.png")
![sample image](https://images.gitee.com/uploads/images/2019/0808/160411_902d4f6d_301547.png "time2.png")
![sample image](https://images.gitee.com/uploads/images/2019/0808/160418_c92391ba_301547.png "time3.png")
* Drop-down list data binding *
``` csharp
/ / Use the method is similar to the native ComboBox
List<KeyValuePair<string, string>> lstCom = new List<KeyValuePair<string, string>>();
For (int i = 0; i < 5; i++)
{
lstCom.Add(new KeyValuePair<string, string>(i.ToString(), "options" + i));
}
this.ucComboBox1.Source = lstCom;
this.ucComboBox2.Source = lstCom;
this.ucComboBox1.SelectedIndex = 1;
this.ucComboBox2.SelectedIndex = 1;
```
*Tree data binding*
``` csharp
/ / Use the same method as the native Treeview, set the property IsShowByCustomModel = true to enable the custom mode, otherwise the original tree
For (int i = 0; i < 5; i++)
{
TreeNode tn = new TreeNode("parent node" + i);
For (int j = 0; j < 5; j++)
{
tn.Nodes.Add("child node" + j);
}
this.treeViewEx1.Nodes.Add(tn);
}
```
*List data binding*
``` csharp
/ / Customizable color fonts, etc.
List<ListEntity> lst = new List<ListEntity>();
For (int i = 0; i < 5; i++)
{
lst.Add(new ListEntity()
�
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
HZHControls控件库 v1.0.zip (771个子文件)
buidnuget.bat 30B
sgim_annex.bin 1.17MB
sgim_hz.bin 170KB
sgim_py.bin 7KB
certificate 128B
certificate64 128B
packages.config 289B
repositories.config 120B
UCTestBtns.Designer.cs 153KB
UCDateTimeSelectPan2.Designer.cs 137KB
UCKeyBorderAll.Designer.cs 134KB
FontIcons.cs 110KB
UCCalendarNotes.Designer.cs 95KB
UCKeyBorderPay.Designer.cs 69KB
ControlHelper.cs 62KB
UCKeyBorderNum.Designer.cs 58KB
UCTestFunnelChart.Designer.cs 56KB
UCTestVerification.Designer.cs 51KB
UCTestForms.Designer.cs 49KB
UCTestLED.Designer.cs 48KB
UCTestNavigationMenuOfficeItem.Designer.cs 46KB
UCTestColors.Designer.cs 46KB
UCTestNavigationMenu.Designer.cs 44KB
UCConduit.cs 44KB
UCTestShadow.Designer.cs 39KB
UCTestScrollbar.Designer.cs 39KB
UCTestConduit.Designer.cs 35KB
UCTestConveyor.Designer.cs 34KB
UCTestBlower.Designer.cs 31KB
ScrollbarComponent.cs 31KB
UCPagerControl2.Designer.cs 31KB
UCTextBoxEx.cs 30KB
UCTestTreeview.Designer.cs 29KB
UCDataGridView.cs 29KB
UCTestRadarChart.Designer.cs 28KB
UCRadarChart.cs 27KB
FrmAnchorTips.cs 26KB
UCTestLiveCharts.Designer.cs 26KB
UCDateTimeSelectPan.Designer.cs 26KB
TextBoxTransparent.cs 26KB
UCTestProcess.Designer.cs 24KB
TreeViewEx.cs 23KB
FrmBase.cs 23KB
TabControlExt.cs 22KB
FrmTips.cs 21KB
UCBottle.cs 21KB
UCCombox.cs 20KB
UCFunnelChart.cs 20KB
UCNavigationMenu.cs 20KB
ProfessionalToolStripRendererEx.cs 20KB
UCValve.cs 20KB
UCThermometer.cs 19KB
VerificationComponent.cs 19KB
UCDateTimeSelectPan2.cs 19KB
UCDatePickerExt.Designer.cs 19KB
UCVScrollbar.cs 18KB
UCTestMeter.Designer.cs 18KB
FrmMain.cs 18KB
Resources.Designer.cs 18KB
UCHScrollbar.cs 17KB
UCMeter.cs 17KB
UCDatePickerExt2.Designer.cs 17KB
UCLEDNum.cs 17KB
UCTestNavigationMenuOffice.Designer.cs 17KB
UCSwitch.cs 17KB
UCTestContextMenu.Designer.cs 17KB
UCDataGridViewTreeRow.cs 17KB
UCListView.cs 16KB
UCLEDDataTime.Designer.cs 16KB
UCBlower.cs 16KB
UCCalendarNotes_Week.Designer.cs 16KB
UCTestNavigationMenuExt.Designer.cs 16KB
Ext.cs 16KB
UCMindMapping.cs 16KB
UCMenu.cs 16KB
UCDateTimeSelectPan.cs 15KB
UCPagerControl2.cs 15KB
UCTestSignalLamp.Designer.cs 15KB
UCNavigationMenuOffice.cs 15KB
FrmDialog.Designer.cs 14KB
UCEllipseDialAisle.cs 14KB
UCWaveChart.cs 14KB
UCDatePickerExt.cs 14KB
UCCalendarNotes_Week.cs 14KB
FontImages.cs 14KB
UCNumTextBox.cs 14KB
UCProcessEllipse.cs 14KB
UCComboxGridPanel.Designer.cs 14KB
UCTransfer.Designer.cs 13KB
UCCalendarNotes.cs 13KB
UCDatePickerExt2.cs 13KB
TextBoxEx.cs 13KB
UCArrow.cs 12KB
UCProcessWave.cs 12KB
FrmWithOKCancel2.Designer.cs 12KB
UCListExt.cs 12KB
UCPagerControlBase.cs 12KB
UCRollText.cs 12KB
UCTrackBar.cs 12KB
FrmSelectImage.Designer.cs 12KB
共 771 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8
资源评论
芝麻粒儿
- 粉丝: 6w+
- 资源: 2万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 水稻病害基于Yolov8算法优化目标检测识别与AI辅助决策python源码+模型+使用说明.zip
- 海尔618算价表_七海5.20_16.00xlsx(1)(2).xlsx
- WebCrawler.scr
- 【计算机专业毕业设计】大学生就业信息管理系统设计源码.zip
- YOLO 数据集:8种路面缺陷病害检测【包含划分好的数据集、类别class文件、数据可视化脚本】
- JAVA实现Modbus RTU或Modbus TCPIP案例.zip
- 基于YOLOv8的FPS TPS AI自动锁定源码+使用步骤说明.zip
- JAVA实现Modbus RTU或Modbus TCPIP案例.zip
- 基于yolov8+streamlit的火灾检测部署源码+模型.zip
- 测试aaaaaaabbbbb
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功