.net

How do you recursively call tasks in MSBuild ?

E.g. I want to call these scripts passing diff params each time: <ItemGroup> <SqlFiles Include="$(SourceServicesDbSqlRootDir)CreateScripts\$(SourceServiceName)\Tables\*.sql" /> <SqlFiles Include="$(SourceServicesDbSqlRootDir)CreateScripts\$(SourceServiceName)\Functions\*.sql" /> <SqlFiles Include="$(SourceSe...

Fastest method of communication with a Windows service

We are running a service that requires fast communication with another process. Currently we are using WCF NetNamedPipeBinding in buffered mode to invoke methods in the service, which seems to offer the least overhead of the available WCF bindings. Is there a faster way to do this using managed code? Edit: Bunching requests as suggested...

Is F# a usable language for .net windows development

I have been hearing about F# and Microsoft now have a guy who is blogging and coding away in redmond somewhere about it. Can you really write GUI code from F# (I'd love to see an example of say adding a button to a form and subscribing to the onclick event for instance) Does F# have full access to all of .Net? I'm honestly curious and...

Memory consumption details of a .NET application

I am debugging some memory problems related to a managed application that we have. I was monitoring the application using perfmon when I got confused about the memory difference between the .NET Bytes in All Heaps and the Working Set reported in Process Explorer (Mem Usage column in case of Task Manager). The Bytes in all heaps counter d...

How do I convert a path with a drive letter to a UNC path

How do I convert a path with a drive letter like W:\Path\Share to the equivalent unc path like \\server\Share\File in .Net? At the command prompt you can run net use and that will list the mappings. How do I get at that info in .Net? ...

Delaying the sending of emails in C#

We are writing a feature to send a reminder email to customers in x number of days and just wondered if it was possible to delay the sending of the emails similar to how you can in Outlook (New Mail > Options button > Do not deliver before) in C#. Does anyone know of a way of doing this? Thanks for your help. ...

WCF: DataMember attribute on property vs. member

In wcf, what is the difference between applying the DataMember attribute on a property private int m_SomeValue; [DataMember] public int SomeValue { get {...} set {...} } instead of a member variable [DataMember] private int m_SomeValue; public int SomeValue { get {...} set {...} } ? ...

Trouble with Ajax toolkit CalendarExtender Crashes IE6

Hello I have a weird problem with the CalandarExtender on my web project. When someone click on the little calandar icon IE6 crash! I think i properly implemented it <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> [...] <asp:TextBox ID="txtDateDebut" runat="server" CssClass="TextBox"><...

Track messages though Windows Live Messenger

Hi, I would like to track messages sent and received though Windows Live Messenger. I would then like to collate these messages into a database (not in the scope of this question). The question is how and where should I track these messages. The simplest way it to force all clients to keep history files and read those, but it is not re...

How do I display an XML document in a .Net web browser control?

I have an XML document and a CSS file that goes with it, which includes the page formatting style (both exported from Adobe Framemaker). I would like to import this data and display portions of the XML document in a web browser control with in Windows Forms or WPF. It's not clear to me how do make all of this work together. Any suggesti...

Testing transactional code

Hello, I'm writing my own transaction-aware (IEnlistmentNotification) piece of code and am trying to test it using XUnit. All I need is to wait the transaction commited and test the outcome is what I expect. The thing is that transaction commitment happens in a separate thread, so I need to synchronize my test and piece of code I'm test...

.NET + COM changed keyboard routing behavior

Hi all! I have a problem so strange that I hardly can put an adequate title to it. In short: I have COM object written in MSVC++/MFC with a dialog derived from CDialog. On that dialog I have three child "user controls" - windows derived from plain CWnd. When I use this COM object from a variety of places, everyhing works as I expect. ...

Converting a large MFC app to .net

We have a decent size MFC MDI desktop app. Is there a reasonable way to convert a MFC app to a .net app or is it better to just rewrite? If the answer is app specific, what criteria do you use to make the decision? ...

Where can I find an ICQ library for C#?

Is there any (preferably native) C# library which allows me to send some messages via the ICQ protocol? Is there something better than just wrapping libgaim or something? ...

How to debug .net Garbage Collection?

Is it possible to have a look at all .net objects which are collected upon calling GC.Collect()? I need to see what objects are still in memory and not reclaimed, so I can find where reclaiming the objects should have done manual, but was forgotten by the programmer. I don't want to call GC.Collect because someone somewhere forgot to di...

Stick with MFC or go to .Net

We have a largish MFC app that is our main product. This app is being actively developed and there are no plans to stop development. I am new to windows development, but I get the impression that MFC is dead and all the new growth and enhancements are in .net. Is this view accurate? What criteria should we consider when deciding if w...

Embedding publisher policy into assembly

Hello there, I'm developing a shared assembly, version 2.0.0.0. For future compatibility, I'd like to bind all the 2.0.x.x versions to the latest version installed. To do so I need a publisher policy file. Is there a way to embed the publisher policy directly in the "code" assembly instead of having to install two different assemblies? ...

ListView's DragEnter, DragOver, DragDrop event not raised (AllowDrop=True)

Hi all. This one is very weird: My app works just fine, but suddenly the damn ListView control's events are not raised any more. It just comes and goes without any clear reason. (Obviously) I've set the AllowDrop property to True and handled the DragEnter, DragOver and DragDrop events as follows: Private Sub lstApplications_DragDrop(B...

C# generic list <T> how to get the type of T?

Hello, Let say I have a List< T > abc = new List< T >; inside a class public class MyClass<T>//.... Later, when I initialize the class the T because MyTypeObject1. So I have a generic list of List< MyTypeObject1 >. I would like to know, what type of object the list of my class contain. Example, the list called abc contain what type of...

Nested jQuery Cycle ?

Hi, I am trying to build a slide show with jQuery cycle plug in. In the slide show there are contents and inside the contents there is basic image gallery. Timeout of cycle which image gallery uses is fewer than the contents timeout. So content waits for 15 second and the image gallery will have 5 pics with 3 seconds timeout which make...