private void UpdatePictureBox() { DevicePanel.Invalidate(); byte[] buff = new byte[0]; minicap.ImageByteQueue.TryDequeue(out buff); MemoryStream stream = new MemoryStream(buff); DevicePanel.BackgroundImage = Image.FromStream(stream); }