glenean: 1) Нет оно заполняется, но не меняется, оно меняется только если сменю пк
2)Если я правильно понял то:
private System.ComponentModel.IContainer components = null;
///
/// Освободить все используемые ресурсы.
///
/// истинно, если управляемый ресурс должен быть удален; иначе ложно.
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Код, автоматически созданный конструктором форм Windows
///
/// Обязательный метод для поддержки конструктора - не изменяйте
/// содержимое данного метода при помощи редактора кода.
///
private void InitializeComponent()
{
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.richTextBox2 = new System.Windows.Forms.RichTextBox();
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.button4 = new System.Windows.Forms.Button();
this.textBox3 = new System.Windows.Forms.TextBox();
this.button3 = new System.Windows.Forms.Button();
this.textBox2 = new System.Windows.Forms.TextBox();
this.label6 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.richTextBox4 = new System.Windows.Forms.RichTextBox();
this.textBox1 = new System.Windows.Forms.TextBox();
this.button1 = new System.Windows.Forms.Button();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.label4 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.richTextBox5 = new System.Windows.Forms.RichTextBox();
this.button2 = new System.Windows.Forms.Button();
this.richTextBox3 = new System.Windows.Forms.RichTextBox();
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
this.openFileDialog2 = new System.Windows.Forms.OpenFileDialog();
this.button5 = new System.Windows.Forms.Button();
this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
this.SuspendLayout();
//
// groupBox1
//
this.groupBox1.Controls.Add(this.richTextBox2);
this.groupBox1.Controls.Add(this.richTextBox1);
this.groupBox1.Controls.Add(this.button4);
this.groupBox1.Controls.Add(this.textBox3);
this.groupBox1.Controls.Add(this.button3);
this.groupBox1.Controls.Add(this.textBox2);
this.groupBox1.Controls.Add(this.label6);
this.groupBox1.Controls.Add(this.label5);
this.groupBox1.Controls.Add(this.label2);
this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Controls.Add(this.richTextBox4);
this.groupBox1.Controls.Add(this.textBox1);
this.groupBox1.Controls.Add(this.button1);
this.groupBox1.Location = new System.Drawing.Point(13, 13);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(504, 476);
this.groupBox1.TabIndex = 0;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "отправитель";
//
// richTextBox2
//
this.richTextBox2.Location = new System.Drawing.Point(270, 73);
this.richTextBox2.Name = "richTextBox2";
this.richTextBox2.Size = new System.Drawing.Size(228, 182);
this.richTextBox2.TabIndex = 17;
this.richTextBox2.Text = "";
//
// richTextBox1
//
this.richTextBox1.Location = new System.Drawing.Point(6, 73);
this.richTextBox1.Name = "richTextBox1";
this.richTextBox1.Size = new System.Drawing.Size(232, 182);
this.richTextBox1.TabIndex = 16;
this.richTextBox1.Text = "";
//
// button4
//
this.button4.Location = new System.Drawing.Point(406, 41);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(75, 23);
this.button4.TabIndex = 15;
this.button4.Text = "Открыть";
this.button4.UseVisualStyleBackColor = true;
this.button4.Click += new System.EventHandler(this.button4_Click);
//
// textBox3
//
this.textBox3.Location = new System.Drawing.Point(253, 44);
this.textBox3.Name = "textBox3";
this.textBox3.Size = new System.Drawing.Size(147, 20);
this.textBox3.TabIndex = 14;
//
// button3
//
this.button3.Location = new System.Drawing.Point(163, 44);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(75, 23);
this.button3.TabIndex = 13;
this.button3.Text = "Открыть";
this.button3.UseVisualStyleBackColor = true;
this.button3.Click += new System.EventHandler(this.button3_Click);
//
// textBox2
//
this.textBox2.Location = new System.Drawing.Point(9, 47);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(148, 20);
this.textBox2.TabIndex = 12;
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(7, 307);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(125, 13);
this.label6.TabIndex = 11;
this.label6.Text = "результат шифрования";
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(6, 261);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(131, 13);
this.label5.TabIndex = 10;
this.label5.Text = "введите исходный текст";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(267, 20);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(57, 13);
this.label2.TabIndex = 8;
this.label2.Text = "открытый";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(7, 20);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(152, 13);
this.label1.TabIndex = 7;
this.label1.Text = "открытый ключ и секретный";
//
// richTextBox4
//
this.richTextBox4.Location = new System.Drawing.Point(7, 327);
this.richTextBox4.Name = "richTextBox4";
this.richTextBox4.Size = new System.Drawing.Size(491, 114);
this.richTextBox4.TabIndex = 4;
this.richTextBox4.Text = "";
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(7, 280);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(491, 20);
this.textBox1.TabIndex = 3;
//
// button1
//
this.button1.Location = new System.Drawing.Point(7, 447);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 2;
this.button1.Text = "отправить";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// groupBox2
//
this.groupBox2.Controls.Add(this.button5);
this.groupBox2.Controls.Add(this.label4);
this.groupBox2.Controls.Add(this.label7);
this.groupBox2.Controls.Add(this.label3);
this.groupBox2.Controls.Add(this.richTextBox5);
this.groupBox2.Controls.Add(this.button2);
this.groupBox2.Controls.Add(this.richTextBox3);
this.groupBox2.Location = new System.Drawing.Point(524, 13);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(501, 476);
this.groupBox2.TabIndex = 1;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "получатель";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(351, 447);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(85, 13);
this.label4.TabIndex = 5;
this.label4.Text = "Кол-во байтов: ";
//
// label7
//
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(7, 202);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(131, 13);
this.label7.TabIndex = 4;
this.label7.Text = "результат расшифровки";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(7, 20);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(89, 13);
this.label3.TabIndex = 3;
this.label3.Text = "полученый ключ";
//
// richTextBox5
//
this.richTextBox5.Location = new System.Drawing.Point(6, 216);
this.richTextBox5.Name = "richTextBox5";
this.richTextBox5.Size = new System.Drawing.Size(488, 144);
this.richTextBox5.TabIndex = 2;
this.richTextBox5.Text = "";
//
// button2
//
this.button2.Location = new System.Drawing.Point(7, 379);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(75, 23);
this.button2.TabIndex = 1;
this.button2.Text = "прочитать сообщение";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// richTextBox3
//
this.richTextBox3.Location = new System.Drawing.Point(7, 35);
this.richTextBox3.Name = "richTextBox3";
this.richTextBox3.Size = new System.Drawing.Size(230, 141);
this.richTextBox3.TabIndex = 0;
this.richTextBox3.Text = "";
//
// openFileDialog1
//
this.openFileDialog1.FileName = "openFileDialog1";
//
// openFileDialog2
//
this.openFileDialog2.FileName = "openFileDialog2";
//
// button5
//
this.button5.Location = new System.Drawing.Point(345, 43);
this.button5.Name = "button5";
this.button5.Size = new System.Drawing.Size(75, 23);
this.button5.TabIndex = 6;
this.button5.Text = "button5";
this.button5.UseVisualStyleBackColor = true;
this.button5.Click += new System.EventHandler(this.button5_Click);
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1037, 501);
this.Controls.Add(this.groupBox2);
this.Controls.Add(this.groupBox1);
this.Name = "Form1";
this.Text = "Form1";
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.groupBox2.ResumeLayout(false);
this.groupBox2.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.RichTextBox richTextBox4;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.RichTextBox richTextBox5;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.RichTextBox richTextBox3;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.Button button4;
private System.Windows.Forms.TextBox textBox3;
private System.Windows.Forms.RichTextBox richTextBox2;
private System.Windows.Forms.RichTextBox richTextBox1;
private System.Windows.Forms.OpenFileDialog openFileDialog1;
private System.Windows.Forms.OpenFileDialog openFileDialog2;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Button button5;
}
}
3)Имело бы смысл если поле оставалось бы пустым
4)Чей это код я думаю не так важно