title: Panel background image flickering
body: <p>I've a <strong>Panel</strong> which fills the parent Form.<br>
  And I used a <strong>Timer</strong> to capture screen ,<br> 
  and set the screenshot as <strong>background image</strong> of Panel periodically.</p>
  
  <p>However, it runs into crazy flickering. What can I do to solve it?<br></p>
  
  <pre><code>//Part of code
   public partial class Form1 : Form
      {
  
          DxScreenCapture sc = new DxScreenCapture();
  
          public Form1()
          {
              InitializeComponent();
  
              panelMain.BackgroundImageLayout = ImageLayout.Zoom;
           }
  
          private void Form1_Load(object sender, EventArgs e)
          {
          }
  
  
  
          void RefreshScreen()
          {
              Surface s = sc.CaptureScreen();
  
              DataStream ds = Surface.ToStream(s, ImageFileFormat.Bmp);
              panelMain.BackgroundImage = Image.FromStream(ds);
  
              s.Dispose();
          }
  
          private void timer1_Tick(object sender, EventArgs e)
          {
              RefreshScreen();
  
          }
      }
  </code></pre>