April 2004 - Posts

Why did I receive the error: "The type or namespace '<namespace name>' does not exist in the class or namespace '<parent namespace>' (are you missing an assembly reference?)"
29 April 04 09:09 AM
You need to add a reference in your project to an assembly where that namespace is defined. If you are using VS.NET: 1. Right click on the References folder on your project. 2. Select Add Reference. 3. Select the .NET tab (or select the Browse button Read More...
Postedby CSharpFAQ | 7 Comments    
How can I subscribe to events exposed by a remoted object?
28 April 04 09:34 PM
Delegates require information about the type that the method is associated with in order to make a call. In a single app-domain, this isn't a problem, because the server (the object firing the events) has access to the type information for the client Read More...
Postedby CSharpFAQ | 3 Comments    
Filed under:
Why does my Windows Form project not use visual styles in XP even when I call Application.EnableVisualStyles?
28 April 04 09:15 PM
If you set a property on a Windows Forms control which forces the creation of the control (e.g. the SelectedIndex property on the ComboBox class), the control (and perhaps the rest of the form) will not render with visual styles enabled. The resolution Read More...
Postedby CSharpFAQ | 6 Comments    
Filed under:
Why aren't reference types polymorphic?
08 April 04 09:55 PM
Q: Why aren't reference types polymorphic? A: Consider the following code: using System; class Dog { public string Name; } class Test { public static void Swap(ref object a, ref object b) { object temp; temp = a; a = b; b = temp; } public static void Read More...
Postedby CSharpFAQ | 34 Comments    

This Blog

Syndication

Page view tracker