delphi如何实现按一个按键就直接打开一个网页

解决方案 »

  1.   

    //打开网页
    use shellapi;
    //只打开一个窗口
    ShellExecute(handle, '' , pChar('http://www.csdn.net'), '','', SW_SHOWNORMAL);
    //新建一个窗口
    ShellExecute(handle,'open','Explorer',pChar('http://www.csdn.net'),nil,SW_SHOW);
      

  2.   

    ShellExecute(handle,nil,pchar('http://www.csdn.net'),nil,nil,sw_shownormal);
    //要的是这个吗?
      

  3.   

    uses shellapi;ShellExecute(Parent.Handle, 'open', 'explorer.exe', pchar('http://www.csdn.net'), nil, SW_SHOW)
      

  4.   


    if UpperCase(Copy(StrUrl, 1, 5)) = 'HTTP:' then
      ShellExecute(Handle, 'open', 'explorer.exe', pchar(FURL), nil, SW_SHOW)
    else
      ShellExecute(Handle, 'open', pchar(FURL), nil, nil, SW_SHOW);
      

  5.   


    ShellExecute(Handle,NULL,"http://www.csdn.net/",NULL,NULL,SW_SHOWNORMAL);
      

  6.   

    用ShellExecute是可以的,结贴吧!