hola Otra codigo por si te interesa con el caption de formulario.
Private Declare Function DefWindowProc Lib "USER32" Alias "DefWindowProcW" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Private Const WM_SETTEXT As Long = &HC
Private Const WM_GETTEXT As Long = &HD
Private Const WM_GETTEXTLENGTH As Long = &HE
Public Property Let CaptionW(ByVal NewValue As String)
DefWindowProc Me.hwnd, WM_SETTEXT, 0, ByVal StrPtr(NewValue)
End Property
Public Property Get CaptionW() As String
Dim strLen As Long
strLen = DefWindowProc(Me.hwnd, WM_GETTEXTLENGTH, 0, ByVal 0)
CaptionW = Space(strLen)
DefWindowProc Me.hwnd, WM_GETTEXT, Len(CaptionW) + 1, ByVal StrPtr(CaptionW)
End Property