Constructs an IWin32Window from a valid handle or returns null if handle == IntPtr.Zero
            
            
            
Syntax
            
						
            
            
            
            
Example
Library/Library.Test/TestWin32Window.cs
             | C# |  Copy Code | 
|---|
IntPtr ptr = new IntPtr(0x01000);//any number but zero
Assert.IsNotNull(Win32Window.FromHandle(ptr));
Assert.AreEqual(ptr, Win32Window.FromHandle(ptr).Handle);  | 
 
| VB.NET |  Copy Code | 
|---|
Dim ptr As New IntPtr(&H1000)
'any number but zero
Assert.IsNotNull(Win32Window.FromHandle(ptr))
Assert.AreEqual(ptr, Win32Window.FromHandle(ptr).Handle)  | 
 
 
            
            
Requirements
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7
 
            
            
See Also