Is there any guaranteed way of determining the date that Office 2003 (and .Net Framework v2.0) were installed on a client computer?
I am trying to nail down a problem which I think is due to the order that the .Net Framework and Office 2003 were installed in, so I need a way I can get a client to have a look at their machine (preferably...
How to create datagridComboBoxCell in Wpf so that runtime i can bind that cell??
...
I have this object PreloadClient which implements IDisposable, I want to dispose it, but after the asynchronous methods finish their call... which is not happening
private void Preload(SlideHandler slide)
{
using(PreloadClient client = new PreloadClient())
{
client.PreloadCompleted +...
I have a C# .NET Console application exe with an app.config specifying a handful of ApplicationSettings used as parameters.
I have an additional separate (Windows Forms) exe (residing in the same directory) to allow the ApplicationSettings used by the first exe to be modified by the user.
What it the cleanest way to go about modifying ...
Hi am trying to work with the differences between MediaElement in Silverlight 2.0 and WPF. (One has a scubbing enable flag, the other has audio track support, etc). I just browsed the online docs and it does not look like the betas of SL3 or .NET 4.0 are doing anything to address the differences. My question is: Is anyone playing with...
C#: How to detect who is the caller of a context menu's menu item when linked to two different objects?
I have two labels, lblOn and lblOff. I am linking 'one' contextmenu to both labels to discard having to make two of the same.
How would I go upon finding out which label object called the contextmenu.menuitem? That way the clicked o...
I'm building a web application in which I need to scan the user-uploaded files for viruses.
Does anyone with experience in building something like this can provide information on how to get this up and running? I'm guessing antivirus software packages have APIs to access their functionality programatically, but it seems it's not easy to...
I have two applications, a WinForms app and a Windows Service that will both run on the same machine. I want the WinForms app to reliably detect when the service is running. I have complete control over the design and implementation of both applications.
My first thought is to use a Mutex, instantiated by the Service and detectable by ...
I have a form I set to Maximize, but for some reason it's ignoring the taskbar and maximizing to the entire screen. Is that typical? Is there a work around?
I'm running windows XP with a dual monitor setup (taskbar in the first/primary window).
...
Is public declaration a requirement for a class to be serializable? I've been going through some code where all classes marked as [Serializable] were also declared public. I could not find formal documentation stating this.
...
I've got a custom HTTP server written in C# which gives me the raw HTTP request...
GET /ACTION=TEST HTTP/1.1
Host: localhost:8080
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-gb,en;q=0....
I have a client/server style application which communicates using WCF which all works great. One function of the application is to get files from client machines onto the server (Central Control).
The Central Control requests a list of file in a specified folder on the client and opens up a port using sockets for the clients to connect ...
Hi,
I'm trying to encrypt something simple, like int or long. Simplest way I found looks like:
int num = 2;
RSACryptoServiceProvider rsa = new RSACryptoServiceProvider();
byte[] numBytes = BitConverter.GetBytes(num);
byte[] encryptedBytes = rsa.Encrypt(numBytes, true);
Problem is, the encryptedBytes is 128 bytes long. How can I encry...
I am writting a spelling word application for my son and would like recomendations for good APIs that can be understood when it speaks. I am programming in .Net so something that will interop with that would be handy. Thanks in advance.
...
I have the following scrap of code to test MSMQ acknowledgments:
static void Main(string[] args)
{
string queuePath = args[0];
string ackQueuePath = args[1];
MessageQueue queue = new MessageQueue(queuePath);
MessageQueue ackQueue = new MessageQueue(ackQueuePath);
Message message = new Message("Body text");
message.Label = ...
VB.net seem to place my database file into /userprofile/local settings/apps/2.0/data/random/random/appname/data/ folder.
Can I define easier location for my published app. I am also worried that when upgrading this database is ignored or something bad happens?
...
Is there a way to tell what x/y coordinates were clicked in a FORMS application?
...
What are my options to allow local reporting in my environment? I have an existing central reporting services already working that they access through the web. I now need to offer those same reports on there local machine.
What are the local reporting options? Each local machine has SQL Express 2005 running on it. Would I have to ...
hi,
I am setting up a web service and i'm unsure about the most efficient design..
The web service is going to be called to populate a remote website with a list of people and their associated information. So, in the database there will be a "Person" table, then other tables for nicknames, addresses, phone numbers, etc. There may be ...
Hi,
we have a bunch of application which rely on configuration files; these files nowadwys reside in the same folder of the application, so (e.g.)
C:\Program Files\OurCompany\OurApplication
I understand this is the wrong folder where to store config files; where should we store these files:
- allowing end users to change their confi...