参考地址:https://jingyan.baidu.com/article/380abd0a6b80701d90192cde.html 首先搭建好Winform项目框架后,创建窗体页面后自行布局 这里我放置了1个TextBox,3个Button 1 using System.ComponentModel; 2 using System.Data; 3 using System.Drawing; 4 using System.Linq; 5 using System.Text; 6 using
using System; using System.Data; using System.Drawing; using System.Windows.Forms; using Yanwen.Logistics.Business.Logics; using Yanwen.Logistics.Business.Models.ExpressTransport; using Yanwen.Logistics.Desktop.Extensions; namespace Yanwen.Logistics.
后台代码: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Threading; namespace winform { public partial c
1.新建项目添加WatermarkTextBox类: using System; using System.Collections.Generic; using System.Text; using System.Windows.Forms; using System.Drawing; using System.ComponentModel; namespace TextBoxWatermark { [ToolboxBitmap(typeof(TextBox))] public class Wa