-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCustomMessageBox.cs
More file actions
47 lines (38 loc) · 1.1 KB
/
Copy pathCustomMessageBox.cs
File metadata and controls
47 lines (38 loc) · 1.1 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
using System;
using System.Drawing;
using System.Windows.Forms;
namespace wfdbig
{
public partial class CustomMessageBox : Form
{
private Form _shippingForm;
public CustomMessageBox(string heading, string subheading, Form shippingForm)
{
InitializeComponent();
lblHeading.Text = heading;
lblSubheading.Text = subheading;
_shippingForm = shippingForm;
}
private void pictureBox4_Click(object sender, EventArgs e)
{
if (_shippingForm != null)
{
_shippingForm.Hide();
}
this.Hide();
Home yeosin = new Home();
yeosin.Show();
}
private void pictureBox4_MouseEnter(object sender, EventArgs e)
{
pictureBox4.BackColor = Color.Red;
}
private void pictureBox4_MouseLeave(object sender, EventArgs e)
{
pictureBox4.BackColor = Color.Transparent;
}
private void CustomMessageBox_Load(object sender, EventArgs e)
{
}
}
}