private void SelectMenu(KryptonLinkLabel control) { Control.ControlCollection collecion = ksc.Panel1.Controls; foreach (Control ctr in collecion) { try { KryptonLinkLabel linkControl = (KryptonLinkLabel)ctr; //linkControl.BackColor = Color.Transparent; //linkControl.LinkColor = Color.White; } catch { } } }
/// <summary> /// Initialize a new instance of the KryptonLinkLabelActionList class. /// </summary> /// <param name="owner">Designer that owns this action list instance.</param> public KryptonLinkLabelActionList(KryptonLinkLabelDesigner owner) : base(owner.Component) { // Remember the link label instance _linkLabel = owner.Component as KryptonLinkLabel; // Assuming we were correctly passed an actual component... if (_linkLabel != null) { // Decide on the next action to take given the current setting _action = _linkLabel.LinkVisited ? "Link has not been visited" : "Link has been visited"; } // Cache service used to notify when a property has changed _service = (IComponentChangeService)GetService(typeof(IComponentChangeService)); }
private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.kryptonPanel1 = new Krypton.Toolkit.KryptonPanel(); this.kllCallToAction = new Krypton.Toolkit.KryptonLinkLabel(); this.klblMessage = new Krypton.Toolkit.KryptonLabel(); this.pbxIcon = new System.Windows.Forms.PictureBox(); this.il = new System.Windows.Forms.ImageList(this.components); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit(); this.kryptonPanel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pbxIcon)).BeginInit(); this.SuspendLayout(); // // kryptonPanel1 // this.kryptonPanel1.Controls.Add(this.kllCallToAction); this.kryptonPanel1.Controls.Add(this.klblMessage); this.kryptonPanel1.Controls.Add(this.pbxIcon); this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.kryptonPanel1.Location = new System.Drawing.Point(0, 0); this.kryptonPanel1.Name = "kryptonPanel1"; this.kryptonPanel1.Size = new System.Drawing.Size(272, 69); this.kryptonPanel1.TabIndex = 0; // // kllCallToAction // this.kllCallToAction.Location = new System.Drawing.Point(78, 42); this.kllCallToAction.Name = "kllCallToAction"; this.kllCallToAction.Size = new System.Drawing.Size(110, 20); this.kllCallToAction.TabIndex = 1; this.kllCallToAction.Values.Text = "kryptonLinkLabel1"; this.kllCallToAction.LinkClicked += new System.EventHandler(this.kllCallToAction_LinkClicked); // // klblMessage // this.klblMessage.Location = new System.Drawing.Point(78, 12); this.klblMessage.Name = "klblMessage"; this.klblMessage.Size = new System.Drawing.Size(115, 23); this.klblMessage.StateCommon.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.klblMessage.TabIndex = 1; this.klblMessage.Values.Text = "kryptonLabel1"; // // pbxIcon // this.pbxIcon.BackColor = System.Drawing.Color.Transparent; this.pbxIcon.Dock = System.Windows.Forms.DockStyle.Left; this.pbxIcon.Location = new System.Drawing.Point(0, 0); this.pbxIcon.Name = "pbxIcon"; this.pbxIcon.Size = new System.Drawing.Size(72, 69); this.pbxIcon.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; this.pbxIcon.TabIndex = 0; this.pbxIcon.TabStop = false; // // il // this.il.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit; this.il.ImageSize = new System.Drawing.Size(16, 16); this.il.TransparentColor = System.Drawing.Color.Transparent; // // ToastNotifier // this.ClientSize = new System.Drawing.Size(272, 69); this.ControlBox = false; this.Controls.Add(this.kryptonPanel1); this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "ToastNotifier"; this.ShowIcon = false; this.ShowInTaskbar = false; this.Load += new System.EventHandler(this.ToastNotifier_Load); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit(); this.kryptonPanel1.ResumeLayout(false); this.kryptonPanel1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.pbxIcon)).EndInit(); this.ResumeLayout(false); }
private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SoftwareUpdater)); this.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel(); this.kryptonManager1 = new ComponentFactory.Krypton.Toolkit.KryptonManager(this.components); this.kryptonPalette1 = new ComponentFactory.Krypton.Toolkit.KryptonPalette(this.components); this.klblCurrentState = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); this.kuacbtnInstallUpdate = new KryptonExtendedToolkit.ExtendedToolkit.Controls.KryptonUACElevatedButton(); this.kbtnDownloadUpdate = new ComponentFactory.Krypton.Toolkit.KryptonButton(); this.kbtnCheckForUpdates = new ComponentFactory.Krypton.Toolkit.KryptonButton(); this.kbtnCancel = new ComponentFactory.Krypton.Toolkit.KryptonButton(); this.kbtnOptions = new ComponentFactory.Krypton.Toolkit.KryptonButton(); this.klblDownloadingFrom = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); this.kllblDownloadingTo = new ComponentFactory.Krypton.Toolkit.KryptonLinkLabel(); this.klblUpdateType = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); this.klblUpdateDownloadSize = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); this.klblCurrentDownloadSpeed = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); this.kbtnViewChecksums = new ComponentFactory.Krypton.Toolkit.KryptonButton(); this.pbDownloadProgress = new System.Windows.Forms.ProgressBar(); this.klblDownloadProgressPercenta = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit(); this.kryptonPanel1.SuspendLayout(); this.SuspendLayout(); // // kryptonPanel1 // this.kryptonPanel1.Controls.Add(this.klblDownloadProgressPercenta); this.kryptonPanel1.Controls.Add(this.pbDownloadProgress); this.kryptonPanel1.Controls.Add(this.kbtnViewChecksums); this.kryptonPanel1.Controls.Add(this.klblCurrentDownloadSpeed); this.kryptonPanel1.Controls.Add(this.klblUpdateDownloadSize); this.kryptonPanel1.Controls.Add(this.klblUpdateType); this.kryptonPanel1.Controls.Add(this.kllblDownloadingTo); this.kryptonPanel1.Controls.Add(this.klblDownloadingFrom); this.kryptonPanel1.Controls.Add(this.kbtnOptions); this.kryptonPanel1.Controls.Add(this.kbtnCancel); this.kryptonPanel1.Controls.Add(this.kbtnCheckForUpdates); this.kryptonPanel1.Controls.Add(this.kbtnDownloadUpdate); this.kryptonPanel1.Controls.Add(this.kuacbtnInstallUpdate); this.kryptonPanel1.Controls.Add(this.klblCurrentState); this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.kryptonPanel1.Location = new System.Drawing.Point(0, 0); this.kryptonPanel1.Name = "kryptonPanel1"; this.kryptonPanel1.Size = new System.Drawing.Size(1059, 409); this.kryptonPanel1.TabIndex = 0; // // kryptonManager1 // this.kryptonManager1.GlobalPaletteMode = ComponentFactory.Krypton.Toolkit.PaletteModeManager.Office2007Blue; // // kryptonPalette1 // this.kryptonPalette1.CustomisedKryptonPaletteFilePath = ""; // // klblCurrentState // this.klblCurrentState.Location = new System.Drawing.Point(12, 12); this.klblCurrentState.Name = "klblCurrentState"; this.klblCurrentState.Size = new System.Drawing.Size(33, 26); this.klblCurrentState.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.klblCurrentState.TabIndex = 0; this.klblCurrentState.Values.Text = "{0}"; // // kuacbtnInstallUpdate // this.kuacbtnInstallUpdate.AutoSize = true; this.kuacbtnInstallUpdate.Location = new System.Drawing.Point(825, 251); this.kuacbtnInstallUpdate.Name = "kuacbtnInstallUpdate"; this.kuacbtnInstallUpdate.Size = new System.Drawing.Size(156, 30); this.kuacbtnInstallUpdate.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kuacbtnInstallUpdate.TabIndex = 1; this.kuacbtnInstallUpdate.Values.Image = ((System.Drawing.Image)(resources.GetObject("kryptonUACElevatedButton1.Values.Image"))); this.kuacbtnInstallUpdate.Values.Text = "Inst&all Update"; this.kuacbtnInstallUpdate.Click += new System.EventHandler(this.kuacbtnInstallUpdate_Click); // // kbtnDownloadUpdate // this.kbtnDownloadUpdate.AutoSize = true; this.kbtnDownloadUpdate.Location = new System.Drawing.Point(825, 251); this.kbtnDownloadUpdate.Name = "kbtnDownloadUpdate"; this.kbtnDownloadUpdate.Size = new System.Drawing.Size(156, 30); this.kbtnDownloadUpdate.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbtnDownloadUpdate.TabIndex = 1; this.kbtnDownloadUpdate.Values.Text = "&Download Update..."; this.kbtnDownloadUpdate.Click += new System.EventHandler(this.kbtnDownloadUpdate_Click); // // kbtnCheckForUpdates // this.kbtnCheckForUpdates.AutoSize = true; this.kbtnCheckForUpdates.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.kbtnCheckForUpdates.Location = new System.Drawing.Point(825, 251); this.kbtnCheckForUpdates.Name = "kbtnCheckForUpdates"; this.kbtnCheckForUpdates.Size = new System.Drawing.Size(156, 30); this.kbtnCheckForUpdates.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbtnCheckForUpdates.TabIndex = 2; this.kbtnCheckForUpdates.Values.Text = "C&heck for Updates..."; this.kbtnCheckForUpdates.Click += new System.EventHandler(this.kbtnCheckForUpdates_Click); // // kbtnCancel // this.kbtnCancel.AutoSize = true; this.kbtnCancel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.kbtnCancel.Location = new System.Drawing.Point(987, 251); this.kbtnCancel.Name = "kbtnCancel"; this.kbtnCancel.Size = new System.Drawing.Size(60, 30); this.kbtnCancel.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbtnCancel.TabIndex = 3; this.kbtnCancel.Values.Text = "C&ancel"; // // kbtnOptions // this.kbtnOptions.AutoSize = true; this.kbtnOptions.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.kbtnOptions.Location = new System.Drawing.Point(750, 251); this.kbtnOptions.Name = "kbtnOptions"; this.kbtnOptions.Size = new System.Drawing.Size(69, 30); this.kbtnOptions.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbtnOptions.TabIndex = 4; this.kbtnOptions.Values.Text = "Op&tions"; // // klblDownloadingFrom // this.klblDownloadingFrom.Location = new System.Drawing.Point(12, 61); this.klblDownloadingFrom.Name = "klblDownloadingFrom"; this.klblDownloadingFrom.Size = new System.Drawing.Size(33, 26); this.klblDownloadingFrom.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.klblDownloadingFrom.TabIndex = 5; this.klblDownloadingFrom.Values.Text = "{0}"; // // kllblDownloadingTo // this.kllblDownloadingTo.Location = new System.Drawing.Point(12, 110); this.kllblDownloadingTo.Name = "kllblDownloadingTo"; this.kllblDownloadingTo.Size = new System.Drawing.Size(33, 26); this.kllblDownloadingTo.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kllblDownloadingTo.TabIndex = 6; this.kllblDownloadingTo.Values.Text = "{0}"; this.kllblDownloadingTo.LinkClicked += new System.EventHandler(this.kllblDownloadingTo_LinkClicked); // // klblUpdateType // this.klblUpdateType.Location = new System.Drawing.Point(12, 159); this.klblUpdateType.Name = "klblUpdateType"; this.klblUpdateType.Size = new System.Drawing.Size(33, 26); this.klblUpdateType.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.klblUpdateType.TabIndex = 7; this.klblUpdateType.Values.Text = "{0}"; // // klblUpdateDownloadSize // this.klblUpdateDownloadSize.Location = new System.Drawing.Point(406, 159); this.klblUpdateDownloadSize.Name = "klblUpdateDownloadSize"; this.klblUpdateDownloadSize.Size = new System.Drawing.Size(33, 26); this.klblUpdateDownloadSize.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.klblUpdateDownloadSize.TabIndex = 8; this.klblUpdateDownloadSize.Values.Text = "{0}"; // // klblCurrentDownloadSpeed // this.klblCurrentDownloadSpeed.Location = new System.Drawing.Point(790, 159); this.klblCurrentDownloadSpeed.Name = "klblCurrentDownloadSpeed"; this.klblCurrentDownloadSpeed.Size = new System.Drawing.Size(33, 26); this.klblCurrentDownloadSpeed.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.klblCurrentDownloadSpeed.TabIndex = 9; this.klblCurrentDownloadSpeed.Values.Text = "{0}"; // // kbtnViewChecksums // this.kbtnViewChecksums.AutoSize = true; this.kbtnViewChecksums.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.kbtnViewChecksums.Location = new System.Drawing.Point(611, 251); this.kbtnViewChecksums.Name = "kbtnViewChecksums"; this.kbtnViewChecksums.Size = new System.Drawing.Size(133, 30); this.kbtnViewChecksums.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbtnViewChecksums.TabIndex = 10; this.kbtnViewChecksums.Values.Text = "&View Checksums"; // // pbDownloadProgress // this.pbDownloadProgress.Location = new System.Drawing.Point(12, 205); this.pbDownloadProgress.Name = "pbDownloadProgress"; this.pbDownloadProgress.Size = new System.Drawing.Size(974, 26); this.pbDownloadProgress.TabIndex = 11; // // klblDownloadProgressPercenta // this.klblDownloadProgressPercenta.Location = new System.Drawing.Point(992, 205); this.klblDownloadProgressPercenta.Name = "klblDownloadProgressPercenta"; this.klblDownloadProgressPercenta.Size = new System.Drawing.Size(33, 26); this.klblDownloadProgressPercenta.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.klblDownloadProgressPercenta.TabIndex = 12; this.klblDownloadProgressPercenta.Target = this.pbDownloadProgress; this.klblDownloadProgressPercenta.Values.Text = "{0}"; // // SoftwareUpdater // this.ClientSize = new System.Drawing.Size(1059, 409); this.Controls.Add(this.kryptonPanel1); this.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "SoftwareUpdater"; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "{0} Software Updater"; this.Load += new System.EventHandler(this.SoftwareUpdater_Load); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit(); this.kryptonPanel1.ResumeLayout(false); this.kryptonPanel1.PerformLayout(); this.ResumeLayout(false); }
private void InitializeComponent() { ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues popupPositionValues1 = new ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues(); ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues popupPositionValues2 = new ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues(); ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues popupPositionValues3 = new ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues(); ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues popupPositionValues4 = new ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues(); ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues popupPositionValues10 = new ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues(); ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues popupPositionValues5 = new ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues(); ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues popupPositionValues6 = new ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues(); ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues popupPositionValues7 = new ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues(); ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues popupPositionValues8 = new ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues(); ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues popupPositionValues9 = new ComponentFactory.Krypton.Toolkit.Values.PopupPositionValues(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainWindow)); this.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel(); this.kryptonLabel1 = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.kryptonPanel2 = new ComponentFactory.Krypton.Toolkit.KryptonPanel(); this.kryptonLinkLabel1 = new ComponentFactory.Krypton.Toolkit.KryptonLinkLabel(); this.kryptonButton2 = new ComponentFactory.Krypton.Toolkit.KryptonButton(); this.kryptonButton1 = new ComponentFactory.Krypton.Toolkit.KryptonButton(); this.panel1 = new System.Windows.Forms.Panel(); this.kryptonPanel3 = new ComponentFactory.Krypton.Toolkit.KryptonPanel(); this.kryptonNavigator1 = new ComponentFactory.Krypton.Navigator.KryptonNavigator(); this.kryptonPage1 = new ComponentFactory.Krypton.Navigator.KryptonPage(); this.krtbDescription = new ComponentFactory.Krypton.Toolkit.KryptonRichTextBox(); this.kryptonLabel4 = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); this.ktbEMailAddress = new ComponentFactory.Krypton.Toolkit.KryptonTextBox(); this.kryptonLabel3 = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); this.kryptonLabel2 = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); this.kryptonPage2 = new ComponentFactory.Krypton.Navigator.KryptonPage(); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit(); this.kryptonPanel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).BeginInit(); this.kryptonPanel2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel3)).BeginInit(); this.kryptonPanel3.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.kryptonNavigator1)).BeginInit(); this.kryptonNavigator1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.kryptonPage1)).BeginInit(); this.kryptonPage1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.kryptonPage2)).BeginInit(); this.SuspendLayout(); // // kryptonPanel1 // this.kryptonPanel1.Controls.Add(this.kryptonLabel1); this.kryptonPanel1.Controls.Add(this.pictureBox1); this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Top; this.kryptonPanel1.Location = new System.Drawing.Point(0, 0); this.kryptonPanel1.Name = "kryptonPanel1"; this.kryptonPanel1.PanelBackStyle = ComponentFactory.Krypton.Toolkit.PaletteBackStyle.ControlCustom1; this.kryptonPanel1.Size = new System.Drawing.Size(794, 100); this.kryptonPanel1.TabIndex = 0; // // kryptonLabel1 // this.kryptonLabel1.Dock = System.Windows.Forms.DockStyle.Fill; this.kryptonLabel1.Location = new System.Drawing.Point(0, 0); this.kryptonLabel1.Name = "kryptonLabel1"; this.kryptonLabel1.Size = new System.Drawing.Size(694, 100); this.kryptonLabel1.StateCommon.LongText.Font = new System.Drawing.Font("Segoe UI Semibold", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kryptonLabel1.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI Semibold", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kryptonLabel1.TabIndex = 1; popupPositionValues1.PlacementRectangle = new System.Drawing.Rectangle(0, 0, 0, 0); popupPositionValues1.PlacementTarget = null; this.kryptonLabel1.ToolTipValues.ToolTipPosition = popupPositionValues1; this.kryptonLabel1.Values.Text = "{0} has encountered a problem, and needs to close. \r\nWe apologise for the inconve" + "nience that this may have caused."; // // pictureBox1 // this.pictureBox1.BackColor = System.Drawing.Color.Transparent; this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Right; this.pictureBox1.Image = global::ExtendedControls.Properties.Resources.Error_Report_48_x_48; this.pictureBox1.Location = new System.Drawing.Point(694, 0); this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Size = new System.Drawing.Size(100, 100); this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; this.pictureBox1.TabIndex = 0; this.pictureBox1.TabStop = false; // // kryptonPanel2 // this.kryptonPanel2.Controls.Add(this.kryptonLinkLabel1); this.kryptonPanel2.Controls.Add(this.kryptonButton2); this.kryptonPanel2.Controls.Add(this.kryptonButton1); this.kryptonPanel2.Dock = System.Windows.Forms.DockStyle.Bottom; this.kryptonPanel2.Location = new System.Drawing.Point(0, 702); this.kryptonPanel2.Name = "kryptonPanel2"; this.kryptonPanel2.Size = new System.Drawing.Size(794, 62); this.kryptonPanel2.TabIndex = 1; // // kryptonLinkLabel1 // this.kryptonLinkLabel1.Location = new System.Drawing.Point(11, 19); this.kryptonLinkLabel1.Name = "kryptonLinkLabel1"; this.kryptonLinkLabel1.Size = new System.Drawing.Size(103, 24); this.kryptonLinkLabel1.StateCommon.LongText.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kryptonLinkLabel1.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kryptonLinkLabel1.TabIndex = 2; popupPositionValues2.PlacementRectangle = new System.Drawing.Rectangle(0, 0, 0, 0); popupPositionValues2.PlacementTarget = null; this.kryptonLinkLabel1.ToolTipValues.ToolTipPosition = popupPositionValues2; this.kryptonLinkLabel1.Values.Text = "&Privacy Policy"; // // kryptonButton2 // this.kryptonButton2.Location = new System.Drawing.Point(504, 15); this.kryptonButton2.Name = "kryptonButton2"; this.kryptonButton2.Size = new System.Drawing.Size(182, 35); this.kryptonButton2.StateCommon.Content.LongText.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kryptonButton2.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kryptonButton2.TabIndex = 1; popupPositionValues3.PlacementRectangle = new System.Drawing.Rectangle(0, 0, 0, 0); popupPositionValues3.PlacementTarget = null; this.kryptonButton2.ToolTipValues.ToolTipPosition = popupPositionValues3; this.kryptonButton2.Values.Text = "Send R&eport && Close"; // // kryptonButton1 // this.kryptonButton1.Location = new System.Drawing.Point(692, 15); this.kryptonButton1.Name = "kryptonButton1"; this.kryptonButton1.Size = new System.Drawing.Size(90, 35); this.kryptonButton1.StateCommon.Content.LongText.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kryptonButton1.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kryptonButton1.TabIndex = 0; popupPositionValues4.PlacementRectangle = new System.Drawing.Rectangle(0, 0, 0, 0); popupPositionValues4.PlacementTarget = null; this.kryptonButton1.ToolTipValues.ToolTipPosition = popupPositionValues4; this.kryptonButton1.Values.Text = "&Cancel"; // // panel1 // this.panel1.BackColor = System.Drawing.SystemColors.ControlDarkDark; this.panel1.Dock = System.Windows.Forms.DockStyle.Bottom; this.panel1.Location = new System.Drawing.Point(0, 699); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(794, 3); this.panel1.TabIndex = 2; // // kryptonPanel3 // this.kryptonPanel3.Controls.Add(this.kryptonNavigator1); this.kryptonPanel3.Dock = System.Windows.Forms.DockStyle.Fill; this.kryptonPanel3.Location = new System.Drawing.Point(0, 100); this.kryptonPanel3.Name = "kryptonPanel3"; this.kryptonPanel3.Size = new System.Drawing.Size(794, 599); this.kryptonPanel3.TabIndex = 3; // // kryptonNavigator1 // this.kryptonNavigator1.Bar.TabBorderStyle = ComponentFactory.Krypton.Toolkit.TabBorderStyle.OneNote; this.kryptonNavigator1.Button.CloseButtonAction = ComponentFactory.Krypton.Navigator.CloseButtonAction.None; this.kryptonNavigator1.Button.CloseButtonDisplay = ComponentFactory.Krypton.Navigator.ButtonDisplay.Hide; this.kryptonNavigator1.Location = new System.Drawing.Point(11, 20); this.kryptonNavigator1.Name = "kryptonNavigator1"; this.kryptonNavigator1.Pages.AddRange(new ComponentFactory.Krypton.Navigator.KryptonPage[] { this.kryptonPage1, this.kryptonPage2 }); this.kryptonNavigator1.SelectedIndex = 1; this.kryptonNavigator1.Size = new System.Drawing.Size(771, 561); this.kryptonNavigator1.TabIndex = 0; this.kryptonNavigator1.Text = "kryptonNavigator1"; popupPositionValues10.PlacementRectangle = new System.Drawing.Rectangle(0, 0, 0, 0); popupPositionValues10.PlacementTarget = null; this.kryptonNavigator1.ToolTipValues.ToolTipPosition = popupPositionValues10; // // kryptonPage1 // this.kryptonPage1.AutoHiddenSlideSize = new System.Drawing.Size(200, 200); this.kryptonPage1.Controls.Add(this.krtbDescription); this.kryptonPage1.Controls.Add(this.kryptonLabel4); this.kryptonPage1.Controls.Add(this.ktbEMailAddress); this.kryptonPage1.Controls.Add(this.kryptonLabel3); this.kryptonPage1.Controls.Add(this.kryptonLabel2); this.kryptonPage1.Flags = 65534; this.kryptonPage1.LastVisibleSet = true; this.kryptonPage1.MinimumSize = new System.Drawing.Size(50, 50); this.kryptonPage1.Name = "kryptonPage1"; this.kryptonPage1.Size = new System.Drawing.Size(769, 530); this.kryptonPage1.Text = "kryptonPage1"; this.kryptonPage1.ToolTipTitle = "Page ToolTip"; this.kryptonPage1.UniqueName = "e785ffa321ae493da8cc7176dd254426"; // // krtbDescription // this.krtbDescription.Location = new System.Drawing.Point(19, 296); this.krtbDescription.MaxLength = 250; this.krtbDescription.Name = "krtbDescription"; this.krtbDescription.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.ForcedVertical; this.krtbDescription.Size = new System.Drawing.Size(732, 223); this.krtbDescription.StateCommon.Content.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.krtbDescription.TabIndex = 9; this.krtbDescription.Text = ""; popupPositionValues5.PlacementRectangle = new System.Drawing.Rectangle(0, 0, 0, 0); popupPositionValues5.PlacementTarget = null; this.krtbDescription.ToolTipValues.ToolTipPosition = popupPositionValues5; // // kryptonLabel4 // this.kryptonLabel4.Location = new System.Drawing.Point(19, 266); this.kryptonLabel4.Name = "kryptonLabel4"; this.kryptonLabel4.Size = new System.Drawing.Size(221, 24); this.kryptonLabel4.StateCommon.LongText.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kryptonLabel4.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kryptonLabel4.TabIndex = 8; popupPositionValues6.PlacementRectangle = new System.Drawing.Rectangle(0, 0, 0, 0); popupPositionValues6.PlacementTarget = null; this.kryptonLabel4.ToolTipValues.ToolTipPosition = popupPositionValues6; this.kryptonLabel4.Values.Text = "Your e-mail address (optional):"; // // ktbEMailAddress // this.ktbEMailAddress.Location = new System.Drawing.Point(19, 229); this.ktbEMailAddress.MaxLength = 50; this.ktbEMailAddress.Name = "ktbEMailAddress"; this.ktbEMailAddress.Size = new System.Drawing.Size(732, 27); this.ktbEMailAddress.StateCommon.Content.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.ktbEMailAddress.TabIndex = 7; popupPositionValues7.PlacementRectangle = new System.Drawing.Rectangle(0, 0, 0, 0); popupPositionValues7.PlacementTarget = null; this.ktbEMailAddress.ToolTipValues.ToolTipPosition = popupPositionValues7; // // kryptonLabel3 // this.kryptonLabel3.Location = new System.Drawing.Point(19, 199); this.kryptonLabel3.Name = "kryptonLabel3"; this.kryptonLabel3.Size = new System.Drawing.Size(221, 24); this.kryptonLabel3.StateCommon.LongText.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kryptonLabel3.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kryptonLabel3.TabIndex = 6; popupPositionValues8.PlacementRectangle = new System.Drawing.Rectangle(0, 0, 0, 0); popupPositionValues8.PlacementTarget = null; this.kryptonLabel3.ToolTipValues.ToolTipPosition = popupPositionValues8; this.kryptonLabel3.Values.Text = "Your e-mail address (optional):"; // // kryptonLabel2 // this.kryptonLabel2.Location = new System.Drawing.Point(19, 13); this.kryptonLabel2.Name = "kryptonLabel2"; this.kryptonLabel2.Size = new System.Drawing.Size(738, 164); this.kryptonLabel2.StateCommon.LongText.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kryptonLabel2.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kryptonLabel2.TabIndex = 5; popupPositionValues9.PlacementRectangle = new System.Drawing.Rectangle(0, 0, 0, 0); popupPositionValues9.PlacementTarget = null; this.kryptonLabel2.ToolTipValues.ToolTipPosition = popupPositionValues9; this.kryptonLabel2.Values.Text = resources.GetString("kryptonLabel2.Values.Text"); // // kryptonPage2 // this.kryptonPage2.AutoHiddenSlideSize = new System.Drawing.Size(200, 200); this.kryptonPage2.Flags = 65534; this.kryptonPage2.LastVisibleSet = true; this.kryptonPage2.MinimumSize = new System.Drawing.Size(50, 50); this.kryptonPage2.Name = "kryptonPage2"; this.kryptonPage2.Size = new System.Drawing.Size(769, 530); this.kryptonPage2.Text = "kryptonPage2"; this.kryptonPage2.ToolTipTitle = "Page ToolTip"; this.kryptonPage2.UniqueName = "22073fe462004e44ace939648bbb9bfa"; // // MainWindow // this.ClientSize = new System.Drawing.Size(794, 764); this.Controls.Add(this.kryptonPanel3); this.Controls.Add(this.panel1); this.Controls.Add(this.kryptonPanel2); this.Controls.Add(this.kryptonPanel1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "MainWindow"; this.ShowIcon = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "{0) Error"; ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit(); this.kryptonPanel1.ResumeLayout(false); this.kryptonPanel1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).EndInit(); this.kryptonPanel2.ResumeLayout(false); this.kryptonPanel2.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel3)).EndInit(); this.kryptonPanel3.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.kryptonNavigator1)).EndInit(); this.kryptonNavigator1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.kryptonPage1)).EndInit(); this.kryptonPage1.ResumeLayout(false); this.kryptonPage1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.kryptonPage2)).EndInit(); this.ResumeLayout(false); }
private void InitializeComponent() { this.ksc = new Krypton.Toolkit.KryptonSplitContainer(); this.klblPortScan = new Krypton.Toolkit.KryptonLinkLabel(); this.klblPing = new Krypton.Toolkit.KryptonLinkLabel(); this.klblNetStatWithoutDNS = new Krypton.Toolkit.KryptonLinkLabel(); this.klblNetStat = new Krypton.Toolkit.KryptonLinkLabel(); this.kryptonPanel1 = new Krypton.Toolkit.KryptonPanel(); ((System.ComponentModel.ISupportInitialize)(this.ksc)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.ksc.Panel1)).BeginInit(); this.ksc.Panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.ksc.Panel2)).BeginInit(); this.ksc.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit(); this.SuspendLayout(); // // ksc // this.ksc.Cursor = System.Windows.Forms.Cursors.Default; this.ksc.Dock = System.Windows.Forms.DockStyle.Fill; this.ksc.Location = new System.Drawing.Point(0, 0); this.ksc.Name = "ksc"; // // ksc.Panel1 // this.ksc.Panel1.Controls.Add(this.klblPortScan); this.ksc.Panel1.Controls.Add(this.klblPing); this.ksc.Panel1.Controls.Add(this.klblNetStatWithoutDNS); this.ksc.Panel1.Controls.Add(this.klblNetStat); this.ksc.Panel1.Controls.Add(this.kryptonPanel1); this.ksc.Size = new System.Drawing.Size(808, 437); this.ksc.SplitterDistance = 269; this.ksc.TabIndex = 0; // // klblPortScan // this.klblPortScan.AutoSize = false; this.klblPortScan.Dock = System.Windows.Forms.DockStyle.Top; this.klblPortScan.LinkBehavior = Krypton.Toolkit.KryptonLinkBehavior.HoverUnderline; this.klblPortScan.Location = new System.Drawing.Point(0, 168); this.klblPortScan.Name = "klblPortScan"; this.klblPortScan.Size = new System.Drawing.Size(269, 42); this.klblPortScan.StateCommon.ShortText.TextH = Krypton.Toolkit.PaletteRelativeAlign.Far; this.klblPortScan.TabIndex = 4; this.klblPortScan.Values.Text = "Port Scan"; this.klblPortScan.LinkClicked += new System.EventHandler(this.klblPortScan_LinkClicked); // // klblPing // this.klblPing.AutoSize = false; this.klblPing.Dock = System.Windows.Forms.DockStyle.Top; this.klblPing.LinkBehavior = Krypton.Toolkit.KryptonLinkBehavior.HoverUnderline; this.klblPing.Location = new System.Drawing.Point(0, 126); this.klblPing.Name = "klblPing"; this.klblPing.Size = new System.Drawing.Size(269, 42); this.klblPing.StateCommon.ShortText.TextH = Krypton.Toolkit.PaletteRelativeAlign.Far; this.klblPing.TabIndex = 3; this.klblPing.Values.Text = "Ping"; this.klblPing.LinkClicked += new System.EventHandler(this.klblPing_LinkClicked); // // klblNetStatWithoutDNS // this.klblNetStatWithoutDNS.AutoSize = false; this.klblNetStatWithoutDNS.Dock = System.Windows.Forms.DockStyle.Top; this.klblNetStatWithoutDNS.LinkBehavior = Krypton.Toolkit.KryptonLinkBehavior.HoverUnderline; this.klblNetStatWithoutDNS.Location = new System.Drawing.Point(0, 84); this.klblNetStatWithoutDNS.Name = "klblNetStatWithoutDNS"; this.klblNetStatWithoutDNS.Size = new System.Drawing.Size(269, 42); this.klblNetStatWithoutDNS.StateCommon.ShortText.TextH = Krypton.Toolkit.PaletteRelativeAlign.Far; this.klblNetStatWithoutDNS.TabIndex = 2; this.klblNetStatWithoutDNS.Values.Text = "Net Stat without DNS"; this.klblNetStatWithoutDNS.LinkClicked += new System.EventHandler(this.klblNetStatWithoutDNS_LinkClicked); // // klblNetStat // this.klblNetStat.AutoSize = false; this.klblNetStat.Dock = System.Windows.Forms.DockStyle.Top; this.klblNetStat.LinkBehavior = Krypton.Toolkit.KryptonLinkBehavior.HoverUnderline; this.klblNetStat.Location = new System.Drawing.Point(0, 42); this.klblNetStat.Name = "klblNetStat"; this.klblNetStat.Size = new System.Drawing.Size(269, 42); this.klblNetStat.StateCommon.ShortText.TextH = Krypton.Toolkit.PaletteRelativeAlign.Far; this.klblNetStat.TabIndex = 1; this.klblNetStat.Values.Text = "Net Stat"; this.klblNetStat.LinkClicked += new System.EventHandler(this.klblNetStat_LinkClicked); // // kryptonPanel1 // this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Top; this.kryptonPanel1.Location = new System.Drawing.Point(0, 0); this.kryptonPanel1.Name = "kryptonPanel1"; this.kryptonPanel1.Size = new System.Drawing.Size(269, 42); this.kryptonPanel1.TabIndex = 0; // // NetworkUtility // this.ClientSize = new System.Drawing.Size(808, 437); this.Controls.Add(this.ksc); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "NetworkUtility"; this.ShowIcon = false; this.ShowInTaskbar = false; this.Text = "Network Utility"; this.Load += new System.EventHandler(this.NetworkUtility_Load); ((System.ComponentModel.ISupportInitialize)(this.ksc.Panel1)).EndInit(); this.ksc.Panel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.ksc.Panel2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.ksc)).EndInit(); this.ksc.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit(); this.ResumeLayout(false); }
public async void JsonParser() { try { //Clear all Invoke(new Action(() => { flowLayoutPanel1.Controls.Clear(); })); await Task.Delay(100); //Setting Control Count int n = 30; KryptonLinkLabel[] links = new KryptonLinkLabel[n]; KryptonLabel[] labeldesc = new KryptonLabel[n]; KryptonLabel[] stargazers = new KryptonLabel[n]; KryptonLabel[] openissues = new KryptonLabel[n]; PictureBox[] avatar = new PictureBox[n]; KryptonLabel[] username = new KryptonLabel[n]; var jObject = Newtonsoft.Json.Linq.JObject.Parse(_repostr); for (int i = 0; i <= 29; i++) { RepoName = (string)jObject["items"][i]["full_name"]; RepoDesc = (string)jObject["items"][i]["description"]; RepoDesc = RepoDesc == null ? string.Empty : RepoDesc.Substring(0, Math.Min(40, RepoDesc.Length)) + " ..."; RepoStar = (string)jObject["items"][i]["stargazers_count"]; RepoIssue = (string)jObject["items"][i]["open_issues_count"]; RepoAvatar = (string)jObject["items"][i]["owner"]["avatar_url"]; RepoUserN = (string)jObject["items"][i]["owner"]["login"]; RepoURL = (string)jObject["items"][i]["owner"]["html_url"]; links[i] = new KryptonLinkLabel(); labeldesc[i] = new KryptonLabel(); stargazers[i] = new KryptonLabel(); openissues[i] = new KryptonLabel(); avatar[i] = new PictureBox(); username[i] = new KryptonLabel(); Invoke(new Action(() => { //Repo Title links[i].Text = RepoName; links[i].Click += new EventHandler(button_Click); links[i].StateCommon.ShortText.Font = new Font(links[i].Font, FontStyle.Bold); links[i].StateNormal.ShortText.Font = new Font(links[i].Font, FontStyle.Bold); links[i].StateNormal.ShortText.Color1 = Color.Blue; FontFamily fontFamily = new FontFamily("Arial"); Font font = new Font(fontFamily, 20, FontStyle.Regular, GraphicsUnit.Pixel); links[i].StateNormal.ShortText.Font = font; links[i].StateCommon.ShortText.Font = font; //Repo Description labeldesc[i].Text = RepoDesc; labeldesc[i].StateNormal.ShortText.Color1 = Color.Black; //Icon + Repo Stars PictureBox starico = new PictureBox(); starico.Size = new System.Drawing.Size(16, 16); starico.Image = MSGitRepos.Properties.Resources.starico; starico.SizeMode = PictureBoxSizeMode.StretchImage; stargazers[i].Text = RepoStar; //Icon + Repo Issues PictureBox issueico = new PictureBox(); issueico.Size = new System.Drawing.Size(16, 16); issueico.Image = MSGitRepos.Properties.Resources.issue; issueico.SizeMode = PictureBoxSizeMode.StretchImage; openissues[i].Text = RepoIssue; //Username & Avatar KryptonLabel bydev = new KryptonLabel(); bydev.Text = "Built by"; avatar[i].Size = new System.Drawing.Size(16, 16); avatar[i].ImageLocation = RepoAvatar; avatar[i].SizeMode = PictureBoxSizeMode.StretchImage; username[i].Text = RepoUserN; //Merge Controls flowLayoutPanel1.SetFlowBreak(links[i], true); flowLayoutPanel1.Controls.Add(links[i]); flowLayoutPanel1.SetFlowBreak(labeldesc[i], true); flowLayoutPanel1.Controls.Add(labeldesc[i]); flowLayoutPanel1.Controls.Add(starico); flowLayoutPanel1.Controls.Add(stargazers[i]); flowLayoutPanel1.Controls.Add(issueico); flowLayoutPanel1.Controls.Add(openissues[i]); flowLayoutPanel1.Controls.Add(bydev); flowLayoutPanel1.Controls.Add(avatar[i]); flowLayoutPanel1.SetFlowBreak(username[i], true); flowLayoutPanel1.Controls.Add(username[i]); })); if (i == 29) { KryptonSeparator splitter = new KryptonSeparator(); Invoke(new Action(() => { flowLayoutPanel1.Controls.Add(splitter); })); break; } } } catch (Exception ex) { MessageBox.Show(ex.ToString()); //Nothing } }