.net

IIS 7.5 receive emails?

In the good old days with IIS 6, it was possible to use the SEOLib to make a managed hook in the SMTP service that would run whenever a mail got delivered. In Vista and W7 they stopped shipping SEOLib, so we can no longer develop for it. What is the replacement for this functionality? ...

Show Right Click Options on the Selected List View Record Only - Winforms C#.NET

The ContextMenuStrip tied to the ListView control. However, the right click option (edit) appear where ever i click on the ListView area, this gives me exceptional error because the implementation of edit can only cope with a selected row. I only want it to appear when on a selected row (blue highlighted row). How can i do it? ...

using C# WriteDocType() to generate Apple Property List-compliant XML

I'm trying to produce an XmlDocument which has a DocType as specified in Apple's Property List (P-List) format, which should look like this: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt; <plist version="1.0"> The code I have at the momen...

parser error in aspx page(.net 2.0) after converting from website to web application

I have a website I recently converted from website to web application Project . When I compile It compiles Successfuly but when I run the code I get this error Parser Error Message: Could not load type 'DApplause.Logon'. Source Error: Line 1: <%@ Page Language="vb" AutoEventWireup="true" CodeBehind ="Logon.aspx.vb" inherits="DApp...

Converting text to bits (1's and 0's)

I'm implementing an MD-5 Hashing algorithm and I want to convert the text I have to bits so I can start manipulating them. As you know Hashing require taking block of bits and then manipulating them. There are many ways to do that but I can't determine the best/easiest way to just convert the text (string) into array of bits. Any clue ? ...

Where can I find latest (beta/ctp maybe) version of Prism and/or any quickstart for composite WPF applications with Visual Studio 2010?

All I've found about composite applications is for VS 2008. How do I start with composite WPF applications with VS 2010? Can you recommend a good intro for creating a composite WPF application from scratch with Visual Studio 2010? ...

[C#] Best practice on creating a webservice wrapper in VS2010?

Hi there, Background - We are consuming a webservice issued by a telco operator. Any apps consuming their WS needs to be tested on their staging IP, and this creates an unpredictable overheads on our project timeline as the turnaround time of the operator varies case by case but usually long, without mentioning the red tapes one has to ...

Binding menu items to a sitemap.

Hello all..this is driving me nuts. I have a navigation menu I would like to display based upon user roles (using.net membership) After several hours and headaches (from banging my head against the desk) I was wondering if someone can point me in the error of my ways. Page: <body> <form runat="server"> <div class="page"> ...

Why System.String beahaves like a value type? (How to write value type classes like string?)

I want to write a 'Date' class that behaves like a Value Type. for example, Instead of writing a Clone method for setting properties safely, make the Date class to pass by value: public Date Birthday { get { return this.birthday; } set { this.birthday = value.Clone(); ...

How to convert HTML to PDF

I having a website developed in .net and need to get a HTML to PDF converter. Are there any open source or alternatives to http://www.html-to-pdf.net as it is quiet expensive. ...

C# WPF MAF Add-In interaction between themselves

Hi, I would like create a very simple Paint application using MAF on WPF. The Add Ins I would like to create are: Main Image Processor - Shown the current paint and receive inputs from the user Tool Box - The user can select some types of drawings tools Layers - The user can select the layers to display, delete layers and select on ...

Learning Win32 to develop GUI Applications

if you're a c++ programmer, would you go for the Win32 API or .NET to develop GUI applications? ...

Close child form if already open

Hi All How can I go about closing a Child form if it's already open? And if it isn't already open, then open it? Thank you I already have this code, which doesn't work, obviously: Form ibx = new inbox(); if(ibx.Visible) ibx.Dispose(); else ibx.Show(); All that the above does is creates a new form whether or not it's already open. ...

Active Reports 3 new dll version binding redirects not working.

I recently made some upgrades to one of the Active Reports 3 (AR3) report DLLs that I use and I needed to use the 5.3.1436.2 (previously using 5.2.835.2). Now, this is one report dll out of 30, and I didn't want to change the references for every report dll and test them. I just did not have the time to do so. So here is what I though...

How can you tell if an an ASP.NET request is remote or from localhost?

How can you programmatically determine if an an ASP.NET request is remote or from the localhost? ...

Determine the maximum password age in Active Directory

I want to expire users' passwords on an individual basis in Microsoft Active directory at different times. I understand that each user within AD does not have it's own password expry time. Instead there is a Maximum Password Age associated with the domain, and a LastPasswordSet date associated with the user. I intend to set the LastPas...

How to enable users to edit and save a pdf within C#

I'm using c# and reading and opening pdf from sql db. My requirement is that users are able to edit and save the pdf. How can this be done? ...

Validationattribute only when value is changed?

I want to write a custom ValidationAttribute that checks if the given value is unique or not. The problem is that in the edit screen, it is not guaranteed that the user actually changed the value, resulting in a false error. Is there a way to check in my attribute whether the value actually changed? Or can I trigger the attribute onl...

Handle tab key in ToolStripComboBox

Hi, I have a ToolStripComboBox in a ToolStrip, and when I press TAB key in it, it gives focus to the next toolstrip button. I would like to change this behavior and give focus to a richtextbox on my form instead. The problem is that ToolStripComboBox does not have PreviewKeyDown event. And PreviewKeyDown of the hosting ToolStrip Toolba...

Can I programmatically determine targeted .NET framework version?

I would like to be able to display the version of the .NET framework a windows form or wpf project is targeted at and display it in the title bar of the app. Is there a way I can do this? Thanks ...