WebBrowserDocumentCompletedはフレームの場合2回以上発生する

| コメント(66) | トラックバック(0)
WEB巡回ツールのようなものを作っていて WeBrowserコントロールを使ってWebBrowserDocumentCompleted イベントをトリガーに次の処理、次の処理、、、と進めていくプログラムを作っていたのだけど
同じ処理を流しているのに 想定通りに動く場合とエラーになる場合がある。
3~4回に1回失敗するのでWebBrowserコントロールの問題か?とあきらめてたんだけど
実はフレームのせいだということがひょんなことから判明!?

ページにフレームが含まれる場合 フレームの読み込み発生時にまず1回発生し
全ての読み込みが終わったときにもう一回発生するみたい。

そこで以下のように書いてフレームの場合は処理をしないように対応

WebBrowser1_WebBrowserDocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
WebBrowser webb = (WebBrowser)sender;

//フレーム内の場合は両者が一致しないので実行されない。
if (e.Url == webb.Url)
{
//ここに処理を書く
}

トラックバック(0)

トラックバックURL: http://blog.romaji.net/mt4/mt_cgi/mt-tb.cgi/83

コメント(66)

What a lovely day for a 3978220! SCK was here

You most definitely have made this blog into something thats eye opening and important

Undeniably believe that which you said. Your favorite reason seemed to be on the net the simplest thing to be aware of. I say to you, I certainly get annoyed while people consider worries that they plainly don't know about. You managed to hit the nail upon the top as well as defined out the whole thing without having side-effects , people could take a signal. Will probably be back to get more. Thanks

Very helpful post! I really enjoyed reading it. So wonderful to read an article that is written in very good English! I am going to certainly be back for much more at some point. Thanks.

I don't know how i discovered this blog as I have been researching more details about the current events in Afghanistan, but anyway I am very lucky that I stumbled upon your blog post as I had a great time reading your thoughts. Keep up the good work! Just one final thing, would you recommend various other important articles or blog posts regarding the same subject?

Hello. Great job, if I wasn't so busy with my school work I read your total site. Thanks!

Extremely fascinating post. Your point of view is incredibly clear and also intriquing. I will definitely be subscribing to your RSS. I trust you will publish regularly on very similar things. However I'm interested what your resources of the article are? Thank you.

I just wanted to develop a brief remark to be able to express gratitude to you for the marvelous guides you are giving on this site. My time consuming internet look up has finally been paid with reliable strategies to share with my visitors. I 'd express that most of us readers actually are really blessed to exist in a notable community with so many perfect professionals with valuable pointers. I feel quite privileged to have seen your entire website page and look forward to some more brilliant minutes reading here. Thanks once more for a lot of things.

Yes, i am sure many people will have the same comment.

You definitely know what you're preaching about. Man, this website is just terrific! I cannot wait to read through more of what you have got to state. I'm truly pleased that I stumbled on this when I do because I'm really beginning to get bored with all the whole blogging and site-building scene. You have turned me around man!

Oh my goodness! an amazing article dude. Thanks Nevertheless I'm experiencing subject with ur rss . Don’t know why Unable to subscribe to it. Is there anyone getting equivalent rss problem? Anybody who knows kindly respond. Thnkx

We're a group of volunteers and starting a new scheme in our community. Your website offered us with valuable info to work on. You've done a formidable job and our whole community will be thankful to you.

I besides believe so, perfectly pent post!

wow good info thanks

I was looking this stuff up for a while now

Im not that much of a reader to be honest but your sites pretty good, keep it up as I will bookmark ready for my next read

Love the look of your site. Definitely going to check this stuff out next time I'm in town

Does your website have a contact page? I'm having problems locating it but, I'd like to send you an email. I've got some recommendations for your blog you might be interested in hearing. Either way, great website and I look forward to seeing it develop over time.

This really answered my problem, thanks!

Merely wanna comment that you have a very decent site, I love the design it actually stands out.

'I was daydreaming about it this morning and now I discover this site.

Wonderful web site. Lots of helpful info here. I am sending it to several buddies ans additionally sharing in delicious. And naturally, thank you for your effort!

But wanna state that this is extremely helpful, Thanks for taking your time to write this.

Hi there clever points.. now why did not i think of these? Off subject slightly, is this page pattern merely from an bizarre set up or else do you utilize a customized template. I exploit a webpage i'm seeking to enhance and properly the visuals is probably going one of the key things to finish on my list.

Hi there intelligent points.. now why did not i think of those? Off topic barely, is this page sample merely from an ordinary set up or else do you utilize a personalized template. I take advantage of a webpage i'm looking for to enhance and nicely the visuals is probably going one of the key issues to complete on my list.

Hey! This is my first visit to your blog! We are a team of volunteers and starting a new project in a community in the same niche. Your blog provided us beneficial information to work on. You have done a outstanding job!

Hey – nice weblog, just looking round some blogs, seems a reasonably good platform You Are using. I'm at the moment using Drupal for a couple of of my sites but seeking to change considered one of them over to a platform very much the identical to yours as a trial run. Anything in particular you'll suggest about it?

I wanted to thank you for this great read!! I positively enjoying every little little bit of it I've you bookmarked to take a look at new stuff you post

Youre so cool! I dont suppose Ive learn anything like this before. So nice to search out anyone with some original ideas on this subject. realy thank you for starting this up. this website is one thing that is wanted on the net, somebody with a little originality. helpful job for bringing something new to the web!

I am not rattling excellent with English but I get hold this truly easygoing to read .

Its excellent as your other posts :D, thank you for putting up.

