From 7fd84e6554cfc9a6b31ab47ae9e9d19bdee891ea Mon Sep 17 00:00:00 2001 From: Kenneth van Ewijk Date: Tue, 3 Nov 2015 22:38:45 +0100 Subject: [PATCH] Fix image --- ErgometerIPR/ErgometerApplication/PanelClientData.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ErgometerIPR/ErgometerApplication/PanelClientData.cs b/ErgometerIPR/ErgometerApplication/PanelClientData.cs index e4e3320..499db51 100644 --- a/ErgometerIPR/ErgometerApplication/PanelClientData.cs +++ b/ErgometerIPR/ErgometerApplication/PanelClientData.cs @@ -33,6 +33,7 @@ namespace ErgometerApplication // this.BackColor = System.Drawing.SystemColors.ControlLightLight; this.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.Controls.Add(this.metingName); this.Controls.Add(this.labelMetingCurrentValue); if(name != "Tijd") this.Controls.Add(this.progressBarMeting); @@ -40,8 +41,7 @@ namespace ErgometerApplication { this.rpmpicturebox = new PictureBox(); this.Controls.Add(this.rpmpicturebox); - } - this.Controls.Add(this.metingName); + } this.Dock = System.Windows.Forms.DockStyle.Top; this.Location = new System.Drawing.Point(0, 0); this.Name = "panel1"; @@ -56,6 +56,7 @@ namespace ErgometerApplication this.metingName.Size = new System.Drawing.Size(105, 21); this.metingName.TabIndex = 0; this.metingName.Text = name; + this.metingName.BackColor = System.Drawing.Color.Transparent; // // progressBarMeting // @@ -76,14 +77,16 @@ namespace ErgometerApplication this.labelMetingCurrentValue.Size = new System.Drawing.Size(57, 32); this.labelMetingCurrentValue.TabIndex = 2; this.labelMetingCurrentValue.Text = "0"; + this.labelMetingCurrentValue.BackColor = System.Drawing.Color.Transparent; //rpm check if (name == "RPM") { - this.rpmpicturebox.Location = new System.Drawing.Point(210, 0); + this.rpmpicturebox.Location = new System.Drawing.Point(153, 32); this.rpmpicturebox.Size = new System.Drawing.Size(57, 32); this.rpmpicturebox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.rpmpicturebox.AutoSize = true; + this.rpmpicturebox.SizeMode = PictureBoxSizeMode.StretchImage; this.rpmpicturebox.Name = "rpmbox"; } }