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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
| using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace listbox3
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
listBox1.Items.Add(listBox1.Items.Add(Convert.ToString(richTextBox1.Text)));
}
public int nn;
// public int nebulon;
public int j;
public String s;
private void richTextBox1_TextChanged(object sender, EventArgs e)
{
// s = richTextBox1.Lines.GetValue(nn).ToString();
// listBox1.Items.Add(j);
// j++;
//richTextBox1 listBox1.Items.Add(listBox1.Items.Add(Convert.ToString(richTextBox1.Text)));
}
private void richTextBox2_TextChanged(object sender, EventArgs e)
{
// s = richTextBox2.Lines.GetValue(nn).ToString();
// listBox1.Items.Add(j);
// j++;
}
private void richTextBox3_TextChanged(object sender, EventArgs e)
{
// s = richTextBox2.Lines.GetValue(nn).ToString();
// listBox1.Items.Add(j);
// j++;
}
private void richTextBox4_TextChanged(object sender, EventArgs e)
{
/*listBox1.Items.Add(j);
j++;*/
}
private void button1_Click(object sender, EventArgs e)
{
// s = richTextBox1.ToString();
// listBox1.Items.Add(j);
// j++;
// MessageBox.Show(richTextBox1.ToString(), " 5555 ");
//listBox1.Items.Add("Item " + richTextBox1.ToString());
//MessageBox.Show();
// listBox1.SetSelected(2, true);
//ADD();
// listBox1.Items.Add(Convert.ToString(richTextBox1.Text));
/////////////////////////////////////////////////////////////////////////
// listBox1.Items.Add(richTextBox1.Text);
// GetNextControl.
// SetDesktopLocation
// Clipboard.GetData(Text);
listBox1.Items.Add(Clipboard.GetData(Text));
}
// private void ADD()
// {
// }
/* private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
{
}
*/
// CacheVirtualItemsEventArgs
private void button2_Click(object sender, EventArgs e)
{
/* listBox1.Items.Add(j);
*/
listBox1.Items.Clear();
// SelectNextControl(j);
//j++;
// richTextBox1.Add(listBox1.Items());
// listBox1.Items.Add(richTextBox2.Text);
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
{
}
private void richTextBox8_TextChanged(object sender, EventArgs e)
{
}
private void richTextBox5_TextChanged(object sender, EventArgs e)
{
}
private void richTextBox7_TextChanged(object sender, EventArgs e)
{
}
private void richTextBox6_TextChanged(object sender, EventArgs e)
{
}
private void button3_Click(object sender, EventArgs e)
{
listBox1.Items.Add(richTextBox8.Text);
/////////////////////////////////////////////////////
listBox1.Items.Add(Clipboard.GetText());
// Clipboard.GetText();
// Clipboard.GetImage();
}
private void listBox1_richTextBox_(object sender, KeyEventArgs e)
{
}
private void listBox1_KeyDown(object sender, MouseEventArgs e)
{
}
private void lisBox1_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
richTextBox8.Text = listBox1.SelectedItem.ToString();
}
}
}
} |