コード例 #1
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.tabControl     = new System.Windows.Forms.TabControl();
     this.tabLinks       = new System.Windows.Forms.TabPage();
     this.edtUrlName     = new System.Windows.Forms.TextBox();
     this.edtUrlTarget   = new System.Windows.Forms.TextBox();
     this.edtUrlHref     = new System.Windows.Forms.TextBox();
     this.label4         = new System.Windows.Forms.Label();
     this.label3         = new System.Windows.Forms.Label();
     this.label2         = new System.Windows.Forms.Label();
     this.label1         = new System.Windows.Forms.Label();
     this.lbLinks        = new System.Windows.Forms.ListBox();
     this.tabImages      = new System.Windows.Forms.TabPage();
     this.edtImageHeight = new System.Windows.Forms.TextBox();
     this.edtImageWidth  = new System.Windows.Forms.TextBox();
     this.edtImageAlt    = new System.Windows.Forms.TextBox();
     this.edtImageSrc    = new System.Windows.Forms.TextBox();
     this.label9         = new System.Windows.Forms.Label();
     this.label8         = new System.Windows.Forms.Label();
     this.label7         = new System.Windows.Forms.Label();
     this.label6         = new System.Windows.Forms.Label();
     this.label5         = new System.Windows.Forms.Label();
     this.lbImages       = new System.Windows.Forms.ListBox();
     this.tabForms       = new System.Windows.Forms.TabPage();
     this.edtFormMethod  = new System.Windows.Forms.TextBox();
     this.edtFormName    = new System.Windows.Forms.TextBox();
     this.edtFormEncType = new System.Windows.Forms.TextBox();
     this.edtFormAction  = new System.Windows.Forms.TextBox();
     this.label15        = new System.Windows.Forms.Label();
     this.label14        = new System.Windows.Forms.Label();
     this.label13        = new System.Windows.Forms.Label();
     this.label12        = new System.Windows.Forms.Label();
     this.label11        = new System.Windows.Forms.Label();
     this.label10        = new System.Windows.Forms.Label();
     this.lbFormControls = new System.Windows.Forms.ListBox();
     this.lbForms        = new System.Windows.Forms.ListBox();
     this.tabText        = new System.Windows.Forms.TabPage();
     this.lbText         = new System.Windows.Forms.ListBox();
     this.btnOpen        = new System.Windows.Forms.Button();
     this.openFileDialog = new System.Windows.Forms.OpenFileDialog();
     this.htmlParser1    = new CleverComponents.InetSuite.HtmlParser();
     this.tabControl.SuspendLayout();
     this.tabLinks.SuspendLayout();
     this.tabImages.SuspendLayout();
     this.tabForms.SuspendLayout();
     this.tabText.SuspendLayout();
     this.SuspendLayout();
     //
     // tabControl
     //
     this.tabControl.Controls.Add(this.tabLinks);
     this.tabControl.Controls.Add(this.tabImages);
     this.tabControl.Controls.Add(this.tabForms);
     this.tabControl.Controls.Add(this.tabText);
     this.tabControl.Location      = new System.Drawing.Point(16, 16);
     this.tabControl.Name          = "tabControl";
     this.tabControl.SelectedIndex = 0;
     this.tabControl.Size          = new System.Drawing.Size(480, 272);
     this.tabControl.TabIndex      = 0;
     //
     // tabLinks
     //
     this.tabLinks.Controls.Add(this.edtUrlName);
     this.tabLinks.Controls.Add(this.edtUrlTarget);
     this.tabLinks.Controls.Add(this.edtUrlHref);
     this.tabLinks.Controls.Add(this.label4);
     this.tabLinks.Controls.Add(this.label3);
     this.tabLinks.Controls.Add(this.label2);
     this.tabLinks.Controls.Add(this.label1);
     this.tabLinks.Controls.Add(this.lbLinks);
     this.tabLinks.Location = new System.Drawing.Point(4, 22);
     this.tabLinks.Name     = "tabLinks";
     this.tabLinks.Size     = new System.Drawing.Size(472, 246);
     this.tabLinks.TabIndex = 0;
     this.tabLinks.Text     = "Links";
     //
     // edtUrlName
     //
     this.edtUrlName.Location = new System.Drawing.Point(368, 216);
     this.edtUrlName.Name     = "edtUrlName";
     this.edtUrlName.ReadOnly = true;
     this.edtUrlName.Size     = new System.Drawing.Size(88, 20);
     this.edtUrlName.TabIndex = 3;
     this.edtUrlName.Text     = "";
     //
     // edtUrlTarget
     //
     this.edtUrlTarget.Location = new System.Drawing.Point(272, 216);
     this.edtUrlTarget.Name     = "edtUrlTarget";
     this.edtUrlTarget.ReadOnly = true;
     this.edtUrlTarget.Size     = new System.Drawing.Size(88, 20);
     this.edtUrlTarget.TabIndex = 2;
     this.edtUrlTarget.Text     = "";
     //
     // edtUrlHref
     //
     this.edtUrlHref.Location = new System.Drawing.Point(16, 216);
     this.edtUrlHref.Name     = "edtUrlHref";
     this.edtUrlHref.ReadOnly = true;
     this.edtUrlHref.Size     = new System.Drawing.Size(248, 20);
     this.edtUrlHref.TabIndex = 1;
     this.edtUrlHref.Text     = "";
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(368, 200);
     this.label4.Name     = "label4";
     this.label4.TabIndex = 4;
     this.label4.Text     = "Name";
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(272, 200);
     this.label3.Name     = "label3";
     this.label3.TabIndex = 3;
     this.label3.Text     = "Target";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(16, 200);
     this.label2.Name     = "label2";
     this.label2.TabIndex = 2;
     this.label2.Text     = "URL";
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(16, 8);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(100, 16);
     this.label1.TabIndex = 1;
     this.label1.Text     = "Link Tags";
     //
     // lbLinks
     //
     this.lbLinks.Location              = new System.Drawing.Point(16, 32);
     this.lbLinks.Name                  = "lbLinks";
     this.lbLinks.Size                  = new System.Drawing.Size(440, 160);
     this.lbLinks.TabIndex              = 0;
     this.lbLinks.SelectedIndexChanged += new System.EventHandler(this.lbLinks_SelectedIndexChanged);
     //
     // tabImages
     //
     this.tabImages.Controls.Add(this.edtImageHeight);
     this.tabImages.Controls.Add(this.edtImageWidth);
     this.tabImages.Controls.Add(this.edtImageAlt);
     this.tabImages.Controls.Add(this.edtImageSrc);
     this.tabImages.Controls.Add(this.label9);
     this.tabImages.Controls.Add(this.label8);
     this.tabImages.Controls.Add(this.label7);
     this.tabImages.Controls.Add(this.label6);
     this.tabImages.Controls.Add(this.label5);
     this.tabImages.Controls.Add(this.lbImages);
     this.tabImages.Location = new System.Drawing.Point(4, 22);
     this.tabImages.Name     = "tabImages";
     this.tabImages.Size     = new System.Drawing.Size(472, 246);
     this.tabImages.TabIndex = 1;
     this.tabImages.Text     = "Images";
     //
     // edtImageHeight
     //
     this.edtImageHeight.Location = new System.Drawing.Point(328, 216);
     this.edtImageHeight.Name     = "edtImageHeight";
     this.edtImageHeight.ReadOnly = true;
     this.edtImageHeight.Size     = new System.Drawing.Size(128, 20);
     this.edtImageHeight.TabIndex = 4;
     this.edtImageHeight.Text     = "";
     //
     // edtImageWidth
     //
     this.edtImageWidth.Location = new System.Drawing.Point(328, 168);
     this.edtImageWidth.Name     = "edtImageWidth";
     this.edtImageWidth.ReadOnly = true;
     this.edtImageWidth.Size     = new System.Drawing.Size(128, 20);
     this.edtImageWidth.TabIndex = 2;
     this.edtImageWidth.Text     = "";
     //
     // edtImageAlt
     //
     this.edtImageAlt.Location = new System.Drawing.Point(16, 216);
     this.edtImageAlt.Name     = "edtImageAlt";
     this.edtImageAlt.ReadOnly = true;
     this.edtImageAlt.Size     = new System.Drawing.Size(304, 20);
     this.edtImageAlt.TabIndex = 3;
     this.edtImageAlt.Text     = "";
     //
     // edtImageSrc
     //
     this.edtImageSrc.Location = new System.Drawing.Point(16, 168);
     this.edtImageSrc.Name     = "edtImageSrc";
     this.edtImageSrc.ReadOnly = true;
     this.edtImageSrc.Size     = new System.Drawing.Size(304, 20);
     this.edtImageSrc.TabIndex = 1;
     this.edtImageSrc.Text     = "";
     //
     // label9
     //
     this.label9.Location = new System.Drawing.Point(328, 200);
     this.label9.Name     = "label9";
     this.label9.TabIndex = 5;
     this.label9.Text     = "Height";
     //
     // label8
     //
     this.label8.Location = new System.Drawing.Point(328, 152);
     this.label8.Name     = "label8";
     this.label8.TabIndex = 4;
     this.label8.Text     = "Width";
     //
     // label7
     //
     this.label7.Location = new System.Drawing.Point(16, 200);
     this.label7.Name     = "label7";
     this.label7.TabIndex = 3;
     this.label7.Text     = "Alt";
     //
     // label6
     //
     this.label6.Location = new System.Drawing.Point(16, 152);
     this.label6.Name     = "label6";
     this.label6.TabIndex = 2;
     this.label6.Text     = "Src";
     //
     // label5
     //
     this.label5.Location = new System.Drawing.Point(16, 8);
     this.label5.Name     = "label5";
     this.label5.TabIndex = 1;
     this.label5.Text     = "Image Tags";
     //
     // lbImages
     //
     this.lbImages.Location              = new System.Drawing.Point(16, 32);
     this.lbImages.Name                  = "lbImages";
     this.lbImages.Size                  = new System.Drawing.Size(440, 108);
     this.lbImages.TabIndex              = 0;
     this.lbImages.SelectedIndexChanged += new System.EventHandler(this.lbImages_SelectedIndexChanged);
     //
     // tabForms
     //
     this.tabForms.Controls.Add(this.edtFormMethod);
     this.tabForms.Controls.Add(this.edtFormName);
     this.tabForms.Controls.Add(this.edtFormEncType);
     this.tabForms.Controls.Add(this.edtFormAction);
     this.tabForms.Controls.Add(this.label15);
     this.tabForms.Controls.Add(this.label14);
     this.tabForms.Controls.Add(this.label13);
     this.tabForms.Controls.Add(this.label12);
     this.tabForms.Controls.Add(this.label11);
     this.tabForms.Controls.Add(this.label10);
     this.tabForms.Controls.Add(this.lbFormControls);
     this.tabForms.Controls.Add(this.lbForms);
     this.tabForms.Location = new System.Drawing.Point(4, 22);
     this.tabForms.Name     = "tabForms";
     this.tabForms.Size     = new System.Drawing.Size(472, 246);
     this.tabForms.TabIndex = 2;
     this.tabForms.Text     = "Forms";
     //
     // edtFormMethod
     //
     this.edtFormMethod.Location = new System.Drawing.Point(312, 216);
     this.edtFormMethod.Name     = "edtFormMethod";
     this.edtFormMethod.ReadOnly = true;
     this.edtFormMethod.Size     = new System.Drawing.Size(144, 20);
     this.edtFormMethod.TabIndex = 5;
     this.edtFormMethod.Text     = "";
     //
     // edtFormName
     //
     this.edtFormName.Location = new System.Drawing.Point(312, 168);
     this.edtFormName.Name     = "edtFormName";
     this.edtFormName.ReadOnly = true;
     this.edtFormName.Size     = new System.Drawing.Size(144, 20);
     this.edtFormName.TabIndex = 3;
     this.edtFormName.Text     = "";
     //
     // edtFormEncType
     //
     this.edtFormEncType.Location = new System.Drawing.Point(16, 216);
     this.edtFormEncType.Name     = "edtFormEncType";
     this.edtFormEncType.ReadOnly = true;
     this.edtFormEncType.Size     = new System.Drawing.Size(280, 20);
     this.edtFormEncType.TabIndex = 4;
     this.edtFormEncType.Text     = "";
     //
     // edtFormAction
     //
     this.edtFormAction.Location = new System.Drawing.Point(16, 168);
     this.edtFormAction.Name     = "edtFormAction";
     this.edtFormAction.ReadOnly = true;
     this.edtFormAction.Size     = new System.Drawing.Size(280, 20);
     this.edtFormAction.TabIndex = 2;
     this.edtFormAction.Text     = "";
     //
     // label15
     //
     this.label15.Location = new System.Drawing.Point(312, 200);
     this.label15.Name     = "label15";
     this.label15.TabIndex = 7;
     this.label15.Text     = "Method";
     //
     // label14
     //
     this.label14.Location = new System.Drawing.Point(312, 152);
     this.label14.Name     = "label14";
     this.label14.TabIndex = 6;
     this.label14.Text     = "Form Name";
     //
     // label13
     //
     this.label13.Location = new System.Drawing.Point(16, 200);
     this.label13.Name     = "label13";
     this.label13.TabIndex = 5;
     this.label13.Text     = "Enc Type";
     //
     // label12
     //
     this.label12.Location = new System.Drawing.Point(16, 152);
     this.label12.Name     = "label12";
     this.label12.TabIndex = 4;
     this.label12.Text     = "Action";
     //
     // label11
     //
     this.label11.Location = new System.Drawing.Point(312, 8);
     this.label11.Name     = "label11";
     this.label11.TabIndex = 3;
     this.label11.Text     = "Controls";
     //
     // label10
     //
     this.label10.Location = new System.Drawing.Point(16, 8);
     this.label10.Name     = "label10";
     this.label10.TabIndex = 2;
     this.label10.Text     = "Form Tags";
     //
     // lbFormControls
     //
     this.lbFormControls.Location = new System.Drawing.Point(312, 32);
     this.lbFormControls.Name     = "lbFormControls";
     this.lbFormControls.Size     = new System.Drawing.Size(144, 108);
     this.lbFormControls.TabIndex = 1;
     //
     // lbForms
     //
     this.lbForms.Location              = new System.Drawing.Point(16, 32);
     this.lbForms.Name                  = "lbForms";
     this.lbForms.Size                  = new System.Drawing.Size(280, 108);
     this.lbForms.TabIndex              = 0;
     this.lbForms.SelectedIndexChanged += new System.EventHandler(this.lbForms_SelectedIndexChanged);
     //
     // tabText
     //
     this.tabText.Controls.Add(this.lbText);
     this.tabText.Location = new System.Drawing.Point(4, 22);
     this.tabText.Name     = "tabText";
     this.tabText.Size     = new System.Drawing.Size(472, 246);
     this.tabText.TabIndex = 3;
     this.tabText.Text     = "Text";
     //
     // lbText
     //
     this.lbText.Location = new System.Drawing.Point(16, 16);
     this.lbText.Name     = "lbText";
     this.lbText.Size     = new System.Drawing.Size(440, 212);
     this.lbText.TabIndex = 0;
     //
     // btnOpen
     //
     this.btnOpen.Location = new System.Drawing.Point(16, 296);
     this.btnOpen.Name     = "btnOpen";
     this.btnOpen.TabIndex = 1;
     this.btnOpen.Text     = "Open File";
     this.btnOpen.Click   += new System.EventHandler(this.btnOpen_Click);
     //
     // openFileDialog
     //
     this.openFileDialog.Filter = "Html Files|*.htm|All Files|*.*";
     //
     // htmlParser1
     //
     this.htmlParser1.ParseMethod = CleverComponents.InetSuite.ParseMethod.All;
     this.htmlParser1.ParseTag   += new CleverComponents.InetSuite.ParseTagEventHandler(this.htmlParser1_ParseTag);
     //
     // MainForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(520, 334);
     this.Controls.Add(this.btnOpen);
     this.Controls.Add(this.tabControl);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox     = false;
     this.Name            = "MainForm";
     this.Text            = "Html Parser sample";
     this.tabControl.ResumeLayout(false);
     this.tabLinks.ResumeLayout(false);
     this.tabImages.ResumeLayout(false);
     this.tabForms.ResumeLayout(false);
     this.tabText.ResumeLayout(false);
     this.ResumeLayout(false);
 }
