Top ".net" questions

Do NOT use for questions about .NET Core - use [.net-core] instead.

How to implement a property in an interface

I have interface IResourcePolicy containing the property Version. I have to implement this property which contain value, the code written …

c# .net
Setting a log file name to include current date in Log4j

I would like to set the log file name for a log4j and log4net appender to have the …

java .net logging log4net log4j
How can I make a DateTimePicker display an empty string?

I would like to be able to display a DateTimePicker that has a default value of nothing, i.e. no …

.net winforms datetimepicker
Login failed for user 'DOMAIN\MACHINENAME$'

I know this is almost a duplicate of : The error "Login failed for user 'NT AUTHORITY\IUSR'" in ASP.NET …

.net sql-server sql-server-2005 web-applications iis-6
Correct Way to Load Assembly, Find Class and Call Run() Method

Sample console program. class Program { static void Main(string[] args) { // ... code to build dll ... not written yet ... Assembly assembly = Assembly.…

c# .net reflection
DateTime.Compare how to check if a date is less than 30 days old?

I'm trying to work out if an account expires in less than 30 days. Am I using DateTime Compare correctly? if (…

c# .net datetime
Why is System.Web.Mvc not listed in Add References?

Using C#, Visual Studio 2010. There is a namespace called System.Web.Mvc documented on MSDN. The documentation for all the …

.net visual-studio assembly-references
Databinding an enum property to a ComboBox in WPF

As an example take the following code: public enum ExampleEnum { FooBar, BarFoo } public class ExampleClass : INotifyPropertyChanged { private ExampleEnum example; public …

.net wpf
Where can I find a NuGet package for upgrading to System.Web.Http v5.0.0.0?

Just upgraded an ASP.NET MVC4 project to use Unity.WebApi version 5.0.0.0 and it requires System.Web.Http v 5.0.0.0 as …

c# .net asp.net-mvc-4 nuget asp.net-web-api2
How can I set the opacity or transparency of a Panel in WinForms?

I was wondering how to change or modify the transparency of a Panel in C#, not the whole form, but …

.net winforms transparency panel opacity