|
-
Aug 19th, 2006, 12:05 PM
#1
Thread Starter
New Member
BackgroundWorker Implementation in CF 2.0
Hi everyone,
I need to use BackgroundWorker in a Smart Device application using .NET Compact Framework 2.0. The problem is that BackgroundWorker is not implemented on .NET CF 2.0 and I do not want to use any external assemblies in my project (such as OpenNetCF).
After some looking around I came across Daniel Moth's implementation of BackgroundWorker for .NET CF 1.0: http://www.danielmoth.com/Blog/2004/...for-cf-10.html
That code however does not compile on .NET CF 2.0, so my question is, is there another implemntation of BackgroundWorker for version 2.0 of the .NET CF?
Thanks.
-
Sep 10th, 2006, 07:51 AM
#2
New Member
Re: BackgroundWorker Implementation in CF 2.0
Hi
The implementation on my blog *does* work with NETCF v2.0, what error are you seeing?
Scroll to the bottom of the blog post you refer to, follow the link to the VB source, select all and copy.
Create a brand new VB Smart Device project; add a new codefile (empty .vb file) and then paste. Rebuild all.
If you are getting namespace resolution errors, open your project properties and under the application tab delete the “Root Namespace”. I described this two years ago here (item 5):
http://www.danielmoth.com/Blog/2004/...s-net-way.html
If you want to keep the root namespace for whatever reason, you can change the BackgroundWorker code to not use fully qualified names for types.
Having said all that, I see no reason for you not to use the SDF v2.0 from OpenNETCF, which I personally highly recommend.
Good luck
Cheers
Daniel
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|