コード例 #2
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.label1                 = new System.Windows.Forms.Label();
     this.label2                 = new System.Windows.Forms.Label();
     this.edtUrl                 = new System.Windows.Forms.TextBox();
     this.button1                = new System.Windows.Forms.Button();
     this.cbShowText             = new System.Windows.Forms.CheckBox();
     this.memResult              = new System.Windows.Forms.TextBox();
     this.http1                  = new CleverComponents.InetSuite.Http();
     this.htmlParser1            = new CleverComponents.InetSuite.HtmlParser();
     this.edtPassword            = new System.Windows.Forms.TextBox();
     this.label8                 = new System.Windows.Forms.Label();
     this.edtUser                = new System.Windows.Forms.TextBox();
     this.label7                 = new System.Windows.Forms.Label();
     this.certificateStore1      = new CleverComponents.InetSuite.CertificateStore();
     this.clientCertificateStore = new CleverComponents.InetSuite.CertificateStore();
     this.SuspendLayout();
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(16, 16);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(424, 24);
     this.label1.TabIndex = 0;
     this.label1.Text     = "Type in the URL and click the \'GET\' button to retreive the page specified by URL." +
                            "";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(16, 40);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(40, 16);
     this.label2.TabIndex = 1;
     this.label2.Text     = "URL";
     //
     // edtUrl
     //
     this.edtUrl.Location = new System.Drawing.Point(56, 40);
     this.edtUrl.Name     = "edtUrl";
     this.edtUrl.Size     = new System.Drawing.Size(304, 20);
     this.edtUrl.TabIndex = 2;
     this.edtUrl.Text     = "https://www.paypal.com";
     //
     // button1
     //
     this.button1.Location = new System.Drawing.Point(368, 40);
     this.button1.Name     = "button1";
     this.button1.Size     = new System.Drawing.Size(56, 23);
     this.button1.TabIndex = 3;
     this.button1.Text     = "GET";
     this.button1.Click   += new System.EventHandler(this.button1_Click);
     //
     // cbShowText
     //
     this.cbShowText.Location = new System.Drawing.Point(56, 96);
     this.cbShowText.Name     = "cbShowText";
     this.cbShowText.Size     = new System.Drawing.Size(104, 24);
     this.cbShowText.TabIndex = 6;
     this.cbShowText.Text     = "Show text only";
     //
     // memResult
     //
     this.memResult.BackColor  = System.Drawing.SystemColors.Window;
     this.memResult.Location   = new System.Drawing.Point(0, 128);
     this.memResult.Multiline  = true;
     this.memResult.Name       = "memResult";
     this.memResult.ReadOnly   = true;
     this.memResult.ScrollBars = System.Windows.Forms.ScrollBars.Both;
     this.memResult.Size       = new System.Drawing.Size(448, 232);
     this.memResult.TabIndex   = 7;
     //
     // http1
     //
     this.http1.CharSet         = null;
     this.http1.ConnectTimeOut  = 0;
     this.http1.GetCertificate += new CleverComponents.InetSuite.GetCertificateEventHandler(this.http1_GetCertificate);
     this.http1.VerifyServer   += new CleverComponents.InetSuite.VerifyPeerEventHandler(this.http1_VerifyServer);
     //
     // htmlParser1
     //
     this.htmlParser1.ParseMethod = CleverComponents.InetSuite.ParseMethod.TextOnly;
     this.htmlParser1.ParseTag   += new CleverComponents.InetSuite.ParseTagEventHandler(this.htmlParser1_ParseTag);
     //
     // edtPassword
     //
     this.edtPassword.Location     = new System.Drawing.Point(248, 64);
     this.edtPassword.Name         = "edtPassword";
     this.edtPassword.PasswordChar = '*';
     this.edtPassword.Size         = new System.Drawing.Size(112, 20);
     this.edtPassword.TabIndex     = 5;
     //
     // label8
     //
     this.label8.Location = new System.Drawing.Point(184, 64);
     this.label8.Name     = "label8";
     this.label8.Size     = new System.Drawing.Size(64, 16);
     this.label8.TabIndex = 21;
     this.label8.Text     = "Password";
     //
     // edtUser
     //
     this.edtUser.Location = new System.Drawing.Point(56, 64);
     this.edtUser.Name     = "edtUser";
     this.edtUser.Size     = new System.Drawing.Size(104, 20);
     this.edtUser.TabIndex = 4;
     //
     // label7
     //
     this.label7.Location = new System.Drawing.Point(16, 64);
     this.label7.Name     = "label7";
     this.label7.Size     = new System.Drawing.Size(48, 16);
     this.label7.TabIndex = 20;
     this.label7.Text     = "User";
     //
     // certificateStore1
     //
     this.certificateStore1.ValidFrom = new System.DateTime(2020, 3, 8, 21, 12, 21, 90);
     this.certificateStore1.ValidTo   = new System.DateTime(2021, 3, 8, 21, 12, 21, 90);
     //
     // clientCertificateStore
     //
     this.clientCertificateStore.ValidFrom = new System.DateTime(2020, 3, 8, 21, 12, 21, 95);
     this.clientCertificateStore.ValidTo   = new System.DateTime(2021, 3, 8, 21, 12, 21, 95);
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(448, 358);
     this.Controls.Add(this.edtPassword);
     this.Controls.Add(this.label8);
     this.Controls.Add(this.edtUser);
     this.Controls.Add(this.label7);
     this.Controls.Add(this.memResult);
     this.Controls.Add(this.cbShowText);
     this.Controls.Add(this.button1);
     this.Controls.Add(this.edtUrl);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label1);
     this.Name = "Form1";
     this.Text = "HTTPS GET demo";
     this.ResumeLayout(false);
     this.PerformLayout();
 }
