We are writing a contact syncing application for Outlook using .Net 3.0. We're using "Microsoft Outlook 12.0 Object Library" or Microsoft.Office.Interop.Outlook;
We notice when we call:
ApplicationClass app = new Microsoft.Office.Interop.Outlook.ApplicationClass();
It will start Outlook if the user does not have it open. But if the...
The documentation for RegisterWaitForSingleObject says
Using a Mutex for waitObject does not
provide mutual exclusion for the
callbacks because the underlying Win32
API uses the default WT_EXECUTEDEFAULT
flag, so each callback is dispatched
on a separate thread pool thread.
Instead of a Mutex, use a Semaphore
with a max...
Hi!
I have a source where dates comes in this string form:
Sat Sep 22 13:15:03 2018
Is there any easy way I can parse that as a datetime in C#? I've tried with DateTime.(Try)Parse, but it doesn't seem to recognize this specific format...
...
I would like to have in my repository as tagged or submodules the different versions of .NET like is possible with other external products nunit, ninject, rhinomocks.
ProjectX is created with .NET 3.0 and nunit 2.4.x
Projecty is created with .NET 3.5 and nunit 2.5.x
Project Z is created with .NET 4.0B2 and a preproduction release of nuni...
Does anyone know how to get number (or currency) format string (like "###,###,##0.00) from .NET NumberFormatInfo class? My research so far says that it should be constructed manually from the NumberFormatInfo class, but it sounds strange to me that Microsoft (or anyone else) didn't write anything for that purpose, so far.
...
var store = new FMP.AspNetJsonStore({
fields: [
{ name: 'AssetID' },
{ name: 'AssociationID' },
{ name: 'Image' },
{ name: 'StatusName' },
{ name: 'ModelName' },
{ name: 'IPAddress' },
{ name: 'InScope', type: 'boolean' },
...
Does the net.p2p protocol allow peers to connect over the Internet (through NAT, Firewall, etc).
I understand that PNRP addresses this (thats fine if your using ipV6) but can this also be done when using a custom resolver? ie: when a peer registers in the cloud, does it just get back net.p2p://mypcName/endPoint or does the resolver/PNR...
Related:
Storing Images in DB - Yea or Nay?
After reading the above question, it seems the preferred method for image storage with databases is to store only the filepath within the database. However, most of these answers seem to focus on web servers.
In my case, I'm developing a desktop application that will be used across mult...
I am trying to use System.ComponentModel.TypeConverter to cast a bunch of System.Strings to different types. These Strings may or may not be in a valid format for the TypeConverter, so I'd like to find a way to check their validity before attempting the type conversion (to avoid having to rely on catching a System.FormatException to indi...
What is the best solution for not being able to use data binding on a ValidationRule property since ValiationRule is not a DependencyObject?
Below is an example of what I would like to do. I want to be able to validate the text in the TextBox against some other DependencyProperty.
<TextBox Name="myTextBox">
<TextBox.Text>
<...
We have an application running as a Windows service on a production server. The application is partitioned into several assemblies mostly on deployment boundaries. I would like to streamline the deployment of hot-fixes to application assemblies. Currently I do the following steps to deploy a hot fix. (we have a duplicate of the productio...
Under most Unixes and Posix conforming operating systems performing an open() operating system call with the O_APPEND indicates to the OS that writes are to be atomic append and write operations. With this behavior,for local filesystems when you do a write, you know it get appended to the end of the file.
The Windows operating systems s...
I recently found out about the Linq To Sql Visualizer for Visual Studio. Are there any other useful visualizers out there?
...
Hello,
I have a deployed web application project that references my Utility.dll class library. I want to make a change to the Utlity.dll and roll only that .dll out. The problem is that when I do that, I get the following error when I try to launch my site:
Could not load file or assembly 'Utility, Version=1.0.0.0, Culture=neutral, Pu...
Is it possible to get the parameter name (where I have parmName below)?
Or perhaps in the MSIL code there are only relative positions, no absolute parm names?
I have an unusualy case using HIP within Microsoft Host Integration Server. When fields are NULL and the error goes back to CICS (on the mainframe), the error is "A CALL TO VERI...
We have a small framework written in C# .Net 2.0 that we want to expose to COM.
Problem is, we have some generic classes that would be exposed as the following:
interface IOurClass
{
ReadonlyCollection<IOurListObject> OurCollection
{
get;
}
}
interface IOurListObject
{
//Some properties that don't matter
}
What is the be...
I have an ASP.NET application where only users authenticated by Windows (i.e. logged on user) have access to most pages. Now, my client wants to be able to 'log on' through this app, with a custom login dialogue/page.
Is Authentication the way to achieve this, and how do I go about it?
...
I have a .NET assembly which has defined a type T at compile time, and I have instantiated an object my_t as an instance of this type.
I am wondering if it is possible in .NET to use the runtime compiler services to re-compile this class, then load the new class definition into the currently executing assembly, so when I call methods of...
While trying to write a custom control I've come across a problem with the System.Windows.Forms.TextFormatFlags enum in combination with the Visual Studio (2005/2008) editor. The reason for this problem seems to come from the fact that this enum has multiple members which map to a zero value. Selecting any of these members (GlyphOverhang...
When you call System.Globalization.DateTimeFormatInfo.CurrentInfo.MonthNames you get a list of Month Names based on the current culture. If I change the current thread culture to a different one I should be able to get the month names back in that language. This seems to be working for French, but not for Japanese. What do I need to do s...