Problem : I have a generic collection of type MyImageClass, and MyImageClass has an boolean property “IsProfile”. I want to […]
Tag: .net
Why use ThreadStart?
Problem : Can somebody please clarify why we use ThreadStart? new Thread (new ThreadStart (Update)).Start(); -Versus- new Thread (Update).Start(); // […]
Set a default build configuration for project
Problem : I have several possible configurations in a Visual Studio project file. How can I specify which one is […]
Assembly.GetExecutingAssembly doesn’t exist in PCL
Problem : I set up a PCL in VB, VS2012 and set it for Profile 78 (WinRT, WinPhone8, .NET 4.5). […]
Allow multi-select in a .NET TreeView
Problem : I’m stuck in .NET 2.0 Windows Forms. It doesn’t look like the ability to select multiple nodes exists […]
Process.Start(url) broken on Windows 8/Chrome – are there alternatives?
Problem : To open a URL from a .NET application, many sites (including on StackOverflow) cite this example: Process.Start(“http://www.google.com/”); On […]
How to use Moq to mock up the StackExchange.Redis ConnectionMultiplexer class?
Problem : I am working to mock up behaviors related to the StackExchange.Redis library, but can’t figure out how to […]
Curious about the implementation of Control.Invoke()
Problem : What exactly does Control.Invoke(Delegate) do to get the delegate to run on the GUI thread? Furthermore, Its my […]
How to filter or find properties based on attributes
Problem : I have a class as follows Public Class Foo Private _Name As String <ShowInDisplay()> _ Public Property Name() […]
How can I debug a VB6 project that has a .net interop project which uses an app.config file?
Problem : I have a .net interop project that uses an app.config file. When I am running the VB6 project […]