I have used timer many times in Windows Form Application. It’s a simple control that is easy to use and implement. Lately, I was working on a Windows Service where there was a requirement of implementing a periodic job. The timer available in Windows Form is located in System.Windows.Form namespace which is definitely not available … Read more Trigger a Timer Event at the Specific time of the Day in a Windows Service
There was a requirement to implement a textbox with a databound AutoComple feature. As the Autocomplete source was a database, I have to go for a custom DataSource. The main requirements for an auto-complete textbox (in this scenario) are: AutoCompleteMode is set to Suggest(or SuggestAppend). AutoCompleteSource is set to CustomSource AutoCompleteCustomSource is set AutoCompleteStringCollection. A … Read more AutoCompleteCustomSource – Specified Cast is Not Valid
I had my ASP.NET 2.0 application hosted on Windows 2003 Sever with IIS 6.0. After Visual Studio 2010 or more precisely after .NET Framework 4.0, I upgraded the desktop modules to 4.0 (version 3.0 and 3.5 are superset, not the framework). The transition of desktop application from 2.0 to 4.0 was smooth enough. Although there … Read more Deploying .NET 4.0 Application on IIS 6.0
Pop quiz: What’s the difference between these three declarations? And, more importantly, when should you use each one? private const int _Millenium = 2000; private static readonly DateTime _classCreation = DateTime.Now; private readonly DateTime _InstanceTime = DateTime.Now; The first creates a compile-time constant, the second creates a run-time class constant, and the third creates a … Read more Constansts in C#: const VS readonly
Address: www.pinvoke.net Its an excellent site which explain the use of WIN32 DLLs in .NET code ( C# or VB). or How to Provide a managed wrapper for an unmannaged code.