From e0b0609f344bf72e7ac7282cf20bb84203fe9858 Mon Sep 17 00:00:00 2001 From: Kenneth van Ewijk Date: Tue, 3 Nov 2015 21:57:04 +0100 Subject: [PATCH] Fix image not showing --- ErgometerIPR/ErgometerApplication/PanelClientData.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ErgometerIPR/ErgometerApplication/PanelClientData.cs b/ErgometerIPR/ErgometerApplication/PanelClientData.cs index 1a7a731..e4e3320 100644 --- a/ErgometerIPR/ErgometerApplication/PanelClientData.cs +++ b/ErgometerIPR/ErgometerApplication/PanelClientData.cs @@ -36,6 +36,11 @@ namespace ErgometerApplication this.Controls.Add(this.labelMetingCurrentValue); if(name != "Tijd") this.Controls.Add(this.progressBarMeting); + if (name == "RPM") + { + 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); @@ -75,8 +80,7 @@ namespace ErgometerApplication //rpm check if (name == "RPM") { - this.rpmpicturebox = new PictureBox(); - this.rpmpicturebox.Location = new System.Drawing.Point(210, 32); + this.rpmpicturebox.Location = new System.Drawing.Point(210, 0); 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;