Form2.cs
Upload User: chinafred
Upload Date: 2007-08-14
Package Size: 10127k
Code Size: 2k
Category:

ADO-ODBC

Development Platform:

C#

  1. using System;
  2. using System.Drawing;
  3. using System.Collections;
  4. using System.ComponentModel;
  5. using System.Windows.Forms;
  6. namespace ch2_9
  7. {
  8. /// <summary>
  9. /// Form2 的摘要说明。
  10. /// </summary>
  11. public class Form2 : System.Windows.Forms.Form
  12. {
  13. public System.Windows.Forms.PictureBox pictureBox1;
  14. /// <summary>
  15. /// 必需的设计器变量。
  16. /// </summary>
  17. private System.ComponentModel.Container components = null;
  18. public Form2()
  19. {
  20. //
  21. // Windows 窗体设计器支持所必需的
  22. //
  23. InitializeComponent();
  24. //
  25. // TODO: 在 InitializeComponent 调用后添加任何构造函数代码
  26. //
  27. }
  28. /// <summary>
  29. /// 清理所有正在使用的资源。
  30. /// </summary>
  31. protected override void Dispose( bool disposing )
  32. {
  33. if( disposing )
  34. {
  35. if(components != null)
  36. {
  37. components.Dispose();
  38. }
  39. }
  40. base.Dispose( disposing );
  41. }
  42. #region Windows Form Designer generated code
  43. /// <summary>
  44. /// 设计器支持所需的方法 - 不要使用代码编辑器修改
  45. /// 此方法的内容。
  46. /// </summary>
  47. private void InitializeComponent()
  48. {
  49. this.pictureBox1 = new System.Windows.Forms.PictureBox();
  50. this.SuspendLayout();
  51. // 
  52. // pictureBox1
  53. // 
  54. this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Fill;
  55. this.pictureBox1.Name = "pictureBox1";
  56. this.pictureBox1.Size = new System.Drawing.Size(292, 273);
  57. this.pictureBox1.TabIndex = 0;
  58. this.pictureBox1.TabStop = false;
  59. // 
  60. // Form2
  61. // 
  62. this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
  63. this.ClientSize = new System.Drawing.Size(292, 273);
  64. this.Controls.AddRange(new System.Windows.Forms.Control[] {
  65.   this.pictureBox1});
  66. this.Name = "Form2";
  67. this.Text = "Form2";
  68. this.Closed += new System.EventHandler(this.Form2_Closed);
  69. this.ResumeLayout(false);
  70. }
  71. #endregion
  72. private void Form2_Closed(object sender, System.EventArgs e)
  73. {
  74. Form1 fm=(Form1)this.MdiParent;
  75. fm.UpdateToolBar();
  76. }
  77. }
  78. }