Hi hce,
In design mode, to place a label (lbl1) on the userform with the following
properties:
BackStyle = 0
ForeColor = &H80000010
Caption = "o"
Font.Name = "Marlett"
Font.Size = 12
Font.Bold = True
TextAlign = 3
AutoSize = True
In the UserForm module:
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" _
(ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" _
(ByVal hWnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Private Declare Function DrawMenuBar Lib "user32" (ByVal hWnd As Long) As
Long
Private Sub UserForm_Initialize()
UserForm_Resize
Dim hWnd As Long
hWnd = FindWindow(vbNullString, Me.Caption)
SetWindowLong hWnd, -16, &H84CC0080
DrawMenuBar hWnd
End Sub
Private Sub UserForm_Resize()
Me.lbl1.Top = Me.InsideHeight - Me.lbl1.Height
Me.lbl1.Left = Me.InsideWidth - Fix(Me.lbl1.Width)
End Sub
Regards,
MP