Trust Mode
In a windows shared webhost, normally, they are giving medium level of trust mode for you. Therefore, you can access some core functions such as accessing event log. In my cases, I can't call some custom assemblies. If I run asp.net web application, I will only use full trust mode.
Another free alternative of Resharper
I found another free altenative of Resharper, TytanNet. It is not bad, that is very little weight option. It got refactoring function. I like it has some shortcut to insert special data, such as class and interface.
Resharper Alternative
I believe a number of people will say Resharper is a good reflectoring tool. But that cost money! I found an alternative product, CodeRush.The express version is free of charge. But the functions are very limited, such as renaming and promote a local variable to a class variable. Yes, there are no free lunch.
Sub-window should not show in the task bar
That is a common mistake for myself. I like to create some sub-windows which are acting a dialog. I am so easy to forget set ShowInTaskbar = false.
Bolded the dates in MonthCalendar
I am writing a simple diary application. I am using a monthcalendar control to select the date to load the diary. I need the control to display the date in bolded if that date on the calendar has the data. That is easy and simple. Just using BoldedDates.
Code
List<DateTime> boldedDates = new List<DateTime>(); | |
foreach(DateTime boldedDate in entries.Keys) | |
{ | |
boldedDates.Add(boldedDate); | |
} | |
this.monthCalendar1.BoldedDates = boldedDates.ToArray(); |