-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadd new group.cs
48 lines (42 loc) · 1.12 KB
/
add new group.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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 Chatio
{
public partial class Form3 : Form
{
public Form3()
{
InitializeComponent();
}
//moveable window
protected override void WndProc(ref Message m)
{
base.WndProc(ref m);
if (m.Msg == WM_NCHITTEST)
m.Result = (IntPtr)(HT_CAPTION);
}
private const int WM_NCHITTEST = 0x84;
private const int HT_CLIENT = 0x1;
private const int HT_CAPTION = 0x2;
//moveable window end
private void button1_Click(object sender, EventArgs e)
{
Globle g = new Globle();
g.addgroup(textBox1.Text);
Form2 f2 = new Form2();
f2.Refresh();
this.Close();
}
private void pictureBox3_Click(object sender, EventArgs e)
{
this.Close();
}
}
}