Skip to content

Instantly share code, notes, and snippets.

@mdelanno
Created April 24, 2012 16:03
Show Gist options
  • Save mdelanno/2481015 to your computer and use it in GitHub Desktop.
Save mdelanno/2481015 to your computer and use it in GitHub Desktop.
WindowWrapper in VB.NET
Public Class WindowWrapper
Implements System.Windows.Forms.IWin32Window
Private ReadOnly _hwnd As IntPtr
Public Sub New(handle As IntPtr)
_hwnd = handle
End Sub
Public ReadOnly Property Handle As System.IntPtr Implements System.Windows.Forms.IWin32Window.Handle
Get
Return _hwnd
End Get
End Property
End Class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment