HZHControls Custom control library

HZHControls Custom control library

2022-09-02 0 1,295
Resource Number 37469 Last Updated 2025-02-24
¥ 0HKD 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/hzhcontrols-custom-control-library/

Share free open-source source code

Q&A
  • 1. Automatic: After making an online payment, click the (Download) link to download the source code; 2. Manual: Contact the seller or the official to check if the template is consistent. Then, place an order and make payment online. The seller ships the goods, and both parties inspect and confirm that there are no issues. ICTcoder will then settle the payment for the seller. Note: Please ensure to place your order and make payment through ICTcoder. If you do not place your order and make payment through ICTcoder, and the seller sends fake source code or encounters any issues, ICTcoder will not assist in resolving them, nor can we guarantee your funds!
View details
  • 1. Default transaction cycle for source code: The seller manually ships the goods within 1-3 days. The amount paid by the user will be held in escrow by ICTcoder until 7 days after the transaction is completed and both parties confirm that there are no issues. ICTcoder will then settle with the seller. In case of any disputes, ICTcoder will have staff to assist in handling until the dispute is resolved or a refund is made! If the buyer places an order and makes payment not through ICTcoder, any issues and disputes have nothing to do with ICTcoder, and ICTcoder will not be responsible for any liabilities!
View details
  • 1. ICTcoder will permanently archive the transaction process between both parties and snapshots of the traded goods to ensure the authenticity, validity, and security of the transaction! 2. ICTcoder cannot guarantee services such as "permanent package updates" and "permanent technical support" after the merchant's commitment. Buyers are advised to identify these services on their own. If necessary, they can contact ICTcoder for assistance; 3. When both website demonstration and image demonstration exist in the source code, and the text descriptions of the website and images are inconsistent, the text description of the image shall prevail as the basis for dispute resolution (excluding special statements or agreements); 4. If there is no statement such as "no legal basis for refund" or similar content, any indication on the product that "once sold, no refunds will be supported" or other similar declarations shall be deemed invalid; 5. Before the buyer places an order and makes payment, the transaction details agreed upon by both parties via WhatsApp or email can also serve as the basis for dispute resolution (in case of any inconsistency between the agreement and the description of the conflict, the agreement shall prevail); 6. Since chat records and email records can serve as the basis for dispute resolution, both parties should only communicate with each other through the contact information left on the system when contacting each other, in order to prevent the other party from denying their own commitments. 7. Although the probability of disputes is low, it is essential to retain important information such as chat records, text messages, and email records, in case a dispute arises, so that ICTcoder can intervene quickly.
View details
  • 1. As a third-party intermediary platform, ICTcoder solely protects transaction security and the rights and interests of both buyers and sellers based on the transaction contract (product description, agreed content before the transaction); 2. For online trading projects not on the ICTcoder platform, any consequences are unrelated to this platform; regardless of the reason why the seller requests an offline transaction, please contact the administrator to report.
View details

Related Source code

ICTcoder Customer Service

24-hour online professional services