C# loop - break vs. continue * Cinema Guy 14:49 Add Comment Edit Question In a C# (feel free to answer for other languages) loop, what's the difference between break and continue as a means to leave th... Read More
How to access .Net element on Master page from a Content page? * Cinema Guy 14:39 Add Comment Edit Question Is it possible to access an element on a Master page from the page loaded within the ContentPlaceHolder for the master? I have... Read More
Why are unsigned int's not CLS compliant? * Cinema Guy 12:55 Add Comment Edit Question Why are unsigned integers not CLS compliant? I am starting to think the type specification is just for performance and not for c... Read More
Why is Array.Length an int, and not an uint * Cinema Guy 12:34 Add Comment Edit Question Why is Array.Length an int, and not an uint. This bothers me (just a bit), because a length value can never by negative. This ... Read More
How do I make event callbacks into my win forms thread safe? * Cinema Guy 10:32 Add Comment Edit Question When you subscribe to an event on an object from within a form, you are essentially handing over control of your callback method to... Read More
Genealogy Tree Control * Cinema Guy 06:15 Add Comment Edit Question I've been tasked (by my wife) with creating a program to allow her to track the family trees on both sides of our family. Do... Read More
WCF Service - Backward compatibility issue * Cinema Guy 05:48 Add Comment Edit Question I'm just getting into creating some WCF services, but I have a requirement to make them backward compatible for legacy (.NET 1.... Read More
Binary patch-generation in C# * Cinema Guy 05:22 Add Comment Edit Question Does anyone have, or know of, a binary patch generation algorithm implementation in C#? Basically, compare two files (designated... Read More
Tab Escape Character? * Cinema Guy 02:28 Add Comment Edit Question I'm just in the process of parsing some text and can't remember what the escape character is for a tab in C#? Answer Easy... Read More
When do Request.Params and Request.Form differ? * Cinema Guy 22:40 Add Comment Edit Question I recently encountered a problem where a value was null if accessed with Request.Form but fine if retrieved with Request.Params. W... Read More
The imported project "C:\Microsoft.CSharp.targets" was not found * Cinema Guy 22:08 Add Comment Edit Question I got this error today when trying to open a Visual Studio 2008 project in Visual Studio 2005: The imported project ... Read More
Print a Winform/visual element * Cinema Guy 13:58 Add Comment Edit Question All the articles I've found via google are either obsolete or contradict one another. What's the easiest way to print a ... Read More
C# logic order and compiler behavior * Cinema Guy 13:30 Add Comment Edit Question In C#, (and feel free to answer for other languages), what order does the runtime evaluate a logic statement? Example: DataTa... Read More
When to use an extension method with lambda over LINQtoObjects to filter a collection? * Cinema Guy 12:23 Add Comment Edit Question I am prototyping some C# 3 collection filters and came across this. I have a collection of products: public class MyProduct { ... Read More
How Do I Post and then redirect to an external URL from ASP.Net? * Cinema Guy 12:13 Add Comment Edit Question ASP.Net server side controls postback to their own page. This makes cases where you want to redirect a user to an external page, b... Read More
How to make a button appear as if it is pressed? * Cinema Guy 09:21 Add Comment Edit Question Using VS2008, C#, .Net 2 and Winforms how can I make a regular Button look "pressed"? Imagine this button is an on/off s... Read More
C# and Arrow Keys * Cinema Guy 08:23 Add Comment Edit Question I am new to C# and am doing some work in an existing application. I have a DirectX viewport that has components in it that I want t... Read More
How do you resolve a domain name to an IP address with .NET/C#? * Cinema Guy 07:57 Add Comment Edit Question How do you resolve a domain name to an IP address with .NET/C#? Answer using System.Net; foreach (IPAddress address in Dns.GetHost... Read More
Should the folders in a solution match the namespace? * Cinema Guy 05:53 Add Comment Edit Question Should the folders in a solution match the namespace? In one of my teams projects, we have a class library that has many sub-fol... Read More
How can I read the properties of a C# class dynamically? * Cinema Guy 05:26 Add Comment Edit Question I can do an eval("something()"); to execute the code dynamically in JavaScript. Is there a way for me to do the same thi... Read More