title: IVideoWindow interface does not show video frames properly in UserControl
body: <p>I am using DirectShow.NET library [ <a href="http://directshownet.sourceforge.net/" rel="nofollow">http://directshownet.sourceforge.net/</a> ] and I use below code in order to show video streams. </p>
  
  <pre><code>videowindow.put_Owner(handle);
  videowindow.put_WindowStyle(WindowStyle.Child | WindowStyle.ClipChildren);
  videowindow.put_WindowState(DirectShowLib.WindowState.Show);
  </code></pre>
  
  <p>Note: The handle is System.Windows.Forms.UserControl handle [ this->Handle] </p>
  
  <p><strong>The problem is that:</strong></p>
  
  <ul>
  <li>In my user control the video frames are not shown properly: I see half
  of the video frame and the other half is out of screen. </li>
  <li>Also when I scale    my user control, the video stream frames are not
  scaled.</li>
  </ul>
  
  <p>What may cause this ? How can i fix it?</p>
  
  <p><strong>Update:</strong></p>
  
  <p>Based on Roman Answer I added following code:</p>
  
  <pre><code>videoWindow.SetWindowPosition(this.ClientRectangle.Left,
                  this.ClientRectangle.Top,
                  this.ClientRectangle.Width,
                  this.ClientRectangle.Height);
  </code></pre>
  
  <p>And Now I can able to see video frame in my user control rectangle properly....</p>