find window Height & Width
<p>how to find focused window Height &amp; Width ..</p>

<p>it might be any windows window like notepad,mspaint etc...
i can get the focused window by help of this code </p>

<pre><code>[DllImport("user32")] 
public static extern IntPtr GetForegroundWindow();
</code></pre>

<p>hi f3lix it's working but it's return the value depends on the location only.. if i change the location it's return some other values</p>

<p>Kunal it's return error msg....like object refrence not set</p>
