While writing a custom paint routine you may come across a strange phenomenon where some of the controls on the Winforms are not painting correctly or even appearing at times. This is usually due to Control.Invalidate() being called recursively, and the API tries to keep on painting what is important and defers the painting of […]
The Olympics has become detrimental on society as a whole. Do not fall further for its marketing gimmicks. To me, the whole idea of patriotism and representation in Olympics (as it is now) is simply dellusional. Feeling proud of winners who represent our country?
Found a nice todo list: http://www.indiangeek.net/wp-content/uploads/Programmer%20competency%20matrix.htm
One of the biggest problem with Flash Player 9 AS3 is that it doesn’t take initiative in cleaning up its mess and you always have to tell it what to do and even so, they do not do it promptly. If the mess doesn’t affect us, we can easy just turn a blind eye to […]
I ran into a struggle choosing between interface and an abstract class, and finally solved it with something I already knew but seriously overlooked until the good folks at stackoverflow.com reminded me.
There are 2 general types of objects that will use an interface. (1) an object that provides services (2) a newbie object that wants to get along well and integrate with existing objects.
NOTE: This post is written in the context of Excel, but it is the same for all Office VSTO. Application level VSTO load sequence is triggered when the associated Office application starts. The Application looks into the registry under the key: HKCU\Software\Microsoft\Office\Excel\Addins\[Addin Name]\Manifest Workbook level VSTO load sequence is triggered by opening a workbook. The […]
When using WCF + Windows Service + net.Tcp binding, ServiceBehavior > ServiceMeta > HttpGet must be set to false. It normally defaults to true when first created in WCF Configuration Editor. The fastest way to get rid of it is to edit the App.config XML directly, deleting the related <serviceMeta> tag.
To make remote desktop to go full screen on a secondary monitor, the remote desktop connection dialog should be placed over the secondary monitor and the the tab page for display under advance settings should be made active. When active, the tab page detects the screen resoultion of the monitor it is current placed over […]
If an application or DLL is compiled to in a .NET runtime vresion and references another DLL which is in another .NET runtime version, then it may cause an exception stating that the application is unabled to load DLL in mixed runtime mode. The solution is to have an app.config file (athough I think there […]