Blog Archives for category Programming

WMI ‘Access Denied ‘ on remote computer

In my current project, I would like to monitor windows 2008 servers remotely and planned to use WMI. While my… Continue reading »

How to find Datasource from Connection String?

Recently, I stumbled upon request to show data source property from Connection String to the end user. While, we can… Continue reading »

Restore Windows State from minimized to previous state

To restore windows state from minimized to previous state, use the following SendMessage(docView.Handle, WM_SYSCOMMAND, SC_RESTORE, 0);  

How to: Change an Assembly Name (Visual Basic, C#)

The Assembly Name property of an application determines the name that will be used for the compiled application. For example,… Continue reading »

Get Last Modified File from Folder

Here is sample code to get last modified file from folder Dim directory As DirectoryInfo = New DirectoryInfo(“C:\Temp”)Dim filter As… Continue reading »