Form1.cs 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364
  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 SWFTest
  8. {
  9. /// <summary>
  10. /// Summary description for Form1.
  11. /// </summary>
  12. public class Form1 : System.Windows.Forms.Form
  13. {
  14. private System.Windows.Forms.Label label1;
  15. private System.Windows.Forms.LinkLabel linkLabel1;
  16. private System.Windows.Forms.Button button1;
  17. private System.Windows.Forms.TextBox textBox1;
  18. private System.Windows.Forms.MainMenu mainMenu1;
  19. private System.Windows.Forms.CheckBox checkBox1;
  20. private System.Windows.Forms.RadioButton radioButton1;
  21. private System.Windows.Forms.GroupBox groupBox1;
  22. private System.Windows.Forms.ContextMenu contextMenu1;
  23. private System.Windows.Forms.StatusBar statusBar1;
  24. private System.Windows.Forms.ToolBar toolBar1;
  25. private System.Windows.Forms.PictureBox pictureBox1;
  26. private System.Windows.Forms.Panel panel1;
  27. private System.Windows.Forms.DataGrid dataGrid1;
  28. private System.Windows.Forms.MonthCalendar monthCalendar1;
  29. private System.Windows.Forms.DateTimePicker dateTimePicker1;
  30. private System.Windows.Forms.HScrollBar hScrollBar1;
  31. private System.Windows.Forms.VScrollBar vScrollBar1;
  32. private System.Windows.Forms.Timer timer1;
  33. private System.Windows.Forms.Splitter splitter1;
  34. private System.Windows.Forms.DomainUpDown domainUpDown1;
  35. private System.Windows.Forms.NumericUpDown numericUpDown1;
  36. private System.Windows.Forms.TrackBar trackBar1;
  37. private System.Windows.Forms.ProgressBar progressBar1;
  38. private System.Windows.Forms.RichTextBox richTextBox1;
  39. private System.Windows.Forms.ImageList imageList1;
  40. private System.Windows.Forms.HelpProvider helpProvider1;
  41. private System.Windows.Forms.ToolTip toolTip1;
  42. private System.Windows.Forms.ContextMenu contextMenu2;
  43. private System.Windows.Forms.NotifyIcon notifyIcon1;
  44. private System.Windows.Forms.OpenFileDialog openFileDialog1;
  45. private System.Windows.Forms.SaveFileDialog saveFileDialog1;
  46. private System.Windows.Forms.FontDialog fontDialog1;
  47. private System.Windows.Forms.ColorDialog colorDialog1;
  48. private System.Windows.Forms.PrintDialog printDialog1;
  49. private System.Windows.Forms.PrintPreviewControl printPreviewControl1;
  50. private System.Windows.Forms.ErrorProvider errorProvider1;
  51. private System.Drawing.Printing.PrintDocument printDocument1;
  52. private System.Windows.Forms.PageSetupDialog pageSetupDialog1;
  53. private System.ComponentModel.IContainer components;
  54. public Form1()
  55. {
  56. //
  57. // Required for Windows Form Designer support
  58. //
  59. InitializeComponent();
  60. //
  61. // TODO: Add any constructor code after InitializeComponent call
  62. //
  63. }
  64. /// <summary>
  65. /// Clean up any resources being used.
  66. /// </summary>
  67. protected override void Dispose( bool disposing )
  68. {
  69. if( disposing )
  70. {
  71. if (components != null)
  72. {
  73. components.Dispose();
  74. }
  75. }
  76. base.Dispose( disposing );
  77. }
  78. #region Windows Form Designer generated code
  79. /// <summary>
  80. /// Required method for Designer support - do not modify
  81. /// the contents of this method with the code editor.
  82. /// </summary>
  83. private void InitializeComponent()
  84. {
  85. this.components = new System.ComponentModel.Container();
  86. this.label1 = new System.Windows.Forms.Label();
  87. this.linkLabel1 = new System.Windows.Forms.LinkLabel();
  88. this.button1 = new System.Windows.Forms.Button();
  89. this.textBox1 = new System.Windows.Forms.TextBox();
  90. this.mainMenu1 = new System.Windows.Forms.MainMenu();
  91. this.checkBox1 = new System.Windows.Forms.CheckBox();
  92. this.radioButton1 = new System.Windows.Forms.RadioButton();
  93. this.groupBox1 = new System.Windows.Forms.GroupBox();
  94. this.contextMenu1 = new System.Windows.Forms.ContextMenu();
  95. this.statusBar1 = new System.Windows.Forms.StatusBar();
  96. this.toolBar1 = new System.Windows.Forms.ToolBar();
  97. this.pictureBox1 = new System.Windows.Forms.PictureBox();
  98. this.panel1 = new System.Windows.Forms.Panel();
  99. this.dataGrid1 = new System.Windows.Forms.DataGrid();
  100. this.monthCalendar1 = new System.Windows.Forms.MonthCalendar();
  101. this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker();
  102. this.hScrollBar1 = new System.Windows.Forms.HScrollBar();
  103. this.vScrollBar1 = new System.Windows.Forms.VScrollBar();
  104. this.timer1 = new System.Windows.Forms.Timer(this.components);
  105. this.splitter1 = new System.Windows.Forms.Splitter();
  106. this.domainUpDown1 = new System.Windows.Forms.DomainUpDown();
  107. this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
  108. this.trackBar1 = new System.Windows.Forms.TrackBar();
  109. this.progressBar1 = new System.Windows.Forms.ProgressBar();
  110. this.richTextBox1 = new System.Windows.Forms.RichTextBox();
  111. this.imageList1 = new System.Windows.Forms.ImageList(this.components);
  112. this.helpProvider1 = new System.Windows.Forms.HelpProvider();
  113. this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
  114. this.contextMenu2 = new System.Windows.Forms.ContextMenu();
  115. this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components);
  116. this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
  117. this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
  118. this.fontDialog1 = new System.Windows.Forms.FontDialog();
  119. this.colorDialog1 = new System.Windows.Forms.ColorDialog();
  120. this.printDialog1 = new System.Windows.Forms.PrintDialog();
  121. this.printPreviewControl1 = new System.Windows.Forms.PrintPreviewControl();
  122. this.errorProvider1 = new System.Windows.Forms.ErrorProvider();
  123. this.printDocument1 = new System.Drawing.Printing.PrintDocument();
  124. this.pageSetupDialog1 = new System.Windows.Forms.PageSetupDialog();
  125. ((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).BeginInit();
  126. ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
  127. ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).BeginInit();
  128. this.SuspendLayout();
  129. //
  130. // label1
  131. //
  132. this.label1.Location = new System.Drawing.Point(111, 252);
  133. this.label1.Name = "label1";
  134. this.label1.TabIndex = 0;
  135. this.label1.Text = "label1";
  136. //
  137. // linkLabel1
  138. //
  139. this.linkLabel1.Location = new System.Drawing.Point(26, 74);
  140. this.linkLabel1.Name = "linkLabel1";
  141. this.linkLabel1.TabIndex = 1;
  142. this.linkLabel1.TabStop = true;
  143. this.linkLabel1.Text = "linkLabel1";
  144. //
  145. // button1
  146. //
  147. this.button1.Location = new System.Drawing.Point(26, 117);
  148. this.button1.Name = "button1";
  149. this.button1.TabIndex = 2;
  150. this.button1.Text = "button1";
  151. //
  152. // textBox1
  153. //
  154. this.textBox1.Location = new System.Drawing.Point(17, 157);
  155. this.textBox1.Name = "textBox1";
  156. this.textBox1.TabIndex = 3;
  157. this.textBox1.Text = "textBox1";
  158. //
  159. // checkBox1
  160. //
  161. this.checkBox1.Location = new System.Drawing.Point(16, 211);
  162. this.checkBox1.Name = "checkBox1";
  163. this.checkBox1.TabIndex = 4;
  164. this.checkBox1.Text = "checkBox1";
  165. //
  166. // radioButton1
  167. //
  168. this.radioButton1.Location = new System.Drawing.Point(10, 257);
  169. this.radioButton1.Name = "radioButton1";
  170. this.radioButton1.TabIndex = 5;
  171. this.radioButton1.Text = "radioButton1";
  172. //
  173. // groupBox1
  174. //
  175. this.groupBox1.Location = new System.Drawing.Point(14, 293);
  176. this.groupBox1.Name = "groupBox1";
  177. this.groupBox1.TabIndex = 6;
  178. this.groupBox1.TabStop = false;
  179. this.groupBox1.Text = "groupBox1";
  180. //
  181. // statusBar1
  182. //
  183. this.statusBar1.Location = new System.Drawing.Point(0, 548);
  184. this.statusBar1.Name = "statusBar1";
  185. this.statusBar1.Size = new System.Drawing.Size(813, 22);
  186. this.statusBar1.TabIndex = 7;
  187. this.statusBar1.Text = "statusBar1";
  188. //
  189. // toolBar1
  190. //
  191. this.toolBar1.DropDownArrows = true;
  192. this.toolBar1.Location = new System.Drawing.Point(0, 0);
  193. this.toolBar1.Name = "toolBar1";
  194. this.toolBar1.ShowToolTips = true;
  195. this.toolBar1.Size = new System.Drawing.Size(813, 42);
  196. this.toolBar1.TabIndex = 8;
  197. //
  198. // pictureBox1
  199. //
  200. this.pictureBox1.BackColor = System.Drawing.Color.Red;
  201. this.pictureBox1.Location = new System.Drawing.Point(22, 415);
  202. this.pictureBox1.Name = "pictureBox1";
  203. this.pictureBox1.TabIndex = 9;
  204. this.pictureBox1.TabStop = false;
  205. //
  206. // panel1
  207. //
  208. this.panel1.Location = new System.Drawing.Point(164, 421);
  209. this.panel1.Name = "panel1";
  210. this.panel1.TabIndex = 10;
  211. //
  212. // dataGrid1
  213. //
  214. this.dataGrid1.DataMember = "";
  215. this.dataGrid1.HeaderForeColor = System.Drawing.SystemColors.ControlText;
  216. this.dataGrid1.Location = new System.Drawing.Point(147, 78);
  217. this.dataGrid1.Name = "dataGrid1";
  218. this.dataGrid1.TabIndex = 11;
  219. //
  220. // monthCalendar1
  221. //
  222. this.monthCalendar1.Location = new System.Drawing.Point(318, 72);
  223. this.monthCalendar1.Name = "monthCalendar1";
  224. this.monthCalendar1.TabIndex = 12;
  225. //
  226. // dateTimePicker1
  227. //
  228. this.dateTimePicker1.Location = new System.Drawing.Point(109, 188);
  229. this.dateTimePicker1.Name = "dateTimePicker1";
  230. this.dateTimePicker1.TabIndex = 13;
  231. //
  232. // hScrollBar1
  233. //
  234. this.hScrollBar1.Location = new System.Drawing.Point(189, 242);
  235. this.hScrollBar1.Name = "hScrollBar1";
  236. this.hScrollBar1.TabIndex = 14;
  237. //
  238. // vScrollBar1
  239. //
  240. this.vScrollBar1.Location = new System.Drawing.Point(241, 318);
  241. this.vScrollBar1.Name = "vScrollBar1";
  242. this.vScrollBar1.TabIndex = 15;
  243. //
  244. // splitter1
  245. //
  246. this.splitter1.Location = new System.Drawing.Point(0, 42);
  247. this.splitter1.Name = "splitter1";
  248. this.splitter1.Size = new System.Drawing.Size(3, 506);
  249. this.splitter1.TabIndex = 16;
  250. this.splitter1.TabStop = false;
  251. //
  252. // domainUpDown1
  253. //
  254. this.domainUpDown1.Location = new System.Drawing.Point(315, 257);
  255. this.domainUpDown1.Name = "domainUpDown1";
  256. this.domainUpDown1.TabIndex = 17;
  257. this.domainUpDown1.Text = "domainUpDown1";
  258. //
  259. // numericUpDown1
  260. //
  261. this.numericUpDown1.Location = new System.Drawing.Point(319, 314);
  262. this.numericUpDown1.Name = "numericUpDown1";
  263. this.numericUpDown1.TabIndex = 18;
  264. //
  265. // trackBar1
  266. //
  267. this.trackBar1.Location = new System.Drawing.Point(392, 374);
  268. this.trackBar1.Name = "trackBar1";
  269. this.trackBar1.TabIndex = 19;
  270. //
  271. // progressBar1
  272. //
  273. this.progressBar1.Location = new System.Drawing.Point(381, 442);
  274. this.progressBar1.Name = "progressBar1";
  275. this.progressBar1.TabIndex = 20;
  276. //
  277. // richTextBox1
  278. //
  279. this.richTextBox1.Location = new System.Drawing.Point(527, 79);
  280. this.richTextBox1.Name = "richTextBox1";
  281. this.richTextBox1.TabIndex = 21;
  282. this.richTextBox1.Text = "richTextBox1";
  283. //
  284. // imageList1
  285. //
  286. this.imageList1.ImageSize = new System.Drawing.Size(16, 16);
  287. this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
  288. //
  289. // notifyIcon1
  290. //
  291. this.notifyIcon1.Text = "notifyIcon1";
  292. this.notifyIcon1.Visible = true;
  293. //
  294. // saveFileDialog1
  295. //
  296. this.saveFileDialog1.FileName = "doc1";
  297. //
  298. // printPreviewControl1
  299. //
  300. this.printPreviewControl1.AutoZoom = false;
  301. this.printPreviewControl1.Location = new System.Drawing.Point(456, 260);
  302. this.printPreviewControl1.Name = "printPreviewControl1";
  303. this.printPreviewControl1.Size = new System.Drawing.Size(100, 100);
  304. this.printPreviewControl1.TabIndex = 22;
  305. this.printPreviewControl1.Zoom = 0.3;
  306. //
  307. // errorProvider1
  308. //
  309. this.errorProvider1.ContainerControl = this;
  310. this.errorProvider1.DataMember = "";
  311. //
  312. // Form1
  313. //
  314. this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
  315. this.ClientSize = new System.Drawing.Size(813, 570);
  316. this.Controls.Add(this.printPreviewControl1);
  317. this.Controls.Add(this.richTextBox1);
  318. this.Controls.Add(this.progressBar1);
  319. this.Controls.Add(this.trackBar1);
  320. this.Controls.Add(this.numericUpDown1);
  321. this.Controls.Add(this.domainUpDown1);
  322. this.Controls.Add(this.splitter1);
  323. this.Controls.Add(this.vScrollBar1);
  324. this.Controls.Add(this.hScrollBar1);
  325. this.Controls.Add(this.dateTimePicker1);
  326. this.Controls.Add(this.monthCalendar1);
  327. this.Controls.Add(this.dataGrid1);
  328. this.Controls.Add(this.panel1);
  329. this.Controls.Add(this.pictureBox1);
  330. this.Controls.Add(this.toolBar1);
  331. this.Controls.Add(this.statusBar1);
  332. this.Controls.Add(this.groupBox1);
  333. this.Controls.Add(this.radioButton1);
  334. this.Controls.Add(this.checkBox1);
  335. this.Controls.Add(this.textBox1);
  336. this.Controls.Add(this.button1);
  337. this.Controls.Add(this.linkLabel1);
  338. this.Controls.Add(this.label1);
  339. this.Menu = this.mainMenu1;
  340. this.Name = "Form1";
  341. this.Text = "Form1";
  342. ((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).EndInit();
  343. ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
  344. ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).EndInit();
  345. this.ResumeLayout(false);
  346. }
  347. #endregion
  348. /// <summary>
  349. /// The main entry point for the application.
  350. /// </summary>
  351. [STAThread]
  352. static void Main()
  353. {
  354. Application.Run(new Form1());
  355. }
  356. }
  357. }