Error creating windows handle
<p>I'm working on smartdevice using C# CF 3.5.</p>

<p>We are seeing this error in a Winform application. Can anyone help on why you would see this error, and more importantly how to fix it or avoid it from happening.</p>

<pre><code>System.ComponentModel.Win32Exception: Error creating window handle.

at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
at System.Windows.Forms.Control.CreateHandle()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.ControlCollection.Add(control value)
</code></pre>

<p>Step to repeat the problem:</p>

<ol>
<li>In view we have two controls of picturebox with name e.g. Pic1 and pic2</li>
<li>When we are clicking on pic1 it's not able to open next view. but when we are clicked on pic2 it's openly properly.
amazing thing is when we cancel view of pic2 and try to open pic1 view, it's coming up properly.</li>
</ol>

<p>P.S.: view that should come after clicking pic1 have controls > three textbox, one button, two label and command bar.</p>

<p>please help me to solve this problem.</p>
