winform
君瑜
不念过往,往事如过眼烟云,目前做好自己,脚踏实地。期望心中之花永不凋零。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
winform如何利用系统进程对windows系统进行开关机
闲来无事总要找点事,刚好在复习winfrom,所以对winform如何利用系统进程来开关机来写个博客。1.系统马上在特定时间后关机。//系统将在10000秒后关机decimal nextTime= 10000;string str = nextTime.ToString();Process.Start("shutdown.exe", "-s -t " + str);2.系统马上...原创 2019-12-18 11:34:38 · 337 阅读 · 0 评论 -
Winform TxtBox提示与自动填充
通过winfrom内置的AutoCompleteStringCollection类的字符串集合功能,通过AutoCompleteSource.CustomSource绑定字符串的数据。 AutoCompleteStringCollection strings = new AutoCompleteStringCollection(); SqlCo...原创 2018-10-16 13:03:38 · 1445 阅读 · 0 评论 -
C# 获取本定ip地址
第一种:使用windowsSystem.Net空间下的Dns类下的GetHostAddresses方法获取ip地址 public static string GetLocalIP_Two() { try { IPAddress[] ips = Dns.GetHostAddresse...转载 2018-10-19 10:46:24 · 475 阅读 · 0 评论
分享