[轉貼]如何讓IE不出現網址列

有關Delphi 的語法, 程式, 等
回覆文章
頭像
tim
文章: 1379
註冊時間: 2008年 11月 26日, 00:49

[轉貼]如何讓IE不出現網址列

文章 tim »

原始文章,
http://delphi.ktop.com.tw/topic.asp?TOPIC_ID=78461

該文的解決方式是採用 com 起 ie 後, 將 AddressBar 設為 false 即可,

代碼: 選擇全部

    uses ComObj 
     
    procedure Tform1.Button2Click(Sender: TObject); 
    var 
      i:Variant; 
    begin 
      i:=CreateOleObject('InternetExplorer.Application.1'); 
      i.Visible:=True; 
      i.Navigate('http://tw.yahoo.com'); 
      i.Addressbar := False; 
    end; 
除了 AddressBar 外, 其他尚有

MenuBar
StatusBar
ToolBar

三種可供顯示或隱藏
多多留言, 整理文章, 把經驗累積下來.....
回覆文章