In Visual Studio 2008 I can add a project reference and set Copy Local property to true. As result the referenced assembly will be copied to the same folder the main assembly is build to.
But what if I want to have all referenced assemblies in a subfolder near the main assembly?
Something like this:
..
myApp.exe
Libs
myLib1.dll
my...
I just got myself a new toy, a phone with Windows Mobile 6. I'm trying to write a simple "Hello World" app in VS2008 (C#) and I can't connect to the device. It's connected via ActiveSync (via USB), I can browse the file system, but for some reason when I try to build the app and deploy it to the device, it says "Connect to device failed....
I want to write an Exception to an MS Message Queue. When I attempt it I get an exception. So I tried simplifying it by using the XmlSerializer which still raises an exception, but it gave me a bit more info:
{"There was an error reflecting type
'System.Exception'."}
with InnerException:
{"Cannot serialize member
System.Ex...
I'm using this code from Microsoft to play audio notifications for my application. It's working fine when the user chooses a wav file, but it doesn't play when they choose a wma file.
Is there any way I can support wma files? A lot of the built-in alarm and ringtones seem to be wma.
...
I'm looking to invest in a UI control toolkit for a Compact Framework 3.5 project for Windows Mobile 5 and later. All I can find is the Resco MobileForms Toolkit (http://www.resco.net/developer/mobileformstoolkit/overview.aspx). I have two questions...
Are there any other good WinForm control collections out there?
Any experience with ...
FieldInfo has an IsStatic member, but PropertyInfo doesn't. I assume I'm just overlooking what I need.
Type type = someObject.GetType();
foreach (PropertyInfo pi in type.GetProperties())
{
// umm... Not sure how to tell if this property is static
}
...
Hey, im doing a little app for my smart phone, using Windows Mobile 6. I'm trying to get all currently running processec, but method CreateToolhelp32Snapshot always returns -1. So now im stuck. I tried to get error with invoking GetLastError() method, but that method returns 0 value.
Here is a snippet of my code.
private const int TH32C...
i'm working on windows mobile app (c#, .net 2.0). i would like to make use of the device's autocomplete features for a specific textbox, but i want to be more specific than the device provides by default.
for example, i want to autocomplete to suggest a word of a specific length. it would also be nice to have several options given at on...
Hi
See subject, note that this question only applies to the .NET compact framework. This happens on the emulators that ship with Windows Mobile 6 Professional SDK as well as on my English HTC Touch Pro (all .NET CF 3.5). iso-8859-1 stands for Western European (ISO), which is probably the most important encoding besides us-ascii (at leas...
How can i manage program memory in C# code ? (in WinCE)
...
I'm trying to deserialize an array of an type unknown at compile time. At runtime I've discovered the type, but I don't know how to create an instance.
Something like:
Object o = Activator.CreateInstance(type);
which doesn't work because there is no parameterless constructor, Array doesn't seem to have any constructor.
...
Hi again,
I actually have two questions regarding the same problem but I think it is better to separate them since I don't think they are related.
Background:
I am writing a Windows Mobile software in VB.NET which among its tasks needs to connect to a mail-server for sending and retrieving e-mails. As a result, I also need a Mime-pars...
I have a large Compact Frameworks V2.0 application that in most cases works very well. On certain devices about once a day, a user receives a Native Error 0xC0000005 that is not caught with the standard managed Try/Catch block.
My application synchronizes with the server via ASMX calls at fixed intervals. The problem appears to occu...
How can I use non-default coloring in the DataGrid control in a Windows CE compact framework application?
I need to color one row in color X and one row in color Y (alternating row colors basically).
...
How do I get the size (free, total) of any drive on a Windows Mobile phone using C#?
I need to do this with code running on the device (not on a connected PC).
...
Exact Duplicate of: Getting the size (free,total) of a Windows Mobile phone drive using c#
dear all;
i know my problem took alot of time and many of u helped me but i'm new in C# and this is my first application..
now i read an article:
C# Signature:
[DllImport("coredll.dll", SetLastError=true, CharSet=CharSet.Auto)]
[return: Ma...
I'm trying to call a webservice method like this:
myService.Register("mystring");
The webmethod definition is just:
[WebMethod]
public void Register(string s)
{
}
But I receive the following System.InvalidOperationException:
"The type System.String was not expected. Use the XmlInclude or SoapInclude attribute to specify types that...
could anyone please give me directions, or better - a working sample, of using the "WAP Wakeup" feature in Windows Mobile?
I'm trying to follow directions from http://msdn.microsoft.com/en-us/library/aa919167.aspx . Unfortunately, they only give the beginning of the solution.
Step 1: register your application to listen to SMS messages ...
Morning guys,
We're currently developing a new piece of hand-held software. I cant discuss the nature of the application, so I'll use an example instead.
We've designing hand-held software for managing a school. We want to modularise each aspect of the system so that different schools can use different features.
Our system will start...
I want to add some logging capability to a cf.net application running on WM6 Pro. I'm looking at logging exceptions and some of the more sensitive sections of code. I would like to have logs stored both locally (i.e. on the device) and also have them reliably uploaded to a server as well (they will need to be queued, my app is occasio...