Click here to Skip to main content
15,899,825 members
Home / Discussions / C#
   

C#

 
GeneralRe: Extending a .Net Control. Implement new functionality in event Pin
sodevrom27-Jun-10 11:27
sodevrom27-Jun-10 11:27 
GeneralRe: Extending a .Net Control. Implement new functionality in event Pin
Jacob Dixon27-Jun-10 11:37
Jacob Dixon27-Jun-10 11:37 
GeneralRe: Extending a .Net Control. Implement new functionality in event Pin
sodevrom27-Jun-10 11:53
sodevrom27-Jun-10 11:53 
GeneralRe: Extending a .Net Control. Implement new functionality in event Pin
Jacob Dixon27-Jun-10 12:11
Jacob Dixon27-Jun-10 12:11 
GeneralRe: Extending a .Net Control. Implement new functionality in event Pin
Johnny J.28-Jun-10 0:51
professionalJohnny J.28-Jun-10 0:51 
AnswerRe: Extending a .Net Control. Implement new functionality in event Pin
DaveyM6927-Jun-10 12:31
professionalDaveyM6927-Jun-10 12:31 
AnswerRe: Extending a .Net Control. Implement new functionality in event Pin
DaveyM6928-Jun-10 3:06
professionalDaveyM6928-Jun-10 3:06 
QuestionApplication.DoEvents(); throwing System.IO.FileNotFoundException ? Pin
BugMeNotFTW27-Jun-10 4:09
BugMeNotFTW27-Jun-10 4:09 
Ive got the webbrowser control navigating in a foreach loop which doesn't contain any IO yet i get the following exception

Exception:Thrown: "Could not find file 'C:\Users\Raymond\Desktop\TestProgram\bin\Debug\TestProgram.vshost.exe.config'." (System.IO.FileNotFoundException)
A System.IO.FileNotFoundException was thrown: "Could not find file 'C:\Users\Raymond\Desktop\TestProgram\bin\Debug\TestProgram.vshost.exe.config'."


foreach (string ValueName in Regkey.GetValueNames())
                {
Browser.Navigate("http://www.google.com");
                    System.DateTime ThisMoment = System.DateTime.Now;
                    System.TimeSpan duration = new System.TimeSpan(0, 0, 0, 0, 10000);
                    System.DateTime AfterWards = ThisMoment.Add(duration);

                    while (Loaded != true || AfterWards >= ThisMoment)
                    {
                        Application.DoEvents();
                        Thread.Sleep(50);
                    }
           }


with Browser.document completed set to the function below

private void BrowserCallback(object sender, WebBrowserDocumentCompletedEventArgs e)
        {
            Loaded = true;
        }


No IO is taking place and the path in the exception is correct it even happens whenh im not debuging Confused | :confused:

Is there any way to fix this or get the foreach loop to wait until Browser.documentcompleted is fired without using a delay ?
AnswerRe: Application.DoEvents(); throwing System.IO.FileNotFoundException ? Pin
Roger Wright27-Jun-10 4:58
professionalRoger Wright27-Jun-10 4:58 
AnswerRe: Application.DoEvents(); throwing System.IO.FileNotFoundException ? [modified] Pin
BugMeNotFTW27-Jun-10 6:41
BugMeNotFTW27-Jun-10 6:41 
GeneralRe: Application.DoEvents(); throwing System.IO.FileNotFoundException ? Pin
Roger Wright27-Jun-10 20:38
professionalRoger Wright27-Jun-10 20:38 
AnswerRe: Application.DoEvents(); throwing System.IO.FileNotFoundException ? Pin
Jacob Dixon27-Jun-10 11:47
Jacob Dixon27-Jun-10 11:47 
QuestionSwitching a program from foreground to background Pin
WubbleU26-Jun-10 22:53
WubbleU26-Jun-10 22:53 
AnswerRe: Switching a program from foreground to background Pin
DaveAuld26-Jun-10 23:24
professionalDaveAuld26-Jun-10 23:24 
GeneralRe: Switching a program from foreground to background Pin
WubbleU26-Jun-10 23:28
WubbleU26-Jun-10 23:28 
GeneralRe: Switching a program from foreground to background Pin
Trollslayer26-Jun-10 23:38
mentorTrollslayer26-Jun-10 23:38 
GeneralRe: Switching a program from foreground to background Pin
WubbleU26-Jun-10 23:42
WubbleU26-Jun-10 23:42 
GeneralRe: Switching a program from foreground to background Pin
Trollslayer27-Jun-10 0:09
mentorTrollslayer27-Jun-10 0:09 
GeneralRe: Switching a program from foreground to background Pin
Richard MacCutchan27-Jun-10 0:15
mveRichard MacCutchan27-Jun-10 0:15 
AnswerRe: Switching a program from foreground to background Pin
PIEBALDconsult27-Jun-10 4:08
mvePIEBALDconsult27-Jun-10 4:08 
GeneralRe: Switching a program from foreground to background Pin
WubbleU1-Jul-10 16:37
WubbleU1-Jul-10 16:37 
GeneralRe: Switching a program from foreground to background Pin
WubbleU3-Jul-10 19:50
WubbleU3-Jul-10 19:50 
QuestionStringBuilder and String [modified] Pin
NetQuestions26-Jun-10 22:28
NetQuestions26-Jun-10 22:28 
AnswerRe: StringBuilder and String Pin
Keith Barrow26-Jun-10 22:49
professionalKeith Barrow26-Jun-10 22:49 
AnswerRe: StringBuilder and String Pin
OriginalGriff26-Jun-10 22:57
mveOriginalGriff26-Jun-10 22:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.