登录
首页 » C# » C# WinForm 基于Socket的聊天室

C# WinForm 基于Socket的聊天室

于 2021-05-07 发布
0 153
下载积分: 1 下载次数: 1

代码说明:

基于Socket的聊天室 实现功能: 1、服务器和客户端的创建 2、用户状态显示、系统消息提示 3、公聊、私聊 4、界面字体颜色设置

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • C# 套打Demo
    套打Demo 【核心代码】using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Drawing.Printing;namespace Print_Demo{ public partial class Form1 : Form { public PrintDocument printDt = new PrintDocument(); //打印文档对象 Font printFont; //打印使用的字体 public Form1() { InitializeComponent(); } void printDt_PrintPage(object sender, PrintPageEventArgs e) { float pointX = 10; float pointY = 10; e.Graphics.DrawString("打印内容", new Font("宋体", 16F), Brushes.Black, pointX 60, pointY); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 26,pointX 300,pointY 26); e.Graphics.DrawString("打印内容", printFont, Brushes.Black, pointX, pointY 35); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 56, pointX 300, pointY 56); e.Graphics.DrawString("打印内容", printFont, Brushes.Black, pointX, pointY 65); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 86, pointX 300, pointY 86); e.Graphics.DrawString("打印内容", printFont, Brushes.Black, pointX, pointY 95); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 116, pointX 300, pointY 116); e.Graphics.DrawString("打印内容", printFont, Brushes.Black, pointX, pointY 125); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 146, pointX 300, pointY 146); e.Graphics.DrawString("打印内容", printFont, Brushes.Black, pointX, pointY 155); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 176, pointX 300, pointY 176); e.Graphics.DrawString("打印内容", printFont, Brushes.Black, pointX, pointY 185); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 206, pointX 300, pointY 206); e.Graphics.DrawString("检测结果", printFont, Brushes.Black, pointX, pointY 233); e.Graphics.DrawString("通过", new Font("宋体",22F,FontStyle.Bold), Brushes.Black, pointX 90, pointY 225); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 265, pointX 300, pointY 265); e.Graphics.DrawString("单位名称", printFont, Brushes.Black, pointX, pointY 275); } private void Form1_Load(object sender, EventArgs e) { printDt.PrintPage = new PrintPageEventHandler(printDt_PrintPage); printFont = new Font("宋体", 12F); } private void btnPrint_Click(object sender, EventArgs e) { //PrintDialog printDlg = new PrintDialog(); //printDlg.Document = printDt; //printDlg.AllowPrintToFile = true; //printDlg.AllowCurrentPage = true; //printDlg.AllowSelection = true; //printDlg.ShowDialog(); //printDlg.ShowDialog(); printDt.Print(); } private void btnLook_Click(object sender, EventArgs e) { PrintPreviewDialog printPreview = new PrintPreviewDialog(); printPreview.PrintPreviewControl.Document = printDt; printPreview.ShowDialog(this); } }}
    2021-05-06下载
    积分:1
  • 企业人事管理系统c#源码(含数据库脚本以及说明文档)
    企业人事管理系统c#源码(含数据库脚本以及说明文档)
    2020-05-21下载
    积分:1
  • 学习
    基础学习
    2013-09-17下载
    积分:1
  • 传输视频码流方案(MPEG-4)
    采 用UPD 在Internet 上传输 MPEG-4 视频码 流方 案
    2014-11-04下载
    积分:1
  • ASP.NET 带Tab的可换肤后台模板
    ASP.NET 带Tab的可换肤后台模板 Tab可切换皮肤的后台模板功能介绍: 1、可以换皮肤、其中住框架、具体页面可以统一使用皮肤。2、tab页标题有右键菜单,新开、全屏打开,刷新。双击标题也可以刷新。3、可以收放菜单栏。使用方法:基本上主框架页面不需要作任何的变动了,直接就可以用,就不讲了。在这里主要讲一下使用tabControl:tabControl新开一个页面实际上是通过JS在主显示区域建立一个iframe 把这个iframe的src 指向我们指定的页面。讨厌的BUG:这个BUG一直都困饶了我好长时间,并且实在不知道怎么解决,甚至连问题出在哪里都不知道。BUG描述:在频繁的打开关闭的时候tab页后,有时候会出现界面里的textbox控件鼠标点击无法聚焦的问题。整体刷新框架就可以聚焦。
    2015-01-12下载
    积分:1
  • C# POP3类库 接收邮件 并读取邮件内容 附完整源码
    接收邮件并读取邮件的详细内容,亲测通过。                                              
    2013-07-27下载
    积分:1
  • winform 文件导出类源码 Export
    winform 文件导出类源码 Export
    2013-11-10下载
    积分:1
  • 51单片机采集PT100温度PID加热温度控制1602液晶显示
    本代码采用51单片机通过ADS1247采集PT100温度值,并可设定加热值,通过PID算法调节可控硅控制220V加热器控制温度,代码亲测可用;编译平台为keil4,单片机为stc89c52;
    2017-10-09下载
    积分:1
  • 嗨翻C.pdf
    程亦超老师翻译的一本关于C语言学习的书籍。 是我们学习C语言居家必备的书籍。本书向读者提供了C语言的完整学习体验。全书分为三个部分:第1章到第4章是基础知识,包括基本语法、指 针、字符串、小工具与源文件;第5章到第8章为进阶内容,有结构、联合、数据结构、堆、函数指针、动/静态链 接;最后四章是高级主题,内容涵盖了系统调用、进程间通信、网络编程和多线程。每部分结束后还有一个有趣 的实验,可以提高读者的实际操作能力。此外,书中还包含大量的图片、示例和代码,有助于读者对于知识的理 解和把握。 本书适用于C开发人员以及对C语言感兴趣的初学者。
    2021-05-06下载
    积分:1
  • 黑马24期c++课件资料
    黑马24期c 基础课件资料
    2020-12-04下载
    积分:1
  • 696518资源总数
  • 105873会员总数
  • 12今日下载