• 大小: 0.02M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: 聊天  通信  

资源简介

点对点通信聊天UI气泡效果实现

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WinformBubble
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        /// 
        /// 当前消息气泡起始位置
        /// 

        private int top = 0;

        /// 
        /// 当前消息气泡高度
        /// 

        private int height = 0;


        private void button1_Click(object sender EventArgs e)
        {
            AddSendMessage(textBox1.Text);
            AddReceiveMessage(textBox1.Text);
        }

        /// 
        /// 显示接收消息
        /// 

 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-05-11 12:02  WinformBubble-master\
     文件        2518  2018-05-11 12:02  WinformBubble-master\.gitattributes
     文件        4305  2018-05-11 12:02  WinformBubble-master\.gitignore
     文件         127  2018-05-11 12:02  WinformBubble-master\README.md
     目录           0  2018-05-11 12:02  WinformBubble-master\WinformBubble\
     文件        1113  2018-05-11 12:02  WinformBubble-master\WinformBubble\WinformBubble.sln
     目录           0  2018-05-11 12:02  WinformBubble-master\WinformBubble\WinformBubble\
     文件         178  2018-05-11 12:02  WinformBubble-master\WinformBubble\WinformBubble\App.config
     文件        2952  2018-05-11 12:02  WinformBubble-master\WinformBubble\WinformBubble\Form1.Designer.cs
     文件        1975  2018-05-11 12:02  WinformBubble-master\WinformBubble\WinformBubble\Form1.cs
     文件        5698  2018-05-11 12:02  WinformBubble-master\WinformBubble\WinformBubble\Form1.resx
     文件        3304  2018-05-11 12:02  WinformBubble-master\WinformBubble\WinformBubble\Item.Designer.cs
     文件        3068  2018-05-11 12:02  WinformBubble-master\WinformBubble\WinformBubble\Item.cs
     文件         503  2018-05-11 12:02  WinformBubble-master\WinformBubble\WinformBubble\Program.cs
     目录           0  2018-05-11 12:02  WinformBubble-master\WinformBubble\WinformBubble\Properties\
     文件        1288  2018-05-11 12:02  WinformBubble-master\WinformBubble\WinformBubble\Properties\AssemblyInfo.cs
     文件        2804  2018-05-11 12:02  WinformBubble-master\WinformBubble\WinformBubble\Properties\Resources.Designer.cs
     文件        5496  2018-05-11 12:02  WinformBubble-master\WinformBubble\WinformBubble\Properties\Resources.resx
     文件        1087  2018-05-11 12:02  WinformBubble-master\WinformBubble\WinformBubble\Properties\Settings.Designer.cs
     文件         242  2018-05-11 12:02  WinformBubble-master\WinformBubble\WinformBubble\Properties\Settings.settings
     文件        3742  2018-05-11 12:02  WinformBubble-master\WinformBubble\WinformBubble\WinformBubble.csproj
     文件        6165  2018-05-11 12:02  WinformBubble-master\form1.png

评论

共有 条评论