- - PR -
AxwebBrowserの更新
投稿者 | 投稿内容 | ||||||||
---|---|---|---|---|---|---|---|---|---|
|
投稿日時: 2005-08-28 14:55
AxwebBrowserで何度も同じページを表示すると更新されません。
キャッシュを読み込んで本当の更新をしないんです。 ちゃんと更新させるにはどうしたらよいのでしょうか? [ メッセージ編集済み 編集者: 未記入 編集日時 2005-08-29 19:04 ] | ||||||||
|
投稿日時: 2005-08-28 16:15
Refresh2メソッドを使用すればいいんでは。
| ||||||||
|
投稿日時: 2005-08-29 06:34
ありがとうございます。
あのあと、いろいろ調べたら http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/webbrowser/RefList_VB.asp こんなのを見つけました。 RefreshとRefresh2ってどう違うのでしょうか? 英語なのでよくわからないので聞いてみました。 翻訳したら余計ちんぷんかんぷんになってしまったので聞いている次第です。お許しください。 NavigateとNavigate2も似たようなことなのでしょうか。 | ||||||||
|
投稿日時: 2005-08-29 08:25
そこまで調べたのなら、もう一息です。(^^) http://www02.so-net.ne.jp/~rando/mozilla/method.html _________________ C# と VB.NET の入門サイト じゃんぬねっと日誌 | ||||||||
|
投稿日時: 2005-08-29 19:02
こんなホームページ見つけていただいてありがとうございます。
結構、お手間かかったことと推測します。 どうやら Refresh2(3); でいけるみたいですね。 同じようなことが MSDNのNavigateに Flags Optional. A constant or value that specifies whether to add the resource to the history list, whether to read from or write to the cache, and whether to display the resource in a new window. The variable can be a combination of the values defined by the BrowserNavConstants enumeration. って書いてありました。解読不能ですが、どうやらここでもキャッシュについて何かできるみたいです。 何をどうやったらいいのかはさっぱりですが。 本当に助かります。 | ||||||||
|
投稿日時: 2005-08-30 07:07
MSDNを見ててflagsに何を入れるかってところで下記内容を見つけました。
Syntax typedef enum BrowserNavConstants { navOpenInNewWindow = 0x1, navNoHistory = 0x2, navNoReadFromCache = 0x4, navNoWriteToCache = 0x8, navAllowAutosearch = 0x10, navBrowserBar = 0x20, navHyperlink = 0x40 } BrowserNavConstants; Constants navOpenInNewWindow Open the resource or file in a new window. navNoHistory Do not add the resource or file to the history list. The new page replaces the current page in the list. navNoReadFromCache Not currently supported. navNoWriteToCache Not currently supported. navAllowAutosearch If the navigation fails, the autosearch functionality attempts to navigate common root domains (.com, .edu, and so on). If this also fails, the URL is passed to a search engine. navBrowserBar Causes the current Explorer Bar to navigate to the given item, if possible. navHyperlink If the navigation fails when a hyperlink is being followed, this constant specifies that the resource should then be bound to the moniker using the BINDF_HYPERLINK flag. がんばって解読してみましたが(解読しきれてませんが) navNoHistory = 0x2, を flagsのところにいれればオッケーなんですかね。 | ||||||||
|
投稿日時: 2005-08-30 07:43
じゃんぬ です。
そのままに、こんな列挙体を定義しておいて...
これらで、指定してみるとわかりやすいと思います。 説明を XML コメントで書いておくと尚 Good。 _________________ C# と VB.NET の入門サイト じゃんぬねっと日誌 | ||||||||
|
投稿日時: 2005-08-30 08:18
ごめんなさい。ちょっとよく意味がわからなかったです。
object a = null; object b = 0x2; web.Navigate("アドレス",ref b,ref a,ref a); でキャッシュを読み込まないということではないのですか? といいつつ、やってみたら、キャッシュを読み込んでしまっております。 うーーーんん。 |