fclient.cs
资源名称:类似QQ聊天程序.rar [点击查看]
上传用户:yan_wy
上传日期:2007-06-09
资源大小:112k
文件大小:3k
源码类别:
ICQ/即时通讯
开发平台:
C#
- using System;
- using System.Drawing;
- using System.Collections;
- using System.ComponentModel;
- using System.Windows.Forms;
- namespace qq
- {
- /// <summary>
- /// fclient 的摘要说明。
- /// </summary>
- public class fclient : System.Windows.Forms.Form
- {
- UserControl1 control;
- private System.Windows.Forms.Button button1;
- private System.Windows.Forms.Label label1;
- private System.Windows.Forms.SaveFileDialog saveFileDialog1;
- /// <summary>
- /// 必需的设计器变量。
- /// </summary>
- private System.ComponentModel.Container components = null;
- public fclient(UserControl1 us)
- {
- //
- // Windows 窗体设计器支持所必需的
- //
- control=us;
- InitializeComponent();
- //
- // 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.button1 = new System.Windows.Forms.Button();
- this.label1 = new System.Windows.Forms.Label();
- this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
- this.SuspendLayout();
- //
- // button1
- //
- this.button1.Location = new System.Drawing.Point(80, 136);
- this.button1.Name = "button1";
- this.button1.Size = new System.Drawing.Size(96, 23);
- this.button1.TabIndex = 0;
- this.button1.Text = "接受";
- this.button1.Click += new System.EventHandler(this.button1_Click);
- //
- // label1
- //
- this.label1.Location = new System.Drawing.Point(80, 48);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(100, 64);
- this.label1.TabIndex = 2;
- this.label1.Text = "有好友传文件给你";
- this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
- // fclient
- //
- this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
- this.ClientSize = new System.Drawing.Size(264, 200);
- this.Controls.Add(this.label1);
- this.Controls.Add(this.button1);
- this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
- this.MaximizeBox = false;
- this.Name = "fclient";
- this.Text = "fclient";
- this.ResumeLayout(false);
- }
- #endregion
- private void button1_Click(object sender, System.EventArgs e)
- {
- this.DialogResult=DialogResult.OK;
- }
- private void button2_Click(object sender, System.EventArgs e)
- {
- this.DialogResult=DialogResult.Cancel;
- }
- }
- }