资源简介
这是一款聊天的小程序,适合初学者学习下哦,

代码片段和文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using CCWin;
using CCWin.SkinControl;
using System.Runtime.InteropServices;
using System.Net;
using System.Net.Sockets;
using System.IO;
using System.Threading;
using ESPlus.Rapid;
using GG.Core;
using ESBasic.objectManagement.Forms;
using ESPlus.Application.P2PSession.Passive;
using ESPlus.FileTransceiver;
using ESBasic;
using ImageCapturerLib;
namespace GG
{
public partial class ChatForm : CCSkinMain IManagedForm
{
private string title_FileTransfer = “文件传送“;
private FileTransferingViewer fileTransferingViewer = new FileTransferingViewer();
private EmotionForm emotionForm;
private IRapidPassiveEngine rapidPassiveEngine;
private bool friendOffline = false;
private string myNickName = ““;
private string friendNickName = ““;
private string friendID = ““;
#region IManagedForm Member
public string FormID
{
get { return this.friendID; }
}
#endregion
public ChatForm(IRapidPassiveEngine engine string _myNickName ChatListSubItem item)
{
this.rapidPassiveEngine = engine;
this.myNickName = _myNickName;
this.friendNickName = item.NicName;
this.friendID = item.ID.ToString();
InitializeComponent();
this.Text = “与 “ + this.friendNickName + “ 对话中“;
this.labelFriendName.Text = friendNickName;
this.labelFriendSignature.Text = item.PersonalMsg;
this.panelFriendHeadImage.BackgroundImage = item.HeadImage;
this.textBoxSend.Focus();
List emotionList = new List();
foreach (Image emotion in this.imageList1.Images)
{
emotionList.Add(emotion);
}
this.emotionForm = new EmotionForm();
this.emotionForm.Load += new EventHandler(emotionForm_Load);
this.emotionForm.Initialize(emotionList);
this.emotionForm.Emotionclicked += new ESBasic.CbGeneric(emotionForm_Clicked);
this.emotionForm.Visible = false;
//文件传送
this.fileTransferingViewer.Initialize(this.friendID this.rapidPassiveEngine.FileOutter);
this.fileTransferingViewer.FileTransStarted += new CbGeneric(fileTransferingViewer1_FileTransStarted);
this.fileTransferingViewer.FileTransDisruptted += new CbGeneric(fileTransferingViewer1_FileTransDisruptted);
this.fileTransferingViewer.FileTransCompleted += new CbGeneric(fileTransferingViewer1_FileTransCompleted);
this.f
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2364 2013-08-08 11:33 51Aspx源码必读.txt
目录 0 2013-08-08 11:34 Dlls\
文件 384000 2013-07-10 16:41 Dlls\ESBasic.dll
文件 187392 2013-07-12 08:52 Dlls\ESfr
文件 144248 2013-07-12 08:50 Dlls\ESfr
文件 265728 2013-07-12 08:52 Dlls\ESPlus.dll
文件 167506 2013-07-12 08:50 Dlls\ESPlus.xm
文件 76800 2013-07-29 16:51 Dlls\ImageCapturerLib.dll
文件 191488 2012-10-31 10:14 Dlls\Paintfr
文件 529920 2013-04-28 15:19 Dlls\SkinForm.dll
目录 0 2013-08-08 11:34 GG\
文件 4286 2013-08-07 15:55 GG\All_logo32-xp.ico
文件 70977 2013-07-30 11:26 GG\ChatForm.Designer.cs
文件 22665 2013-07-30 11:26 GG\ChatForm.cs
文件 633283 2013-07-29 16:20 GG\ChatForm.resx
文件 1947 2013-07-30 11:26 GG\EmotionForm.Designer.cs
文件 3989 2013-07-30 11:26 GG\EmotionForm.cs
文件 5817 2013-07-16 14:24 GG\EmotionForm.resx
目录 0 2013-08-08 11:34 GG\FileTransferingViewer\
文件 7766 2013-07-30 11:26 GG\FileTransferingViewer\FileTransferItem.Designer.cs
文件 9531 2013-07-30 11:26 GG\FileTransferingViewer\FileTransferItem.cs
文件 19408 2013-07-26 11:50 GG\FileTransferingViewer\FileTransferItem.resx
文件 2488 2013-07-30 11:26 GG\FileTransferingViewer\FileTransferingViewer.Designer.cs
文件 18937 2013-07-30 11:26 GG\FileTransferingViewer\FileTransferingViewer.cs
文件 5814 2013-07-26 09:33 GG\FileTransferingViewer\FileTransferingViewer.resx
文件 1554 2013-07-30 11:26 GG\FileTransferingViewer\IFileTransferingViewer.cs
文件 463 2011-11-10 09:49 GG\FileTransferingViewer\vssver2.scc
文件 15360 2013-08-07 15:56 GG\GG.csproj
文件 227 2013-07-29 15:01 GG\GG.csproj.user
文件 12684 2013-07-30 16:13 GG\InformationForm.Designer.cs
文件 1841 2013-07-30 16:13 GG\InformationForm.cs
............此处省略305个文件信息
- 上一篇:个人闹钟的小程序
- 下一篇:Dreamwever个人主页设计
相关资源
- 通信软件的具体实例──基于Socket的
- 用VC 编写的仿QQ聊天室程序源代码
- Qt局域网聊天软件
- websocket实现一对一聊天
- QT局域网聊天系统(基于QT5.修改过)
- 基于swing的简单聊天器(兼传输文件)
- 飞秋FeiQ 兼容qq和飞鸽传书功能
- 基于CSocket的多人聊天室
- mfc聊天室
- irc聊天室
- Scratch案例:聊天交互 .sb2
- 微信聊天机器人源码
- Axure原型(IM聊天工具PC端).rp
- swift-模仿类似聊天的UI
- 易语言服务器源码易语言简易聊天室
- 易语言P2P聊天源码
- 嵌入式局域网聊天系统客户端
- QQ米i吗破解
- 漫言阁个人博客 V3.0 全功能版
- GG2014版源码。仿QQ聊天软件
- SignalR net版本的在线聊天室
- linux网络聊天室
- 基于ajax的web聊天室
- FLASH局域网免服务器P2P聊天室源码(
- 易语言客户端源码易语言服务端源码
- 易语言易聊天客户端源码易语言易聊
- 易语言聊天室客户源码易语言聊天室
- .net 实现 简单的QQ聊天
- 利用同步TCP编写网络聊天程序
- 微信机器人 v3.5绿色免费版.zip
评论
共有 条评论