c#使用Socket实现局域网内通信
摘要:服务器端代码: 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using System
阅读全文
posted @
2020-02-27 23:16
漂乎兮乎
阅读(4055)
推荐(0)
C#文本框中KeyPress事件触发Button的回车事件
摘要:private void txtMsg_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == '\r') { this.btnSendMsg_Click(sender, e); } }
阅读全文
posted @
2020-02-27 15:50
漂乎兮乎
阅读(2524)
推荐(0)
一次性清空GroupBox中所有TextBox文本框的值
摘要:foreach(Control c in groupBox1.Controls) { if(c is TextBox) { (TextBox)c.Text = ""; } }
阅读全文
posted @
2020-02-27 15:49
漂乎兮乎
阅读(698)
推荐(0)
c#音乐播放器
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; using System.Li
阅读全文
posted @
2020-02-26 23:25
漂乎兮乎
阅读(1471)
推荐(0)
获取本机IP地址
摘要:using System.Net; using System.Net.Sockets; /// <summary> /// 获取本机IP地址 /// </summary> /// <returns>本机IP地址</returns> public static string GetLocalIP()
阅读全文
posted @
2020-02-26 22:50
漂乎兮乎
阅读(543)
推荐(0)