我有一个按钮,我想点击这个按钮的时候就打开一个HTML文件,不知道怎么打开

解决方案 »

  1.   

    ShellExecute不仅可以运行EXE文件,也可以运行已经关联的文件(需要在Uses部分加上shellapi)。如: 
        ShellExecute(0, 'open', 'http://askpro.yeah.net', nil, nil, 0);
      

  2.   

    ShellExecute怎么用的?能不能给出一段例子啊!
      

  3.   

    ShellExecute(0, 'open', 'e:\help\index.html', nil, nil, 0);
    为什么不行啊?
      

  4.   

    还有一种方案
    Winexec('Iexplore.exe http://www.csdn.net',sw_show);
      

  5.   

    加了,我是想打开一个文件'e:\help\index.html'。
      

  6.   

    ShellExecute(0, 'open', 'http://askpro.yeah.net', nil, nil, SW_SHOWNORMAL);
      

  7.   

    ShellExecute(0, 'open', 'e:\help\index.html', nil, nil, SW_SHOWNORMAL);还不行吗?
      

  8.   

    ShellExecute(0, 'open', 'ftp://e:\help\index.html', nil, nil, SW_SHOWNORMAL);