Category:C#

  • C ා the method of adding inner chain in Article

    Time:2020-7-13

    Why should the article add inner chain? 1. Benefit readers My initial motivation of liking inner link articles is to let readers get better reading experience and get more value in my blog. If my readers visit one of my articles and find that they not only answer the answers they need, but also provide […]

  • C ා to update the query table as a parameter to the database

    Time:2020-7-13

    1. Main method of importdata Put the input as the object array type, and take out the corresponding parameters according to the subscript. Here are table and username public object[] ImportData(object[] Param) { DataTable dt = (DataTable)Param[0]; string msg1 = “”, msg2 = “”, msg3 = “”; Hashtable ht = new Hashtable(); Username = param […]

  • (13) C ා WinForm custom control – navigation menu – hzhcontrols

    Time:2020-7-13

    Official website http://www.hzhcontrols.com premise Has been in the industry for 7,8 years, has always wanted to do a set of beautiful custom controls, so there is a series of articles. GitHub:https://github.com/kwwwvagaa/NetWinformControl Code cloud: https://gitee.com/kwwwvagaa/net_ winform_ custom_ control.git If you think the writing is OK, please click a star to support it Welcome to discuss: Penguins […]

  • (14) C ා WinForm custom control – Keyboard (1) – hzhcontrols

    Time:2020-7-11

    Official website http://www.hzhcontrols.com premise Has been in the industry for 7,8 years, has always wanted to do a set of beautiful custom controls, so there is a series of articles. GitHub:https://github.com/kwwwvagaa/NetWinformControl Code cloud: https://gitee.com/kwwwvagaa/net_ winform_ custom_ control.git If you think the writing is OK, please click a star to support it Welcome to discuss: Penguins […]

  • C ා implement excel operation — add tab sheet

    Time:2020-7-11

    C ා implements the operation on Excel, which will be placed in different tabs according to different types or sources of data. The code of tab added by C ා implementation is as follows: (path is the address where the document is saved, DT is the source data to be processed) public void addSheet(string Path, […]

  • Color modification method of WPF slider slider

    Time:2020-7-11

    The results are as follows: Although I have been developing WPF for some time, I have been working on some simple template and style changes, and I have not studied them in depth. This time, in order to complete the work, first of all, I searched the Internet for a long time, but I didn’t […]

  • Configuration details of. Net core development

    Time:2020-7-10

    be familiar with ASP.NET Must be right web.config The document is no stranger. stay ASP.NET In the environment, if you want to add configuration parameters, you will also operate in this file. Among them, Appsettings and connectionstrings are the two most commonly used items. In order to get the configuration information in the file in […]

  • monitor

    Time:2020-7-10

    public partial class Form1 : Form { public Form1() { InitializeComponent(); Dog dog = new Dog(); InsertDog(dog); dog.OnAlert(); //Console.WriteLine(); } public void InsertDog(Dog dog) { dog.alertHandler += new Dog.AlEventHandler(HostEventHandler); } public void HostEventHandler(object sender, EventArgs e) { Console.WriteLine(“{0}\n”,sender.ToString()); } } public class Dog { public delegate void AlEventHandler(object sender, EventArgs e); public event AlEventHandler alertHandler; […]

  • (15) C ා WinForm custom control – Keyboard (2) – hzhcontrols

    Time:2020-7-10

    Official website http://www.hzhcontrols.com premise Has been in the industry for 7,8 years, has always wanted to do a set of beautiful custom controls, so there is a series of articles. GitHub:https://github.com/kwwwvagaa/NetWinformControl Code cloud: https://gitee.com/kwwwvagaa/net_ winform_ custom_ control.git If you think the writing is OK, please click a star to support it Welcome to discuss: Penguins […]

  • Solutions to structural performance problems in C ා 7.2

    Time:2020-7-9

    preface In some cases where the readonly keyword is used, the C ා compiler creates a defensive copy of the structure. Although this problem is well known and documented, it is still worth re examining because it is related to several characteristics of C ා 7.2. The use of the in and ref readonly keywords […]

  • C ා read and write serialport

    Time:2020-7-9

    The serialdatareceivedeventhandler has no response. Don’t forget the assignment of these 2 properties. serialPort1.DtrEnable = true; serialPort1.RtsEnable = true;

  • (16) Where is the text box? -HZHControls

    Time:2020-7-9

    Official website http://www.hzhcontrols.com premise Has been in the industry for 7,8 years, has always wanted to do a set of beautiful custom controls, so there is a series of articles. GitHub:https://github.com/kwwwvagaa/NetWinformControl Code cloud: https://gitee.com/kwwwvagaa/net_ winform_ custom_ control.git If you think the writing is OK, please click a star to support it Welcome to discuss: Penguins […]