Couldnt be written any better. Reading this post reminds me of my old room mate! He always kept talking about this. I will forward this article to him. Pretty sure he will have a good read. Thanks for sharing!

Heya just wanted to give you a brief heads up and let you know a few of the pictures aren't loading correctly. I'm not sure why but I think its a linking issue. I've tried it in two different web browsers and both show the same outcome.

I wish to get across my appreciation for your generosity in support of people that need help with this question. Your special commitment to passing the solution up and down appears to be incredibly good and have really helped many people like me to attain their objectives. Your important suggestions means so much to me and especially to my office colleagues. Thanks a lot; from everyone of us.

You are my intake, I have few web logs and rarely run out from post :).

Would you be occupied with exchanging links?

This article is blue ribbon material as far as I¡¯m concerned. I haven¡¯t used my brain so much in years. This is very interesting content.

Wow! Thank you! I always wanted to write in my site something like that. Can I take part of your post to my blog?

Rather than produce the same old content you have taken this subject to a whole new level . Kudos for not following the standard writing crowd.

It’s onerous to search out knowledgeable people on this topic, however you sound like you recognize what you’re talking about! Thanks

With havin so much written content do you ever run into any problems of plagorism or copyright violation? My site has a lot of unique content I've either created myself or outsourced but it appears a lot of it is popping it up all over the internet without my agreement. Do you know any solutions to help protect against content from being stolen? I'd really appreciate it.

Simply killing some in between class time on Digg and I discovered your article . Not normally what I desire to examine, nevertheless it was completely value my time. Thanks.

Thanks for taking the time to debate this, I really feel strongly about it and love studying extra on this topic. If possible, as you acquire expertise, would you thoughts updating your blog with additional information? This can be very useful for me.

Love this blog, wish you had more publicity and love.

This is getting a bit more subjective, but I much prefer the Zune Marketplace. The interface is colorful, has more flair, and some cool features like 'Mixview' that let you quickly see related albums, songs, or other users related to what you're listening to. Clicking on one of those will center on that item, and another set of "neighbors" will come into view, allowing you to navigate around exploring by similar artists, songs, or users. Speaking of users, the Zune "Social" is also great fun, letting you find others with shared tastes and becoming friends with them. You then can listen to a playlist created based on an amalgamation of what all your friends are listening to, which is also enjoyable. Those concerned with privacy will be relieved to know you can prevent the public from seeing your personal listening habits if you so choose.

Hi there! I am so thrilled I stumbled upon your website. I really seen you by mistake, whilst I was seeking on Digg for some other thing. Anyway, I'm here now and would just want to give you thanks for the fantastic post and a over-all helpful weblog (I additionally love the theme / design). I don't have time to browse all of it at the moment but I have bookmarked it and also added in your RSS feeds, so if I have time I will be returning to find out more. Please do carry on the amazing career.

When do you think this Real Estate market will go back in a positive direction? Or is it still too early to tell? We are seeing a lot of housing foreclosures in Winter Springs Florida. What about you? Would love to get your feedback on this.

Magnificent web site. Plenty of helpful information here. I'm sending it to a few friends ans additionally sharing in delicious. And naturally, thank you for your effort!

Awesome article , I’m going to spend much more time researching this topic

An interesting dialogue is value comment. I feel that it is best to write extra on this topic, it may not be a taboo subject but generally individuals are not sufficient to speak on such topics. To the next. Cheers

A powerful share, I just given this onto a colleague who was doing somewhat evaluation on this. And he in reality bought me breakfast because I found it for him.. smile. So let me reword that: Thnx for the treat! But yeah Thnkx for spending the time to discuss this, I really feel strongly about it and love studying more on this topic. If potential, as you become experience, would you thoughts updating your blog with extra particulars? It's highly useful for me. Massive thumb up for this blog submit!

individuals are not sufficient to speak on such topics. To the next. Cheers

A diamond is a chunk of coal that made good under pressure.

Almost all of the things you mention is supprisingly legitimate and it makes me wonder why I had not looked at this in this light previously. This article really did turn the light on for me as far as this specific subject matter goes. Nonetheless at this time there is just one issue I am not really too cozy with and while I attempt to reconcile that with the main idea of your issue, allow me see exactly what the rest of your readers have to say.Very well done.

Cant find the “Tweet This” button on this page??

The article is really very interesting! I will continue to try me here to keep you informed. Thank you!

I've to confess that i typically get bored to read the whole thing however i think you can add some value. Bravo !

I've not too long ago began a blog, the data you provide on this web site has helped me tremendously. Thanks for your whole time & work.

To err is human, but to really foul things up you need a computer.

I’d should examine with you here. Which is not something I normally do! I enjoy studying a submit that can make folks think. Also, thanks for allowing me to comment!

What i do not understood is definitely how you’re not truly a lot more well-liked than you might be right now. You are very educated. You realize therefore significantly relating to this subject, produced myself consider it from so many varied angles. It’s like men and women are certainly not fascinated unless it is one thing to do with Lady gaga! Your individual stuffs superb.

I was looking for this the other day. i dont usually post in forums but i wanted to say thank you!

thanks !! very helpful post!

Hands down, Apple's app store wins by a mile. It's a huge selection of all sorts of apps vs a rather sad selection of a handful for Zune. Microsoft has plans, especially in the realm of games, but I'm not sure I'd want to bet on the future if this aspect is important to you. The iPod is a much better choice in that case.

Hi , I do believe this is an excellent blog. I stumbled upon it on Yahoo , i will come back once again. Money and freedom is the best way to change, may you be rich and help other people.

Of course they are prisoners of war.

コメントする

2011年9月

        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30