HZHControls Custom control library

HZHControls Custom control library

2022-09-02 0 840
Resource Number 37469 Last Updated 2025-02-24
¥ 0USD Upgrade VIP
Download Now Matters needing attention
Can't download? Please contact customer service to submit a link error!
Value-added Service: Installation Guide Environment Configuration Secondary Development Template Modification Source Code Installation

This issue recommends the HZHControls control library, c# winform custom controls, with better operation support for touch screen, the project is based on Framework4.0, completely native control development, without the use of any third-party controls, you can rest assured to use in your project。

0cad56cb655d47efbe4c5f584368c82enoop.image_

NetWinform Describes custom controls

769a1f6e513b424ca28532c8ff7e86e5noop.image_

84c6db6942074380aa67252ed5167942noop.image_

The HZHControls control library supports a variety of styles, Including multiple input forms, there is a confirm cancel form, single title form, controls, page controls, bubble prompt renderings, menu navigation, button groups, progress bars, switches, water waves, trees, sliders, LED numbers, scrolling text, pipes, signal lights, thermometers, resource loading forms, pyramid charts, timelines, reference blocks, and so on.

Give an example

1, prompt window renderings

a9e8f5df79174d8b96826ea124994a43noop.image_

264f456ce4134827a383e00da96436d2noop.image_

if (FrmDialog.ShowDialog(this, "Do you want to display another prompt box without a cancel button?" , "Pattern Forms test", true) == System.Windows.Forms.DialogResult.OK){    FrmDialog.ShowDialog(this, "这是一个没有取消按钮的提示框", "模式窗体测试");}

2、Multiple input form

c694bbf9bc1a4673b08398c85c708e3fnoop.image_

 FrmInputs frm = new FrmInputs("Dynamic multi-input form testing",                new string[] { "Name ", "Telephone "," ID number ", "address" },                new Dictionary<string, HZH_Controls.TextInputType>() { { "电话", HZH_Controls.TextInputType.Regex }, { "身份证号", HZH_Controls.TextInputType.Regex } },                new Dictionary<string, string>() { { "电话", "^1\\d{10}$" }, { "身份证号", "^\\d{18}$" } },                new Dictionary<string, KeyBoardType>() { { "电话", KeyBoardType.UCKeyBorderNum }, { "身份证号", KeyBoardType.UCKeyBorderNum } },                new List<string>() { "姓名", "电话", "身份证号" });frm.ShowDialog(this);

3、Temp1 Form

d202ee0ecefb498bbbf6885b52753d6anoop.image_

// Create a new form FrmTemp1Test inheritanceHZH_Controls.Forms.FrmTemp1FrmTemp1Test frm = new FrmTemp1Test();frm.ShowDialog(this);

4、There is a form with definite cancellation

3d3a6e2bbe864be6adcdf12114285a2dnoop.image_

//Create a new form FrmOKCancel1Test inheritanceHZH_Controls.Forms.FrmWithOKCancel1FrmOKCancel1Test frm = new FrmOKCancel1Test();frm.ShowDialog(this);

5、Datagridview

e956db03c2274c0e873b9d76c99f4f50noop.image_

List<DataGridViewColumnEntity> lstCulumns = new List<DataGridViewColumnEntity>();lstCulumns.Add(new DataGridViewColumnEntity() { DataField = "ID", HeadText = "编号", Width = 70, WidthType = SizeType.Absolute });lstCulumns.Add(new DataGridViewColumnEntity() { DataField = "Name", HeadText = "姓名", Width = 50, WidthType = SizeType.Percent });lstCulumns.Add(new DataGridViewColumnEntity() { DataField = "Age", HeadText = "年龄", Width = 50, WidthType = SizeType.Percent });lstCulumns.Add(new DataGridViewColumnEntity() { DataField = "Birthday", HeadText = "生日", Width = 50, WidthType = SizeType.Percent, Format = (a) => { return ((DateTime)a).ToString("yyyy-MM-dd"); } });lstCulumns.Add(new DataGridViewColumnEntity() { DataField = "Sex", HeadText = "性别", Width = 50, WidthType = SizeType.Percent, Format = (a) => { return ((int)a) == 0 ? "女" : "男"; } });this.ucDataGridView1.Columns = lstCulumns;this.ucDataGridView1.IsShowCheckBox = true;List<object> lstSource = new List<object>();for (int i = 0; i < 20; i++){    TestModel model = new TestModel()    {        ID = i.ToString(),        Age = 3 * i,        Name = "姓名——" + i,        Birthday = DateTime.Now.AddYears(-10),        Sex = i % 2    };    lstSource.Add(model);}this.ucDataGridView1.DataSource = lstSource;this.ucDataGridView1.First();

