.net

Debugging Designer processing in VS 2008

I have a public property set in my form of type ListE<T> where: public class ListE<T> : IList<T>, ICollection<T>, IEnumerable<T>, IList, ICollection, IEnumerable Yeah, it's a mouthful, but that's what the Designer requires for it to show up as an editable collection in the Properties window. Which it does! So, I click the little [..] ...

Developing MS Word add-in

Hi, Anyone knows of a good tool for developing add-ins for Word in .net? Hopefully something that supports both office 2003 and 2007. Thanks. ...

Can .Net 3.5 apps run on machines that have .Net 2.0 runtime installed?

I write my app in VS 2008 and so use all the fanciful stuffs such as LINQ, object initializers etc. Now can my app run on machines that have only .Net 2.0 runtime, but no .Net 3.5 runtime? .Net 3.5 runtime is a huge download, as all of you might know. ...

How does nunit work?

Can someone explain me how it works, starting from when you select to run a test ...

Local Database with Silverlight

What would be a good local database for a Silverlight application? The database's main purpose is for local data caching and synchronization services. I do not believe that SQL anywhere or SQLite will work since they use unmanaged code which will not run under the silverlight sandbox ...

Where can I find an .xsd file to provide intellisense for Castle Windsor?

I'm looking for an .xsd schema file to drop into my Visual Studio directory to provide intellisense for the xml configuration file for the Castle Windsor IoC container. I've looked in the downloaded code for Windsor, as well as googled several different ways. I see many people asking the same question, but no answers. Anyone know if ther...

Getting image dimensions without reading the entire file

Is there a cheap way to get the dimensions of an image (jpg, png, ...)? Preferably, I would like to achieve this using only the standard class library (because of hosting restrictions). I know that it should be relatively easy to read the image header and parse it myself, but it seems that something like this should be already there. Als...

How to stream binary data to standard output in .NET?

I'm trying to stream binary data to the standard output in .NET. However you can only write char using the Console class. I want to use it with redirection. Is there a way to do this? ...

Recommendations for a google finance-like interactive chart control

I need some sort of interactive chart control for my .NET-based web app. I have some wide XY charts, and the user should be able to interactively scroll and zoom into a specific window on the x axis. Something that acts similar to the google finance control would be nice, but without the need for the date labels or the news event annot...

How to configure asp.net process to run under a domain account?

I would like to configure asp.net process to run under an account with domain credentials. My requirement is to access some files on a network share. What are the steps for this? Is there any built-in account I can use? ...

How do I set the thickness of a line in VB.NET

In VB.NET I'm drawing an ellipse using some code like this. aPen = New Pen(Color.Black) g.DrawEllipse(aPen, n.boxLeft, n.boxTop, n.getWidth(), n.getHeight) But I want to set the thickness of the line. How do I do it? Is it a property of the Pen or an argument to the DrawEllipse method? (NB : For some reason, the help is VisualStud...

.Net 8-bit Encoding

I'm working on serial port, transmitting and receiving data to some hardware at 8bit data. I would like to store it as string to facilitate comparison, and preset data are stored as string or hex format in xml file. I found out that only when using Encoding.Default which is ANSI encoding then the 8bit data is converted properly and easil...

Should I prefer readonly or const?

Should I prefer the use of readonly (run time constants) or const (compile time constants)? What are the pluses and minuses of each or in what cases is one better than the other? ...

How do I name a result group in a Regex? (.Net)

Title says it all... ...

Conditions when finally does not execute in a .net try..finally block

Basically I've heard that certain conditions will cause .net to blow past the finally block. Does anyone know what those conditions are? ...

What happens on deserialization with this?

I'm currently convering my ASP.NET v2 application to serialize/deserialize it's objects because I want to shift from inproc session state to stateserver. This is because my host, webhost4life, has a nasty tendency to recycle the worker process frequently thus causing session timeouts. Anyway... the question... I'm trying to not serializ...

Unit testing a multithreaded application?

Does anyone have any advice for a consistent way to unit test a multithreaded application? I have done one application where our mock "worker threads" had a thread.sleep with a time that was specified by a public member variable. We would use this so we could set how long a particular thread would take to complete its work, then we cou...

How would you format multiple properties when using Property Initialization? (.Net)

For example: root.Nodes.Add(new TNode() { Foo1 = bar1, Foo2 = bar2, Foo3 = bar3 }); or: root.Nodes.Add(new TNode() { Foo1 = bar1, Foo2 = bar2, Foo3 = bar3 }); ...

What is the best way to improve ASP.NET/C# compilation speed?

UPDATE: Focus your answers on hardware solutions please. What hardware/tools/add-in are you using to improve ASP.NET compilation and first execution speed? We are looking at solid state hard drives to speed things up, but the prices are really high right now. I have two 7200rpm harddrives in RAID 0 right now and I'm not satisfied wit...

What is the easiest way to upgrade a large C# winforms app to WPF

I work on a large C# application (approximately 450,000 lines of code), we constantly have problems with desktop heap and GDI handle leaks. WPF solves these issues, but I don't know what is the best way to upgrade (I expect this is going to take a long time). The application has only a few forms but these can contain many different sets ...