资料.cs
上传用户:yan_wy
上传日期:2007-06-09
资源大小:112k
文件大小:7k
- using System;
- using System.Drawing;
- using System.Collections;
- using System.ComponentModel;
- using System.Windows.Forms;
- namespace qq
- {
- /// <summary>
- /// 资料 的摘要说明。
- /// </summary>
- public class 资料 : System.Windows.Forms.Form
- {
- UserControl1 control;
- private System.Windows.Forms.TextBox textBox1;
- private System.Windows.Forms.Label label1;
- private System.Windows.Forms.Label label2;
- private System.Windows.Forms.TextBox textBox2;
- private System.Windows.Forms.Label label3;
- private System.Windows.Forms.TextBox textBox3;
- private System.Windows.Forms.PictureBox pictureBox1;
- private System.Windows.Forms.Button button1;
- private System.Windows.Forms.Label label4;
- private System.Windows.Forms.RichTextBox richTextBox1;
- private System.Windows.Forms.Label label5;
- private System.Windows.Forms.TextBox textBox4;
- /// <summary>
- /// 必需的设计器变量。
- /// </summary>
- private System.ComponentModel.Container components = null;
- public 资料(UserControl1 aa)
- {
- //
- // Windows 窗体设计器支持所必需的
- //
- control=aa;
-
- InitializeComponent();
- this.textBox1.Text=control.uid;
- this.textBox2.Text=aa.name;
- this.textBox3.Text=aa.sex;
- this.textBox4.Text=aa.age;
- this.richTextBox1.Text=aa.jianjie;
- this.pictureBox1.Image=Image.FromFile(aa.form.path+@"newface"+(aa.picture).Trim()+".bmp");
- /* this.pictureBox1.Image= Image.FromFile
- (System.Environment.GetFolderPath
- (System.Environment.SpecialFolder.Personal)
- + @".newface"+(aa.picture).Trim()+".bmp");*/
- //
- // TODO: 在 InitializeComponent 调用后添加任何构造函数代码
- //
- }
- /// <summary>
- /// 清理所有正在使用的资源。
- /// </summary>
- protected override void Dispose( bool disposing )
- {
- if( disposing )
- {
- if(components != null)
- {
- components.Dispose();
- }
- }
- base.Dispose( disposing );
- }
- #region Windows 窗体设计器生成的代码
- /// <summary>
- /// 设计器支持所需的方法 - 不要使用代码编辑器修改
- /// 此方法的内容。
- /// </summary>
- private void InitializeComponent()
- {
- this.textBox1 = new System.Windows.Forms.TextBox();
- this.label1 = new System.Windows.Forms.Label();
- this.label2 = new System.Windows.Forms.Label();
- this.textBox2 = new System.Windows.Forms.TextBox();
- this.label3 = new System.Windows.Forms.Label();
- this.textBox3 = new System.Windows.Forms.TextBox();
- this.pictureBox1 = new System.Windows.Forms.PictureBox();
- this.button1 = new System.Windows.Forms.Button();
- this.label4 = new System.Windows.Forms.Label();
- this.richTextBox1 = new System.Windows.Forms.RichTextBox();
- this.label5 = new System.Windows.Forms.Label();
- this.textBox4 = new System.Windows.Forms.TextBox();
- this.SuspendLayout();
- //
- // textBox1
- //
- this.textBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.textBox1.Location = new System.Drawing.Point(64, 32);
- this.textBox1.Name = "textBox1";
- this.textBox1.Size = new System.Drawing.Size(64, 21);
- this.textBox1.TabIndex = 0;
- this.textBox1.Text = "";
- //
- // label1
- //
- this.label1.Location = new System.Drawing.Point(16, 32);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(40, 24);
- this.label1.TabIndex = 1;
- this.label1.Text = "QQ";
- //
- // label2
- //
- this.label2.Location = new System.Drawing.Point(8, 80);
- this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(48, 23);
- this.label2.TabIndex = 2;
- this.label2.Text = "呢称";
- //
- // textBox2
- //
- this.textBox2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.textBox2.Location = new System.Drawing.Point(64, 80);
- this.textBox2.Name = "textBox2";
- this.textBox2.Size = new System.Drawing.Size(64, 21);
- this.textBox2.TabIndex = 3;
- this.textBox2.Text = "";
- //
- // label3
- //
- this.label3.Location = new System.Drawing.Point(0, 128);
- this.label3.Name = "label3";
- this.label3.Size = new System.Drawing.Size(48, 24);
- this.label3.TabIndex = 4;
- this.label3.Text = "性别";
- this.label3.TextAlign = System.Drawing.ContentAlignment.TopCenter;
- //
- // textBox3
- //
- this.textBox3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.textBox3.Location = new System.Drawing.Point(64, 128);
- this.textBox3.Name = "textBox3";
- this.textBox3.Size = new System.Drawing.Size(64, 21);
- this.textBox3.TabIndex = 5;
- this.textBox3.Text = "";
- //
- // pictureBox1
- //
- this.pictureBox1.Location = new System.Drawing.Point(176, 32);
- this.pictureBox1.Name = "pictureBox1";
- this.pictureBox1.Size = new System.Drawing.Size(64, 48);
- this.pictureBox1.TabIndex = 6;
- this.pictureBox1.TabStop = false;
- //
- // button1
- //
- this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
- this.button1.Location = new System.Drawing.Point(168, 192);
- this.button1.Name = "button1";
- this.button1.Size = new System.Drawing.Size(72, 32);
- this.button1.TabIndex = 7;
- this.button1.Text = "关闭";
- this.button1.Click += new System.EventHandler(this.button1_Click);
- //
- // label4
- //
- this.label4.Location = new System.Drawing.Point(8, 192);
- this.label4.Name = "label4";
- this.label4.Size = new System.Drawing.Size(40, 24);
- this.label4.TabIndex = 8;
- this.label4.Text = "简介";
- //
- // richTextBox1
- //
- this.richTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.richTextBox1.Location = new System.Drawing.Point(64, 176);
- this.richTextBox1.Name = "richTextBox1";
- this.richTextBox1.Size = new System.Drawing.Size(64, 56);
- this.richTextBox1.TabIndex = 9;
- this.richTextBox1.Text = "";
- //
- // label5
- //
- this.label5.Location = new System.Drawing.Point(152, 128);
- this.label5.Name = "label5";
- this.label5.Size = new System.Drawing.Size(32, 16);
- this.label5.TabIndex = 10;
- this.label5.Text = "年龄";
- //
- // textBox4
- //
- this.textBox4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.textBox4.Location = new System.Drawing.Point(208, 128);
- this.textBox4.Name = "textBox4";
- this.textBox4.Size = new System.Drawing.Size(56, 21);
- this.textBox4.TabIndex = 11;
- this.textBox4.Text = "";
- //
- // 资料
- //
- this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
- this.ClientSize = new System.Drawing.Size(292, 273);
- this.Controls.Add(this.textBox4);
- this.Controls.Add(this.label5);
- this.Controls.Add(this.richTextBox1);
- this.Controls.Add(this.label4);
- this.Controls.Add(this.button1);
- this.Controls.Add(this.pictureBox1);
- this.Controls.Add(this.textBox3);
- this.Controls.Add(this.label3);
- this.Controls.Add(this.textBox2);
- this.Controls.Add(this.label2);
- this.Controls.Add(this.label1);
- this.Controls.Add(this.textBox1);
- this.MaximizeBox = false;
- this.Name = "资料";
- this.Text = "资料";
- this.ResumeLayout(false);
- }
- #endregion
- private void button1_Click(object sender, System.EventArgs e)
- {
- this.Close();
- }
- }
- }