-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathguideform.cs
More file actions
84 lines (72 loc) · 2.33 KB
/
guideform.cs
File metadata and controls
84 lines (72 loc) · 2.33 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
using System;
using System.Diagnostics;
using System.Drawing;
using System.Windows.Forms;
namespace APKdevastate
{
public partial class guideform : Form
{
private bool isMouseDown = false;
private Point lastLocation;
public guideform()
{
InitializeComponent();
this.panelsurusdur.MouseDown += new MouseEventHandler(panelsurusdur_MouseDown);
this.panelsurusdur.MouseMove += new MouseEventHandler(panelsurusdur_MouseMove);
this.panelsurusdur.MouseUp += new MouseEventHandler(panelsurusdur_MouseUp);
this.Shown += guideform_Shown;
}
private void guideform_Shown(object sender, EventArgs e)
{
this.BeginInvoke(new Action(() =>
{
ScrollToTop();
}));
}
private void ScrollToTop()
{
panelsurusdur.AutoScrollPosition = new Point(0, 0);
panelsurusdur.VerticalScroll.Value = 0;
panelsurusdur.PerformLayout();
}
private void panelsurusdur_MouseDown(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
isMouseDown = true;
lastLocation = e.Location;
}
}
private void panelsurusdur_MouseMove(object sender, MouseEventArgs e)
{
if (isMouseDown)
{
this.Location = new Point(
(this.Location.X - lastLocation.X) + e.X,
(this.Location.Y - lastLocation.Y) + e.Y
);
}
}
private void panelsurusdur_MouseUp(object sender, MouseEventArgs e)
{
isMouseDown = false;
}
private void pictureBox2_Click(object sender, EventArgs e)
{
this.Hide();
}
private void pictureBox3_Click(object sender, EventArgs e)
{
this.WindowState = FormWindowState.Minimized;
}
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
ProcessStartInfo psi = new ProcessStartInfo
{
FileName = "https://www.instagram.com/rafok2v9c/",
UseShellExecute = true
};
Process.Start(psi);
}
}
}