title: c# Form not completely repainting in RDP session
body: <p>I have a strange problem and I can't seem to figure out a solution.
  I have a windows forms application written in C# .net4.0.
  In this application, there's a panel where i draw a chart on.
  This chart is drawn on the "Paint" event of the panel.</p>
  
  <p>There's also a button which launches another application on top of this application which displays other information
  All of this works fine, untill I close the opened application.
  When I Close it, i see my first application again but parts of it haven't been repainted.
  It seems that the panel with the chart repainted correctly, the rest of it's container panel didn't.
  I removed the "Paint" event of the Panel with the chart as a test and then, everything worked fine (offcourse no chart was drawn)</p>
  
  <p>Strangly, I only do have this problem when the programs are in an RDP session.
  On my local pc, everything works/refreshes fine.</p>
  
  <p>If anybody can help me on this, it would be very much appreciated!!</p>
  
  <p>For clarity I have added screenshots below:
  <img src="https://i.stack.imgur.com/DeEAQ.png" alt="Step 1: opening the parent program">
  <img src="https://i.stack.imgur.com/6OVaw.png" alt="Step 2: opening the child program">
  <img src="https://i.stack.imgur.com/Sdadw.png" alt="Step 3: parent form does not repaint properly"></p>