コード例 #3
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.label1           = new System.Windows.Forms.Label();
     this.label2           = new System.Windows.Forms.Label();
     this.edtUrl           = new System.Windows.Forms.TextBox();
     this.button1          = new System.Windows.Forms.Button();
     this.cbShowText       = new System.Windows.Forms.CheckBox();
     this.memResult        = new System.Windows.Forms.TextBox();
     this.label3           = new System.Windows.Forms.Label();
     this.edtProxyServer   = new System.Windows.Forms.TextBox();
     this.edtProxyUser     = new System.Windows.Forms.TextBox();
     this.label4           = new System.Windows.Forms.Label();
     this.label5           = new System.Windows.Forms.Label();
     this.edtProxyPort     = new System.Windows.Forms.TextBox();
     this.label6           = new System.Windows.Forms.Label();
     this.edtProxyPassword = new System.Windows.Forms.TextBox();
     this.label7           = new System.Windows.Forms.Label();
     this.edtUser          = new System.Windows.Forms.TextBox();
     this.label8           = new System.Windows.Forms.Label();
     this.edtPassword      = new System.Windows.Forms.TextBox();
     this.http1            = new CleverComponents.InetSuite.Http();
     this.htmlParser1      = new CleverComponents.InetSuite.HtmlParser();
     this.label9           = new System.Windows.Forms.Label();
     this.cbProxyType      = new System.Windows.Forms.ComboBox();
     this.SuspendLayout();
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(16, 16);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(424, 24);
     this.label1.TabIndex = 0;
     this.label1.Text     = "Type in the URL and click the \'GET\' button to retreive the page specified by URL." +
                            "";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(16, 40);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(40, 16);
     this.label2.TabIndex = 1;
     this.label2.Text     = "URL";
     //
     // edtUrl
     //
     this.edtUrl.Location = new System.Drawing.Point(56, 40);
     this.edtUrl.Name     = "edtUrl";
     this.edtUrl.Size     = new System.Drawing.Size(304, 20);
     this.edtUrl.TabIndex = 2;
     this.edtUrl.Text     = "http://www.microsoft.com";
     //
     // button1
     //
     this.button1.Location = new System.Drawing.Point(368, 40);
     this.button1.Name     = "button1";
     this.button1.Size     = new System.Drawing.Size(56, 23);
     this.button1.TabIndex = 3;
     this.button1.Text     = "GET";
     this.button1.Click   += new System.EventHandler(this.button1_Click);
     //
     // cbShowText
     //
     this.cbShowText.Location = new System.Drawing.Point(56, 175);
     this.cbShowText.Name     = "cbShowText";
     this.cbShowText.Size     = new System.Drawing.Size(104, 24);
     this.cbShowText.TabIndex = 10;
     this.cbShowText.Text     = "Show text only";
     //
     // memResult
     //
     this.memResult.BackColor  = System.Drawing.SystemColors.Window;
     this.memResult.Dock       = System.Windows.Forms.DockStyle.Bottom;
     this.memResult.Location   = new System.Drawing.Point(0, 214);
     this.memResult.Multiline  = true;
     this.memResult.Name       = "memResult";
     this.memResult.ReadOnly   = true;
     this.memResult.ScrollBars = System.Windows.Forms.ScrollBars.Both;
     this.memResult.Size       = new System.Drawing.Size(448, 212);
     this.memResult.TabIndex   = 11;
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(16, 127);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(72, 16);
     this.label3.TabIndex = 8;
     this.label3.Text     = "Poxy Server";
     //
     // edtProxyServer
     //
     this.edtProxyServer.Location = new System.Drawing.Point(88, 127);
     this.edtProxyServer.Name     = "edtProxyServer";
     this.edtProxyServer.Size     = new System.Drawing.Size(176, 20);
     this.edtProxyServer.TabIndex = 6;
     this.edtProxyServer.Text     = "proxyserver";
     //
     // edtProxyUser
     //
     this.edtProxyUser.Location = new System.Drawing.Point(88, 151);
     this.edtProxyUser.Name     = "edtProxyUser";
     this.edtProxyUser.Size     = new System.Drawing.Size(100, 20);
     this.edtProxyUser.TabIndex = 8;
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(16, 151);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(64, 16);
     this.label4.TabIndex = 11;
     this.label4.Text     = "Proxy User";
     //
     // label5
     //
     this.label5.Location = new System.Drawing.Point(200, 151);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(88, 16);
     this.label5.TabIndex = 12;
     this.label5.Text     = "Proxy Password";
     //
     // edtProxyPort
     //
     this.edtProxyPort.Location = new System.Drawing.Point(368, 127);
     this.edtProxyPort.Name     = "edtProxyPort";
     this.edtProxyPort.Size     = new System.Drawing.Size(56, 20);
     this.edtProxyPort.TabIndex = 7;
     this.edtProxyPort.Text     = "8080";
     //
     // label6
     //
     this.label6.Location = new System.Drawing.Point(288, 127);
     this.label6.Name     = "label6";
     this.label6.Size     = new System.Drawing.Size(64, 16);
     this.label6.TabIndex = 14;
     this.label6.Text     = "Proxy Port";
     //
     // edtProxyPassword
     //
     this.edtProxyPassword.Location     = new System.Drawing.Point(288, 151);
     this.edtProxyPassword.Name         = "edtProxyPassword";
     this.edtProxyPassword.PasswordChar = '*';
     this.edtProxyPassword.Size         = new System.Drawing.Size(136, 20);
     this.edtProxyPassword.TabIndex     = 9;
     //
     // label7
     //
     this.label7.Location = new System.Drawing.Point(16, 64);
     this.label7.Name     = "label7";
     this.label7.Size     = new System.Drawing.Size(48, 16);
     this.label7.TabIndex = 15;
     this.label7.Text     = "User";
     //
     // edtUser
     //
     this.edtUser.Location = new System.Drawing.Point(56, 64);
     this.edtUser.Name     = "edtUser";
     this.edtUser.Size     = new System.Drawing.Size(104, 20);
     this.edtUser.TabIndex = 4;
     //
     // label8
     //
     this.label8.Location = new System.Drawing.Point(184, 64);
     this.label8.Name     = "label8";
     this.label8.Size     = new System.Drawing.Size(64, 16);
     this.label8.TabIndex = 17;
     this.label8.Text     = "Password";
     //
     // edtPassword
     //
     this.edtPassword.Location     = new System.Drawing.Point(248, 64);
     this.edtPassword.Name         = "edtPassword";
     this.edtPassword.PasswordChar = '*';
     this.edtPassword.Size         = new System.Drawing.Size(112, 20);
     this.edtPassword.TabIndex     = 5;
     //
     // http1
     //
     this.http1.Port     = 80;
     this.http1.TlsFlags = ((CleverComponents.InetSuite.Sspi.TlsFlags)((CleverComponents.InetSuite.Sspi.TlsFlags.UseSSL2 | CleverComponents.InetSuite.Sspi.TlsFlags.UseSSL3)));
     //
     // htmlParser1
     //
     this.htmlParser1.ParseMethod = CleverComponents.InetSuite.ParseMethod.TextOnly;
     this.htmlParser1.ParseTag   += new CleverComponents.InetSuite.ParseTagEventHandler(this.htmlParser1_ParseTag);
     //
     // label9
     //
     this.label9.AutoSize = true;
     this.label9.Location = new System.Drawing.Point(16, 104);
     this.label9.Name     = "label9";
     this.label9.Size     = new System.Drawing.Size(60, 13);
     this.label9.TabIndex = 18;
     this.label9.Text     = "Proxy Type";
     //
     // cbProxyType
     //
     this.cbProxyType.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cbProxyType.FormattingEnabled = true;
     this.cbProxyType.Items.AddRange(new object[] {
         "HTTP Proxy",
         "SOCKS4 Firewall",
         "SOCKS5 Firewall"
     });
     this.cbProxyType.Location              = new System.Drawing.Point(88, 101);
     this.cbProxyType.Name                  = "cbProxyType";
     this.cbProxyType.Size                  = new System.Drawing.Size(176, 21);
     this.cbProxyType.TabIndex              = 19;
     this.cbProxyType.SelectedIndexChanged += new System.EventHandler(this.cbProxyType_SelectedIndexChanged);
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(448, 426);
     this.Controls.Add(this.cbProxyType);
     this.Controls.Add(this.label9);
     this.Controls.Add(this.edtPassword);
     this.Controls.Add(this.label8);
     this.Controls.Add(this.edtUser);
     this.Controls.Add(this.label7);
     this.Controls.Add(this.edtProxyPassword);
     this.Controls.Add(this.label6);
     this.Controls.Add(this.edtProxyPort);
     this.Controls.Add(this.label5);
     this.Controls.Add(this.label4);
     this.Controls.Add(this.edtProxyUser);
     this.Controls.Add(this.edtProxyServer);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.memResult);
     this.Controls.Add(this.cbShowText);
     this.Controls.Add(this.button1);
     this.Controls.Add(this.edtUrl);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label1);
     this.Name = "Form1";
     this.Text = "HTTP GET demo";
     this.ResumeLayout(false);
     this.PerformLayout();
 }
