OK, solved one part of the problem, the code now executes untill setParent, but this last method won't work because the button I put on the form doens't have a 'hwnd'...
code:
Try
SetParent(newBtn.btnFrag.hwnd, imhwnd)
Catch ex As Exception
MsgBox(ex.Message.ToString)
End Try
It's all about conversion from VB6 -> VB.NET . I found in this last error that one must use the button.Handle method to obtain the correct pointer for that object.
So now I'm still converting code
BTW, I'm using VS 2005 Professional, in case you're wondering.
Built on the 2.0 NET Framework