When using paging controls, you no longer need to specify the DataSource data source property, you only need to specify the DataSource property of the paging control

If the preset table row does not meet your needs, you can also customize the row control, the specific practice is:

Added a custom control to implement the interface IDataGridViewRow
Refer to UCDataGridViewRow to implement your custom rows
Set the RowType attribute of the datagridview

The Page property defines the page turning control, if UCPagerControl does not meet your needs, please customize the page turning control and inherit UCPagerControlBase, when it is empty, do not enable the page turning control, when the page turning control is enabled, each page will display the appropriate data, no longer appear scroll bar.

6, bubble prompt renderings (5 built-in and custom styles)

384d7d06ae554ef991b932980dc3b34fnoop.image_-1

FrmTips.ShowTipsError(this, "ErrorPrompt message ");FrmTips.ShowTipsInfo(this, "InfoPrompt message ");FrmTips.ShowTipsSuccess(this, "Success提示信息");FrmTips.ShowTipsWarning(this, "Warning提示信息");/*自定义可使用      public static FrmTips ShowTips(            Form frm,            string strMsg,            int intAutoColseTime = 0,            bool blnShowCoseBtn = true,            ContentAlignment align = ContentAlignment.BottomLeft,            Point? point = null,            TipsSizeMode mode = TipsSizeMode.Small,            Size? size = null,            TipsState state = TipsState.Default)*/
资源下载此资源为免费资源立即下载
Telegram:@John_Software

Disclaimer: This article is published by a third party and represents the views of the author only and has nothing to do with this website. This site does not make any guarantee or commitment to the authenticity, completeness and timeliness of this article and all or part of its content, please readers for reference only, and please verify the relevant content. The publication or republication of articles by this website for the purpose of conveying more information does not mean that it endorses its views or confirms its description, nor does it mean that this website is responsible for its authenticity.

Ictcoder Free source code HZHControls Custom control library https://ictcoder.com/kyym/hzhcontrols-custom-control-library.html

Share free open-source source code

Q&A
  • 1, automatic: after taking the photo, click the (download) link to download; 2. Manual: After taking the photo, contact the seller to issue it or contact the official to find the developer to ship.
View details
  • 1, the default transaction cycle of the source code: manual delivery of goods for 1-3 days, and the user payment amount will enter the platform guarantee until the completion of the transaction or 3-7 days can be issued, in case of disputes indefinitely extend the collection amount until the dispute is resolved or refunded!
View details
  • 1. Heptalon will permanently archive the process of trading between the two parties and the snapshots of the traded goods to ensure that the transaction is true, effective and safe! 2, Seven PAWS can not guarantee such as "permanent package update", "permanent technical support" and other similar transactions after the merchant commitment, please identify the buyer; 3, in the source code at the same time there is a website demonstration and picture demonstration, and the site is inconsistent with the diagram, the default according to the diagram as the dispute evaluation basis (except for special statements or agreement); 4, in the absence of "no legitimate basis for refund", the commodity written "once sold, no support for refund" and other similar statements, shall be deemed invalid; 5, before the shooting, the transaction content agreed by the two parties on QQ can also be the basis for dispute judgment (agreement and description of the conflict, the agreement shall prevail); 6, because the chat record can be used as the basis for dispute judgment, so when the two sides contact, only communicate with the other party on the QQ and mobile phone number left on the systemhere, in case the other party does not recognize self-commitment. 7, although the probability of disputes is very small, but be sure to retain such important information as chat records, mobile phone messages, etc., in case of disputes, it is convenient for seven PAWS to intervene in rapid processing.
View details
  • 1. As a third-party intermediary platform, Qichou protects the security of the transaction and the rights and interests of both buyers and sellers according to the transaction contract (commodity description, content agreed before the transaction); 2, non-platform online trading projects, any consequences have nothing to do with mutual site; No matter the seller for any reason to require offline transactions, please contact the management report.
View details

Related Article

make a comment
No comments available at the moment
Official customer service team

To solve your worries - 24 hours online professional service