Question: The following code gives different output when running the release inside Visual Studio, and running the release outside Visual Studio. I’m using Visual Studio 2008 and targeting .NET 3.5. I’ve also tried .NET 3.5 SP1. When running outside Visual ...

Question: What I have is an object that has an IsReadOnly property. If this property is true, I would like to set the IsEnabled property on a Button, ( for example ), to false. I would like to believe that ...

Question: I have a WCF Service which returns 1000 records from database to the client. I have an ASP.NET WCF client (I have added service reference in asp.net web application project to consume WCF). I get the following message when ...

Question: Is there any easy LINQ expression to concatenate my entire List<string> collection items to a single string with a delimiter character? What if the collection is of custom objects instead of string? Imagine I need to concatenate on object.Name. ...

Question: in the System.Linq namespace, we can now extend our IEnumerable’s to have the Any() and Count() extension methods. I was told recently that if i want to check that a collection contains 1 or more items inside it, I ...

Question: What is the prefered method for creating a byte array from an input stream? Here is my current solution with .NET 3.5. Is it still a better idea to read and write chunks of the stream? Best Answer: It ...

Question: I am playing with LINQ to learn about it, but I can’t figure out how to use Distinct when I do not have a simple list (a simple list of integers is pretty easy to do, this is not ...

Question: I want to get Windows UpTime like the picture below I am using NetFrameWork 3 I use this code to display UpTime for Windows But what I receive is fixed and does not update itself I want to change ...

Question: I am creating an app which needs to use the Visual State Manager, but when I want to use it, I get the following error: Visual State Manager is not supported in a WPF application. I tried to use ...

Question: We’ve just migrated our VS2019 dev environments for a large (~700 kloc) legacy Windows Forms application, from .NET 3.5 to .NET 4.7.2, and tripped over a problem with one windows form only, on which two very odd issues have ...