How can I make my own event in C#?
Hi, How can I make my own event in C#? Thanks ...
Hi, How can I make my own event in C#? Thanks ...
I'm using a remote 3rd party storage solution that does not have support for transactions. I want to implement my own pseudo-ACIDity in .NET for this solution by simply attempting to rewrite/delete non-failing Entity inserts/update to get to an old-data-but-good-data state when other inserts/updates fail inside a transaction context. I...
Hello everyone, I want to setup a web site like Youtube to host some internal videos. I want to know whether there are any open source and .Net based projects to easy use/setup? I want to host the video by myself other than any 3rd party services for copyright reasons. :-) thanks in advance, George ...
Is there a BitTorrent client written completely (I mean completely) written in C# ? I am aware of the BitTorrent clients written in mono, I absolutely love it. Are there any other opensource BitTorrent clients other than MonoTorrent & BitSharp written in C# which is under development? Just wondering how much of an interest an "opensour...
I would like to add a semi-transparent colour over the contents of a WPF window (to indicate the state of the window). Currently I am using a UserControl that fills the Window, and I change the Background colour and Visibility as required. The problem with this method is when the UserControl is visible, I cannot click any controls (Butt...
In a smart device project I'm trying to Pinvoke a function that should supposedly be available in mscoree.dll. The associated definition is as follows: [DllImport("mscoree.dll", EntryPoint = "#29")] internal static extern int Object_GetHashCode(object obj); You'll find this with Reflector in the internal class EE in mscorlib.dll. Note...
I'm about to finish the core components of my application and I'm willing to change gears soon and do a bit of GUI programming. From the beginning I decided to write a WPF-based application for two reasons: a) I want my application to be visually stunning and 100% skineable. b) I completely suck at designing user interfaces and then som...
As part of trying to learn WCF, I am reading up on serialization. I am struggling to understand how I can control serialization in .NET 3.5. For instance, I have a simple class with a few public properties. By adding the DataContract attribute to that class, I can for instance control the namespace and the name of the class as it is seri...
So I've been reading the Expert F# book by Apress, mostly using it as a reference when building a toy-ish F# library, but there's one thing I've failed to grasp and that's the "Option" type. How does it work and what is it's real world usage? ...
I want to compress a folder using NTFS compression in .NET. I found this post, but it does not work. It throws an exception ("Invalid Parameter"). DirectoryInfo directoryInfo = new DirectoryInfo( destinationDir ); if( ( directoryInfo.Attributes & FileAttributes.Compressed ) != FileAttributes.Compressed ) { string objPath = "Win32_D...
I wonder if there is a .NET library that mimics a browser in terms of HTTP transactions. In other words I am going to make multiple GET/POST requests and I want the cookies to be persisted to a storage, so that consecutive request will be identified by the remote host. AFAIK cURL has support for this functionality. ...
I want to write a simple Outlook 2007 AddIn that allows me to manually Auto-Archive mails. That is, I right-click a mail, select Auto-Archive and it gets moved into my Archive folder. Unfortunately, I do not seem to be able to detect which one is the Archive Storage. I know that Application.GetNamespace("MAPI").Stores is a list of all m...
Working on .NET gives me good performance in general for the application itself but the initial load times for my application are quite large. A lot of it goes towards loading assemblies which is difficult to gauge. Are there any optimizations that I can apply to my assemblies to make them faster to load without involving the GAC or Ng...
I'm using xml comments to document public as well as internal and private members of my components. I would like to package the generated documentation xml files with component assemblies in order to enable "rich" (e.g. with method, exceptions and parameter descriptions) Visual Studio Intellisense with the end product. The problem with i...
Is there a tool that can scan your code and determine which objects that implement IDisposable are not being disposed in a code base at compile time or runtime? I have possible areas in the code that are not disposing objects but it's hard to look back and see which objects require this in the first place. ...
I have been looking around for some example projects or tutorials on Linq to Nhibernate. Does anyone know of any good ones? ...
Using Visual Studio 2008 I first encountered this when trying to open a standard save file dialog box in visual basic. So far I've worked around it after fruitless searching. Now I find that any action which would cause a save/open dialog (eg. ctrl-O) also fails. I've searched more and still don't know how to fix it. Stuff I do know: It...
Hi My grid view is showing the details as per the search button.But I want the latest Date row ,to be colured to help the users identify the latest one.Can you please help? Iam using ASP.NET,VB.NET,SQL-2005 ...
I'm looking for a framework to simplify the creation of a website with social networking features and plenty of custom functionality. I'm quite keen to use an ORM like nHibernate or similar for data access. Would DotNetNuke be a good choice? Or are there other options which are better. Added: I'm quite keen not to have to reinvent the...
are there any particular features in one versus another that would help me decide which to purchase for a winforms app. I am looking for both memory, cpu, performance bottlenecks. ...