|
I have a web browser control in my program, and I'm change its url property to different urls, via a foreach loop.
Now, the problem is, that the "Document Loaded" event only fires for the last url in the list, and the only page you eventually see is the last, what i want is kind of a slide-show effect.
is there any way to force the control to pause the loop and fire the event for each of the urls in my collection?
|
|
|
|
|
Instead of using a for loop, why not use a timer with an interval of <insert time you want each page to be displayed here> and change the url on each pass through, you could do something like:
Timer()
{
static int counter = 0;
switch(counter) {
case 0:
navigate to url
break;
case 1:
navigate to url
break;
case 2:
navigate to url
break;
case 3:
navigate to url
break;
default:
counter = 0;
myTimer.Stop();
break;
}
counter++;
}
My current favourite word is: Bacon!
-SK Genius
|
|
|
|
|
this might work, but if some site takes extremly long to load (or longer than usual) then the slideshow might miss a website, or show it for too long/too little.
what i want is for the browser to sort of pause the thread, untill the website hes showing is loaded completly, is this possible?
|
|
|
|
|
Okay then, how about using the DocumentCompleted event:
DocumentCompleted()
{
myTimer.Start();
}
Timer()
{
static int counter = 0;
switch(counter) {
case 0:
navigate to url
break;
case 1:
navigate to url
break;
case 2:
navigate to url
break;
case 3:
navigate to url
break;
default:
counter = 0;
break;
}
counter++;
myTimer.Stop();
}
That way, the set amout of time will pass, then the page will change and the timer will stop. Once the page is loaded the timer will start again. After the set amount of time passes again it will navigate to the new page then stop the timer... and so on.
My current favourite word is: Bacon!
-SK Genius
|
|
|
|
|
|
Good Day,
I've been searching for it in Google for like 2 hours but can't hit the proper keyword.
I have a Windows Form with a Listbox on it. When I drag a file from the desktop inside the Windows form, I want to have the path of the file added to the listbox.
Is there an article or a guide on how to accomplish such feat?
Thanks!
|
|
|
|
|
|
|
I do my project(softphone) with code "AsteriskIAXClientWrapper" and i have a problem when i compile my project for connexion to my server Asterisk one exception ( that is : "ConfigurationErrorsException was Unhaldled" )figure in this line : "return ((int)(this["ConfigStatus"])) "
we can help me?
Thank you
|
|
|
|
|
What is AsteriskIAXClientWrapper ? If it's an article, ask the author ? If it's a third party library, ask the vendor. Odds are, none of us know what you're talking about.
But, it looks to me like you have a missing entry in your config file.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Thank you for your reponse
AsteriskIAXClientWrapper is a project " Asterisk IAXClient library in C#"
|
|
|
|
|
asma_pfe wrote: Asterisk IAXClient library in C#
There is an article here in CP which explains about writing wrapper for IAX client. Try posting this question there.
|
|
|
|
|
|
Hello.
Friends,
I am trying to add Web reference in windows application but problem is that in place of web reference .NET 3.5 showing Service reference. and tell how to use.
Thanks,
RPSingh
RPSingh
|
|
|
|
|
Does the reference work, or not ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
How can I use activex control in C# application programatically without dropping it on the form?
Thanks,
Sushma
|
|
|
|
|
I don't know how you'd do that, because the way it usually works is, your code generates a proxy class that handles the COM stuff. Why can't you add a reference ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Thanks, I have posted this question after searching in the google and I am still searching.
I have tried adding in the toolbox and then dropping it on the form. I have tried using Add a Referrence method it does not work.. I get an Catastrophic failure exception.
|
|
|
|
|
Hi
When i encrypt a text file using .Net rijndael encryption the size of the text file increases. I really don't want that the size of the file increasses because the whole application works over the size of the file. User will not be aware of the fact that whatever size he will enter would increase and thus could fail the application to work.
Or may be if some one knows that it increases the size by any certain size then i might sort this out by keeping some space for encrypted file in advance and giving user the detail of the size of the file after encryption.
Any suggestion to deal with this situation.
ta
|
|
|
|
|
Encrypting a file in a way that it can be decrypted is probably going to increase the size most of the time. What if you zip it, then encrypt the zipped data ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi all,
Im starting a project, where i have to use 6 cameras (web cams, digital cams, ethernet cams) to control them via software, i have to take a picture and compare each of them to a standar one, and tell how similary are they in %.
Im wondering is there any software, libraries, applications, sourcode in c# or maybe in other plataforms, that you guys know, which i could use.. to learn how or to complement or modify it.
any suggestion??
modified on Saturday, April 12, 2008 2:26 AM
|
|
|
|
|
|
|
Hi,
Some of these articles[^] should interest you.
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
Is there any good articles out there on teaching me all the syntax for an app configuration file regarding assembly binding and probing and such? I have searched but it is tough for me being a C# newb(maybe I haven't been using the right terms).
Also, can I have the following
nunitdir/nunit.exe
nunitdir/nunit.exe.config
otherdir/testsuite.dll
nunitdir/nunit-framework.dll
QUESTION 1: Once Nunit goes to run my test suite, it can't fund the nunit framework.dll since nunit wasn't built referencing that dll. Can I just change the nunit.exe.config file to bind the framework dll in early?
QUESTION 2: If nunit.exe.config binds the framework.dll, and testsuite.dll.config binds a different framework.dll, who wins?
QUESTION 3: is there some kind of tutorial on the binding stuff somewhere?
thanks,
dean
|
|
|
|