Fix Code To Be "Thread Safe"


I have a webbrowser control hosted in my C# win form. This webbrowser control is being used to navigate some webpages and fill up the textbox found in that page using Document Object Model interface.

i.e. [url removed, login to view]("a")... etc..etc..

And also I am clicking a button using DOM interface. Now, my code is working very fine in the regular standard thread. But I want to get them worked in a thread (Background worker) and here is the problem. my codes are not working at all for background thread. I tried to use [url removed, login to view]() etc... to make the Webbrowser access thread safe but that was not becoming fruitful. Only one code is working in background worker and that is : [url removed, login to view](someURL);

Again, after navigating, I wanted to wait for loading complete, like,

while([url removed, login to view] != [url removed, login to view])


the application falls in an infinite loop. It never comes out from the loop. And when I execute the code for getting the reference for [url removed, login to view], I get error "Object Reference not set to an object"... that means, webbrowser1 is never loaded with the document or something like that.


Now, please let me know if you can get my code working for background worker. =================================================================

Additional information:

Just want to add a note for your convenience......

The amount of code I am looking for to getfixed is very small. Just few lines of code which is actually causing problem. So, IF you are expert about getting a control worked in background worker thread then it will not need a lot of efforts to fix it. So please consider about this point when you place bid.

Thank you.

C# .NET 2.0, Visual Studio 2005

Kemahiran: .NET

Lihat lagi: webbrowser backgroundworker, webbrowser control thread safe, webbrowser thread safe, you fix it, thread up, the fix it, place code, no code, my fix it, my fix, my code, loop net, i will fix it, get my fix, get found now, fix page, fix it for you, fix it for me, fix it at, code your, code get, & code, iwebbrowser2 thread, thread safe violations, axwebbrowser readystate working loop

Tentang Majikan:
( 14 ulasan ) Whitby, Canada

ID Projek: #104619

Dianugerahkan kepada:


Hello, Please check PMB.

$50 USD dalam sehari
(3 Ulasan)

7 pekerja bebas membida secara purata $58 untuk pekerjaan ini


can be done in one day.

$100 USD dalam sehari
(20 Ulasan)

See PMB, please.

$48 USD dalam 2 hari
(4 Ulasan)

Hi I am a Microsoft Certified Professional in C# & ASP.NET 1.1 & also comfortable with ASP.NET 2.0, VB.NET, SQL Server 2000 & SQL Server 2005. I have around 4+ Years of experience in Microsoft Technologies. I am Lagi

$45 USD dalam 3 hari
(0 Ulasan)

I know how it's done. Let me do it - in worst case it will take several hours

$30 USD dalam sehari
(0 Ulasan)

We are very much interested in doing this job. We can handle projects as customer's satisfaction. It will be nice to work with you. Thanks. ResonanceIT

$30 USD dalam sehari
(1 Ulasan)

We are a small software company based in Ukraine [login to view URL] was created by proffesionals for professionals. We use modern project management methodologies, combining thorough functional and non-functional requirement Lagi

$100 USD dalam sehari
(0 Ulasan)