コード例 #4
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.htmlparser1 = new CleverComponents.InetSuite.HtmlParser();
     this.http1       = new CleverComponents.InetSuite.Http();
 }
コード例 #5
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.label1      = new System.Windows.Forms.Label();
     this.label2      = new System.Windows.Forms.Label();
     this.edtUrl      = new System.Windows.Forms.TextBox();
     this.button1     = new System.Windows.Forms.Button();
     this.cbShowText  = new System.Windows.Forms.CheckBox();
     this.memResult   = new System.Windows.Forms.TextBox();
     this.http1       = new CleverComponents.InetSuite.Http();
     this.htmlParser1 = new CleverComponents.InetSuite.HtmlParser();
     this.SuspendLayout();
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(16, 16);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(424, 24);
     this.label1.TabIndex = 0;
     this.label1.Text     = "Type in the URL and click the \'GET\' button to retreive the page specified by URL." +
                            "";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(16, 40);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(40, 16);
     this.label2.TabIndex = 1;
     this.label2.Text     = "URL";
     //
     // edtUrl
     //
     this.edtUrl.Location = new System.Drawing.Point(56, 40);
     this.edtUrl.Name     = "edtUrl";
     this.edtUrl.Size     = new System.Drawing.Size(304, 20);
     this.edtUrl.TabIndex = 2;
     this.edtUrl.Text     = "http://www.microsoft.com";
     //
     // button1
     //
     this.button1.Location = new System.Drawing.Point(368, 40);
     this.button1.Name     = "button1";
     this.button1.Size     = new System.Drawing.Size(56, 23);
     this.button1.TabIndex = 3;
     this.button1.Text     = "GET";
     this.button1.Click   += new System.EventHandler(this.button1_Click);
     //
     // cbShowText
     //
     this.cbShowText.Location = new System.Drawing.Point(56, 72);
     this.cbShowText.Name     = "cbShowText";
     this.cbShowText.TabIndex = 4;
     this.cbShowText.Text     = "Show text only";
     //
     // memResult
     //
     this.memResult.BackColor  = System.Drawing.SystemColors.Window;
     this.memResult.Location   = new System.Drawing.Point(0, 96);
     this.memResult.Multiline  = true;
     this.memResult.Name       = "memResult";
     this.memResult.ReadOnly   = true;
     this.memResult.ScrollBars = System.Windows.Forms.ScrollBars.Both;
     this.memResult.Size       = new System.Drawing.Size(448, 264);
     this.memResult.TabIndex   = 5;
     this.memResult.Text       = "";
     //
     // http1
     //
     this.http1.Port = 80;
     //
     // htmlParser1
     //
     this.htmlParser1.ParseMethod = CleverComponents.InetSuite.ParseMethod.TextOnly;
     this.htmlParser1.ParseTag   += new CleverComponents.InetSuite.ParseTagEventHandler(this.htmlParser1_ParseTag);
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(448, 358);
     this.Controls.Add(this.memResult);
     this.Controls.Add(this.cbShowText);
     this.Controls.Add(this.button1);
     this.Controls.Add(this.edtUrl);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label1);
     this.Name = "Form1";
     this.Text = "HTTP GET demo";
     this.ResumeLayout(false);
 }