Form1.cs
上传用户:lxycoco
上传日期:2022-07-21
资源大小:38457k
文件大小:2k
源码类别:

C#编程

开发平台:

Others

  1. using System;
  2. using System.Drawing;
  3. using System.Collections;
  4. using System.ComponentModel;
  5. using System.Windows.Forms;
  6. using System.Data;
  7. namespace TestHArness
  8. {
  9. /// <summary>
  10. /// Summary description for Form1.
  11. /// </summary>
  12. public class Form1 : System.Windows.Forms.Form
  13. {
  14.     private UserControlSample.AddressCtl addressCtl1;
  15. /// <summary>
  16. /// Required designer variable.
  17. /// </summary>
  18. private System.ComponentModel.Container components = null;
  19. public Form1()
  20. {
  21. //
  22. // Required for Windows Form Designer support
  23. //
  24. InitializeComponent();
  25. //
  26. // TODO: Add any constructor code after InitializeComponent call
  27. //
  28.       
  29. }
  30. /// <summary>
  31. /// Clean up any resources being used.
  32. /// </summary>
  33. protected override void Dispose( bool disposing )
  34. {
  35. if( disposing )
  36. {
  37. if (components != null) 
  38. {
  39. components.Dispose();
  40. }
  41. }
  42. base.Dispose( disposing );
  43. }
  44. #region Windows Form Designer generated code
  45. /// <summary>
  46. /// Required method for Designer support - do not modify
  47. /// the contents of this method with the code editor.
  48. /// </summary>
  49. private void InitializeComponent()
  50. {
  51.       this.addressCtl1 = new UserControlSample.AddressCtl();
  52.       this.SuspendLayout();
  53.       // 
  54.       // addressCtl1
  55.       // 
  56.       this.addressCtl1.AddressLine1 = "";
  57.       this.addressCtl1.AddressLine2 = "";
  58.       this.addressCtl1.City = "";
  59.       this.addressCtl1.Location = new System.Drawing.Point(24, 24);
  60.       this.addressCtl1.Name = "addressCtl1";
  61.       this.addressCtl1.Size = new System.Drawing.Size(304, 88);
  62.       this.addressCtl1.State = "";
  63.       this.addressCtl1.TabIndex = 0;
  64.       this.addressCtl1.Zip = "";
  65.       // 
  66.       // Form1
  67.       // 
  68.       this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
  69.       this.ClientSize = new System.Drawing.Size(344, 271);
  70.       this.Controls.Add(this.addressCtl1);
  71.       this.Name = "Form1";
  72.       this.Text = "Form1";
  73.       this.Load += new System.EventHandler(this.Form1_Load);
  74.       this.ResumeLayout(false);
  75.     }
  76. #endregion
  77. /// <summary>
  78. /// The main entry point for the application.
  79. /// </summary>
  80. [STAThread]
  81. static void Main() 
  82. {
  83. Application.Run(new Form1());
  84. }
  85.     private void Form1_Load(object sender, System.EventArgs e)
  86.     {
  87.       addressCtl1.AddressLine1 = "test";
  88.     }
  89. }
  90. }