Questions tagged [compact-framework2.0]
71 questions
12
votes
3 answers
How do I unblock threads which have called the WaitOne method on an AutoResetEvent object?
Below is a class having the method 'SomeMethod' that illustrates my problem.
class SomeClass
{
AutoResetEvent theEvent = new AutoResetEvent(false);
// more member declarations
public void SomeMethod()
{
// some code
…

ghd
- 258
- 1
- 3
- 14
8
votes
1 answer
System.Threading.Timer Not Starting?
I'm using C# with Compact Framework 2, SP2.
The device's OS was set up to start up with my application, let's call the application "Loader.exe."
Loader is simply this: a single, plain form that shows status messages throughout loading, if necessary…

Peter Lacerenza
- 225
- 2
- 12
6
votes
3 answers
Getting current directory in Windows CE 5.0 using C# compact 2.0
How do I get the current directory from which my EXE is running? I have tried the following two codes but they don't work.
Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase);
Using above I get error "The name "Assembly" does…

Ali
- 1,801
- 6
- 43
- 58
4
votes
2 answers
Inversion of control on Compact Framework 2.0
I've been "googling" around about inversion of control on Compact Framework but most of solutions will work on 3.5 version.
Summarizing: I need a light-weight, simple inversion of control container working on Compact Framework 2.0.
Thank you in…

Matías Fidemraizer
- 63,804
- 18
- 124
- 206
4
votes
3 answers
Display latest inserted data in .NET Compact Framework application
I am developing application which should be compatible with Window CE 4.x and above version. So, I decided to select .NET compact Framework 2.0 for development option.
But now I have situation that I am not able to find any proper solution for my…

Jignesh Thakker
- 3,638
- 2
- 28
- 35
3
votes
1 answer
Attach button to column datagrid in C# Compact Framework .Net 2.0
I have a datagrid which has 4 columns, the first 3 are data and the last one needs to have a button in it to allow for the row to be deleted. I have searched for a good 2 hours now and haven't found any way to do this in the C# Compact Framework for…

Cookie
- 558
- 8
- 24
3
votes
3 answers
find files with same names but different extensions in a folder
I have an FTP server which stores files sent/uploaded by the client in a certain folder. The client will upload 3 files with same names but different extensions. For example,the client will send file1.ext1,file1.ext2 and file1.ext3. I am looking for…

user1550951
- 369
- 2
- 9
- 26
2
votes
4 answers
Motorola MC3190 barcode scanner not getting triggered
I am trying to get my Motorola MC3190 read barcode. But unfortunately there is no response after pressing the hardware scan button. I am using EMDK for .net version 2.0.
Here is my code:
private void Form1_Load(object sender, EventArgs e)
…

Abdel Raoof Olakara
- 19,223
- 11
- 88
- 133
2
votes
2 answers
Change file LastWriteDate in Compact Framework
FileSystemInfo.LastWriteTime property is readonly in CF.
Is there an alternative way to change that date?

fra
- 3,488
- 5
- 38
- 61
2
votes
1 answer
Extract original file from CAB archive and determine version (.net CE 2.0 app)
I am trying to update a win mobile 6.0 project to allow it to have update notifications.
To make this easier from our end, I wan to be able to update the installer CAB file via a web interface and have the web determine the version of the…

TheFabledOne
- 238
- 1
- 14
2
votes
2 answers
Updating controls in Main Thread using EventHandler
I'm using this to update a control in the main thread from another thread:
private void ShowHourGlassSafe(bool visible)
{
this.Invoke((EventHandler)((s, ev) => pictureBoxHourGlass.Visible = visible));
}
I wonder what are the…

montelof
- 491
- 1
- 6
- 13
2
votes
2 answers
Asynchronous vs. Synchronous Socket for Several Sockets In Potentially Thread Intensive Application
I'm writing a relatively large application for my company on Compact Framework 2.0 for a Windows CE device, and I'm working with a single CPU core.
Without getting into details, non-socket related work can, at worst case timing, have 10 or so…

Peter Lacerenza
- 225
- 2
- 12
1
vote
1 answer
WinCE: Is there a way to know what exception was thrown without having system.sr.dll installed?
I have a wince application and am getting the following error message sometimes:
An error message cannot be displayed because an optional resource assembly containing it cannot be found
This is because I don't have the dll of exception messages…

MStodd
- 4,716
- 3
- 30
- 50
1
vote
1 answer
JSON serializer for .NET CompactFramework 2.0
I need to Serialize and De-serialize Custom Objects under .NET Compact Framework 2.0. I have gone through JSON.NET 3.5 but it need .NET Compact Framework 3.5.
I am restricted to not to upgrade from 2.0 to 3.5. When I am trying with version JSON.Net…

Sumeet
- 905
- 1
- 14
- 32
1
vote
2 answers
C# customcontrol OnMouseDown - always get wrong Y position
I am struggling in a project on Windows Mobile 6.5. I am writing a custom-controls that can plot lines of where the user has clicked on the custom-controls.
I am facing a problem that the OnMouseDown(MouseEventArgs e) is not returning correct e.Y…

mobile app Beginner
- 1,651
- 3
- 26
- 40