VB中text控件里的文本可不可以弄个链接,点下可以打开链接的文件之类的,可不可以实现啊?

解决方案 »

  1.   

    用richtextbox
      
    *****************************************************************************
    欢迎使用CSDN论坛专用阅读器 : CSDN Reader(附全部源代码) http://feiyun0112.cnblogs.com/
      

  2.   

    可以设置lable.click就可以了
    Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
    Private Sub Label1_Click()
    ShellExecute Me.hwnd, "open", "http://csdn.com", "", "", 5
    End Sub
      

  3.   

    Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long 
    Private Sub Label1_Click() 
    ShellExecute Me.hwnd, "open", "http://csdn.com", "", "", 5 
    End Sub 
    能打开本地的文件,什么文件都能打开可就不能保证了
      

  4.   

    我可以很责任的告诉你!可以!
    用这个API函数
    Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long