-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLoad
More file actions
71 lines (60 loc) · 1.66 KB
/
Copy pathLoad
File metadata and controls
71 lines (60 loc) · 1.66 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
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 WindowsFormsApplication1
{
public partial class Load : Form
{
string textBox1_Focused, textBox2_Focused;
public Load()
{
InitializeComponent();
}
private void Load_Load(object sender, EventArgs e)
{
}
private void button_click(object sender, EventArgs e)
{
if (textBox1_Focused == "yes")
{
Button bu = (Button)sender;
textBox1_Result.Text = textBox1_Result.Text + bu.Text;
}
else if (textBox2_Focused == "yes")
{
Button button = (Button)sender;
textBox2_Rult.Text = textBox2_Rult.Text + button.Text;
}
}
private void txtAccNo_Click(object sender, EventArgs e)
{
textBox1_Focused = "yes";
textBox2_Focused = "no";
}
private void txtAmount_Click(object sender, EventArgs e)
{
textBox1_Focused = "no";
textBox2_Focused = "yes";
}
private void txtAmount_Click()
{
MessageBox.Show("");
textBox2_Rult.Focus();
}
private void button12_Click(object sender, EventArgs e)
{
Hide();
Form1 open = new Form1();
open.Show();
}
private void button13_Click(object sender, EventArgs e)
{
}
}
}