不是很简单吗,找到ToolTipText属性就可以 呀,几乎每个控件都有的 阿

解决方案 »

  1.   

    Option Explicit
    Private Declare Function CreateRoundRectRgn Lib "gdi32" (ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long, ByVal X3 As Long, ByVal Y3 As Long) As Long
    Private Declare Function SetWindowRgn Lib "user32" (ByVal hWnd As Long, ByVal hRgn As Long, ByVal bRedraw As Boolean) As Long
    Private Declare Function DeleteObject Lib "gdi32" (ByVal hObject As Long) As Long
    Dim lRet As LongPrivate Declare Function SetWindowWord Lib "user32" (ByVal hWnd As Long, ByVal nIndex As Long, ByVal wNewWord As Long) As LongPrivate Sub Form_Click()
    Me.Visible = False
    End Sub'Private Declare Function HideCaret Lib "user32" (ByVal hwnd As Long) As Long
    Private Sub Form_Load()
        
        Dim dl As Long
        Dim MeWidth As Long
        Dim MeHeight As Long
        MeWidth = Me.Width / Screen.TwipsPerPixelX
        MeHeight = Me.Height / Screen.TwipsPerPixelY
        lRet = CreateRoundRectRgn(0, 0, MeWidth, MeHeight, 50, 50)
        dl = SetWindowRgn(Me.hWnd, lRet, True)
        Dim i As Long
        Call SetWindowWord(Me.hWnd, -8, MDIForm1.hWnd)
        FrmHelpMsg.Move FrmHelp.Left - (FrmHelpMsg.Width - FrmHelp.Width) / 4, FrmHelp.Top - FrmHelpMsg.Height - FrmHelp.Height / 10
        
        Me.Refresh
        
    End SubPrivate Sub Form_Resize()
    Text1.Move 150, 150, Me.Width - 300, Me.Height - 300
    End SubPrivate Sub Form_Unload(Cancel As Integer)
    DeleteObject lRet
    End Sub
      

  2.   

        同意楼上的,用API函数即可解决。
      

  3.   

    icerose给出的方法似乎看不大明白?我也试过用api,不过效果不大理想。还有用tip属性的话似乎无法显示多行数据。请再指教!!