Saturday, January 20, 2018

Exe icon is missing in custom Build Configurations after Visual Studio build

If you add custom build configurations to your solution, make sure you manually add, for all of them, the ApplicationIcon element with the proper .ico file in the .csproj file of the main project.

  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Development|x86'">
    <ApplicationIcon>MyIcon.ico</ApplicationIcon>
  </PropertyGroup>

Wednesday, January 10, 2018

C# DateTimePicker ValueChanged event being triggered more than once, without any Value explicit assignments taking place

I spent at least an hour in investigating this issue, even adding a timer object to my form to debug.writeline the value of my datepicker objects periodically so I could have a sense of when the problem occurs.

As I noted [here], in the end my problem was with setting the MaxDate property of both parameters, to the same DateTime object. Noting this down here in case it may be of public help...

Thursday, December 21, 2017

Microsoft web architectures of the day: Web Forms vs MVC vs Web API

I was tasked today with finding out what is the best pick to convert our desktop application into a fully web based one.

Came across the 2 following links, which I found very good, where I think most of the essential topics are covered.




Wednesday, December 6, 2017

Having problems setting 2 panels in a windows form, where one is top-docked and the other fill-docked, but the fill-docked one is overflowing into the top one ?

Play with the panels "send to back" / "bring to front" (mouse right click).

Sunday, October 1, 2017

Need to open several links in Chrome at once? Try this trick

Not programming related, but figured out today something interesting:

In chrome, bookmark folders containing N links - if you click the folder with the mouse wheel button, all links inside the folder will be opened!

Good to know, if you happen to require to open a given set of links, together, once in a while.


Sunday, September 10, 2017

Task.Run, Unwrap and other .NET 4.5 additions

https://blogs.msdn.microsoft.com/pfxteam/2011/10/24/task-run-vs-task-factory-startnew

Found the Unwrap particularly interesting.