Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [DllImport("user32.dll", SetLastError: true, CharSet: CharSet.Auto)]
- public def SetParent(child as IntPtr, parent as IntPtr):
- pass
- def createAttachedForm(parentHandle as IntPtr):
- f = Form()
- f.Text = "My overlay"
- f.Show()
- SetParent(f.Handle, parentHandle)
- Application.Run(f)
- Form.Show(IWin32Window w)
Add Comment
Please, Sign In to add comment