新文章 网摘 文章 随笔 日记

文章分类 -  WinForm

摘要:const int ScMinimize = 0xF020;//窗体最小化消息 const int ScMaximize = 0xF030;//窗体最大化消息 const int ScNomal = 0xF120;//窗体还原消息 protected override void WndProc(re 阅读全文
posted @ 2023-09-14 15:26 岭南春 阅读(507) 评论(0) 推荐(0)
摘要:public class SuggestComboBox : ComboBox { #region fields and properties private readonly ListBox _suggLb = new ListBox { Visible = false, TabStop = fa 阅读全文
posted @ 2023-01-31 19:22 岭南春 阅读(20) 评论(0) 推荐(0)
摘要:private void CbxWorkOrder_TextChanged(object sender, EventArgs e) { CbxWorkOrder.DataSource = null; CbxWorkOrder.Items.Clear(); var inputWorkOrder = C 阅读全文
posted @ 2023-01-30 15:43 岭南春 阅读(1337) 评论(0) 推荐(1)
摘要:/// <summary> /// 给DataGridView添加鼠标滚轮事件 /// </summary> /// <param name="dataGridView"></param> public static void BindMouseWheel(DataGridView dataGrid 阅读全文
posted @ 2022-02-09 08:33 岭南春 阅读(312) 评论(0) 推荐(0)
摘要:我创建了一个新的 Visual Studio WinForms 项目。保持表单设计器完全为空并使用您的代码: public Form1() { InitializeComponent(); // Make TabControl TabControl tabControl1 = new TabCont 阅读全文
posted @ 2022-02-04 08:46 岭南春 阅读(1017) 评论(0) 推荐(0)
摘要:【将可执行窗体程序嵌入到C#的TabControl中】https://mbd.baidu.com/ma/s/R8aLle1m 阅读全文
posted @ 2022-01-07 03:49 岭南春 阅读(33) 评论(0) 推荐(0)
摘要:/// <summary> /// 用来定义字段或属性的显示顺序 /// </summary> [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method | AttributeTargets.Property | Attribu 阅读全文
posted @ 2022-01-06 19:59 岭南春 阅读(53) 评论(0) 推荐(0)
摘要:private void FrmUserEdit_Load(object sender, EventArgs e) { DtpDepartureDate.Format = DateTimePickerFormat.Custom; DtpDepartureDate.CustomFormat = " " 阅读全文
posted @ 2021-05-26 15:41 岭南春 阅读(206) 评论(0) 推荐(0)
摘要:我见过 these questions,但都涉及CellStyle Format值中没有的方法.我只想显示小时和分钟部分(16:05);不是秒(16:05:13).我试图强制秒值为零,但仍然像16:05:00.如果没有使用像提供字符串或DateTime(并且仅显示小时/分钟部分)的kludge,那么 阅读全文
posted @ 2021-04-18 11:04 岭南春 阅读(558) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; namespace Core.WinformUserControllers { public class Dr 阅读全文
posted @ 2020-12-16 09:15 岭南春 阅读(290) 评论(0) 推荐(0)
摘要:static class Program { public static bool OpenLoginWinForm { get; set; } /// <summary> /// The main entry point for the application. /// </summary> [S 阅读全文
posted @ 2020-12-14 10:13 岭南春 阅读(393) 评论(0) 推荐(0)
摘要:void listBox1_MouseDoubleClick(object sender, MouseEventArgs e) { int index = this.listBox1.IndexFromPoint(e.Location); if (index != System.Windows.Fo 阅读全文
posted @ 2020-12-10 13:34 岭南春 阅读(266) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Data; using System.Reflection; namespace Phoenix.Common.Infrastructure.Helpers { public s 阅读全文
posted @ 2020-11-17 14:39 岭南春 阅读(127) 评论(0) 推荐(0)
摘要:public class SimpleApiClient { public static HttpClient CreateHttpClient() { var handler = GetInsecureHandler(); HttpClient httpClient = new HttpClien 阅读全文
posted @ 2020-11-04 15:54 岭南春 阅读(225) 评论(0) 推荐(0)