How do you get the current battery level in .NET CF 3.5?
How - or what's the best way - to retrieve the device's current battery level in .NET CF 3.5 on Windows Mobile 5 and 6? ...
How - or what's the best way - to retrieve the device's current battery level in .NET CF 3.5 on Windows Mobile 5 and 6? ...
Say I have an application that used an ORM (I am thinking of nHibernate or LINQ to Entities) for data access. How do I provide my users with the ability to do reporting against the properties of my objects? All the end user report designers I know of talk directly to a database, but I don’t like having to repeat logic in reports that ...
I have a WCF server that I can run as a service or as a windows forms application. When I run it as a Windows Forms application I can connect to it via my client application. However when I run it as a service using the same code, I cannot connect to it. I have confirmed that the service is running and doing its work. Below is the server...
I would like to launch a shell command after an installation made with a .NET setup project under VS2008, and another shell command before start an uninstall, always from .NET msi package. How can I do it ? ...
Are there any alternatives to Python for .NET or IronPython for accessing .NET CLR? Both of these seem to have downsides in that Python for .NET is not under active development (as far as I can tell) and you lose some features available in CPython if you use IronPython. So are there any alternatives? ...
If my client's connection is broken on the other end( kill -9 server). It takes several minutes for the client to determine that something is wrong. Socket.Connected returns true even though connection is actually broken. What is the fastest way to determine that the connection doesn't exist, once the other end breaks the link? Client...
The following query works. I get the correct result back when I enter the name with a wrong casing. private static IObjectContainer db = Db4oFactory.OpenFile(db4oPath); public static IQueryable<Company> GetCompaniesByName(string name) { return (from Company c in db where c.Name.ToLowerInvariant().Equals(nam...
Hi i received a request to create a Music Player with specific features ,sincerely i did not develop a Music Player in past time(just 7 months i began to develop programs Smile ). I try to explain correctly these features requested right now. This Music Player will Play music in modality "Random" (first request) downloading songs from a ...
Im somewhat new to design patterns and this is my first post in stackoverflow, so hopefully this question will make sense. Ive created an abstract factory to handle generating xml strings for different chart vendors (dundas, flash, etc...). Below is a code outline of my factory (I can include more if it helps.) Id like for my client t...
Imagine I have a SearchService layer that has a method to search all cars starting with a certain string; public static class Searcher{ public IAnInterface<Car> CarsStartingWith(string startWith){ //magic } } What interface should my service use? IQueryable can render for a nice fluid interface in the rest of my applic...
Is there a tidy way of doing this rather than doing a split on the colon's and multipling out each section the relevant number to calculate the seconds? ...
I'm getting 'Invalid class name' exceptions when trying to monitor changes to the Win32_PerfFormattedData_RemoteAccess_RasPort class on Windows XP. I'm using the code listed here. Is this class supported on XP? The documentation claims it is, although it's supplied by a different provider. If not, what's a good alternative? ...
I have a SQLServer 2005 Reporting Services ServerReport deployed and frequently used by my Winforms app (Framework 2.0) via the ReportViewer control. What I need is to provide a one-click print button from one of the forms of the app that triggers only the print dialog, without bringing up the ReportViewer. I've been experimenting wit...
Is there any way to check from .NET if windows update is enabled? I want to prompt the users every time they log into my app that their computer might be at risk and give them a link to windows update website (or windows update application from control panel). Preferably it should work on XP, Vista and Windows 7. Maybe there is a regis...
I'm using the latest release of IKVM to "compile" a Java .jar file into a .NET DLL. That all worked fine, and now I'm trying to reference the DLL in a .NET 3.5 C# project. In my C# project, I've created an static "StringExtensions" class with an extension method on string. For some reason this seemed to work yesterday, but today, I'm ...
I'm working on a team developing a .NET Microsoft Office Add-in. We're looking at obfuscation solutions to help protect our licensing procedures. We're primarily looking at tools like Dotfuscator Professional and smartassembly. My first question is whether anyone has experience using smartassembly with an Office add-ins? Dotfuscator ...
I am using the Process class in my application, right at the beginning of the static Main method. I am using the Process class to know if another instance of my application is currently running. If my application is already running, I will exit. i am not looking for a way of change this, this has been working for years But recently thi...
To add a new value to a dotnet Hashtable I've always used: myHashtable.Add(myNewKey, myNewValue); but I've just come across some code which does the following instead: myHashTable[myNewKey] = myNewValue; Is there any difference between the two methods? ...
Hi, I've been trying to look around the various .NET class library's for some where I can get the logged in user of the local machine, either connected to a domain or not. So far System.Security.Principal.WindowsPrincipal LoggedUser = System.Threading.Thread.CurrentPrincipal as System.Security.Principal.WindowsPrincipal; // This retu...
Any experiences anyone can share about this tool? ...