.net

Validating Email Address Component or Service - .NET

We are looking to improve our marketing email list by preventing fake emails from entering in the first place. We want to confirm that an email address exists (and that there is actually a mailbox for that email address). Does anyone know of any services or components to validate an email address? ...

Compact Framework - any implementation of the Image.FromStream (Stream, Boolean, Boolean) ?

In a .NET CF application I wrote, one of the features is to acquire frames from remote cameras. Frames are acquired as single jpeg images and displayed on the screen when available. It was a good enough solution, but I don't like the fact that the time needed to convert the stream into an Image object, with the Bitmap() constructor, is ...

Can a Base64 String contain tabs?

Simple yes or no question, and I'm 90% sure that it is no... but I'm not sure. Can a Base64 string contain tabs? ...

Changing a ListBox selection changes other ListBox's selection. What's going on?

I've got a Windows Forms application with two ListBox controls on the same form. They both have their SelectionMode set to 'MultiExtended'. When I change the selection of one the selection of the other changes. Now I thought I'd done something stupid with my SelectedIndexChanged handlers so I removed them and re-wrote them from scratc...

How do I extend the client's timeout on making a .NET web service post?

I am making a post from a .NET console app to a .NET web service. I know that the timeout on the server side is 20 min, but if my client takes more than 100 seconds to post my data to that service then I get a timeout exception. How would I tell my client to wait the available 20 min to timeout? ...

[C#] how do I implement a completely custom draggable control?

I work on an application that requires some fancy custom controls. Inheriting from the .net Control class has caused various problems and is making things harder as time goes on. I won't get into the specifics here, but I am creating my own light weight control architecture to avoid some of these problems. Things art working nicely, b...

How to spawn a process and capture its STDOUT in .NET?

I need to spawn a child process that is a console application, and capture its output. I wrote up the following code for a method: string retMessage = String.Empty; ProcessStartInfo startInfo = new ProcessStartInfo(); Process p = new Process(); startInfo.CreateNoWindow = true; startInfo.Redirect...

Using MSBuild to publish webservices

How do I publish a Web Service to a server with MSBuild? ...

DataGridView: how to focus the whole row instead of a single cell?

I'd like to use the DataGridView control as a list with columns. Sort of like ListView in Details mode but I want to keep the DataGridView flexibility. ListView (with Details view and FullRowSelect enabled) highlights the whole line and shows the focus mark around the whole line: DataGridView (with SelectionMode = FullRowSelect) displ...

Developing WPF app - any way to optimize .NET install?

I'd love to use WPF for a consumer app. However, some real world tests are not very encouraging. On several high-end computers I've tested, the .NET 3.5 installation has taken 15-20 mins to complete. I've seen reports online mentioning 50 mins. When Vista marketshare is at 70%, this subject will be moot. Until then, reality is that the ...

Reading Excel in .NET, how to get row number?

Hi, I have got this code to read an Excel file using C# .NET (from http://davidhayden.com/blog/dave/archive/2006/05/26/2973.aspx) string connectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=Book1.xls;Extended Properties=""Excel 8.0;HDR=YES;"""; DbProviderFactory factory = DbProviderFactories.GetFactory("System.Data.OleDb"...

Resolving 'Environment.SpecialFolder.Personal' when Folder Redirection is active

Our Windows Forms application by default saves data files in a user's 'My Documents' folder (on XP) or 'Documents' folder (on Vista). We look up this location by calling: Environment.GetFolderPath( Environment.SpecialFolder.Personal ) We know for sure this works great for users whose personal folder is on a local disk. What we're not ...

Alternative to StyleCop for Visual Studio?

I like StyleCop's static code analysis and rules enforcement. However, it is severely lacking in several key departments. Adding new rules isn't officially supported and from what I hear pretty difficult. Automatic "fixing" of trivial rules violations would be nice! Perhaps not with variable naming but with method ordering (static,...

Useful new .net(3.0,4.0) technology features.

Previously it was .net 2.0 which is the big change in .net developement. many developers are working mostly on this. Presently microsoft has introduced .net 3.0 and yet its next version .net 4.0. So the next version is going to be major change in .net development. I have listed some features of this... Workflow foundation WPF WCF Windo...

WCF Duplex Service and TCP Port Exhaustion

I am trying to wrap my head around this. I am making a business specific messaging application, it is going to connect between 5000 and 10,000 machines back to our datacenter via WCF (no vpns, all over the net). It is mainly for alerts and I need to be able to send message direclty to specific clients, and WCF allows me to do all of thi...

unable to post a https WebRequest in .net?

Hi i am encountering problems trying to post a WebRequest under Https. i received the following errors 1.-The underlying connection was closed: Unable to connect to the remote server. 2.-the operation TimeOut 3-The underlying connection was closed: Could not establish secure channel for SSL/TLS. i tried with about 3 or 4 different ...

Code in any language (.NET preffered) to edit and create settings for PPPoE connections in Windows XP

Pretty all in question... I'm looking for batch script, code or library which allows to edit and create settings for PPPoE connections in windows when hardware and infrastructure is already present. Also I'm looking for script/code to change active connection. .NET is preffered, but any other language will do as well. Thanks in advance...

Where is "CDO.Appointment"

Hello . I'm using VB .NET 2005 and Exchange Server 2003 installed I have found some code which gives me the ability to connect in an Exchange Server and create an appointment. The thing is that I cannot find the CDO. Appointment. Where can I find it and make the below code to work ? I have tried all the examples with CDO and Outlook. I ...

Does the .Net run-time compiler support C# 3.0?

It looks like the run-time compiler doesn't support the same language as the command-line compiler so if you want to use lambda expressions, extensions methods or LINQ, well, you're stuck. There's more detail here: http://metadatalabs.com/blog/ Is this correct or is there a work-around? (Short of spawning the command-line compiler, o...

Is there a slim reader/writer lock for .NET 2.0?

I've looked at the ReaderWriterLock in .NET 2.0 and the ReaderWriterLockSlim in .NET 3.5, and the slim version doesn't use kernel objects for the locking. For my context, which can potentially generate a large (but not huge) amount of objects, this sounds better. But the code I write needs to be used in both .NET 2.0 and 3.5 during a tr...