Blue Blip

Thoughts Technologies Ramblings Learning & Sharing

Browse by Tags

All Tags » C# » .NET (RSS)
Getting the IP Address of the DNS Server(s)
Yesterday, I came across a question in one of the .NET newsgroups asking how to get the IP address of the DNS servers available in the network. Though there is no direct way of getting this information (yet, at least to my knowledge) via .NET 2.0 class...
Posted: Jun 18 2007, 05:39 AM by Siva M | with no comments
Filed under: , ,
Storing Application-wide Data in WPF
It is very common in Windows applications to store application-wide data such as database connection strings, application title and folder path,etc that should be available for the duration of the application instance. The general strategy for storing...
Posted: May 11 2007, 12:29 AM by Siva M | with no comments
Filed under: , ,
Changing Log On Credentials of Windows Services
There was a question from an internal group asking for a way to programmatically change the log on name (and of course password) of a Windows service - this is the user account, local or domain, under which the service process runs when started. Unfortunately...
Posted: Apr 19 2007, 05:19 AM by Siva M | with no comments
Filed under: ,
Impersonating Network Share (UNC) Path Access
One of the features of the ASP.NET application that I am currently working on requires copying dynamically generated files to a network share path. As guessed(!), the user identity of the ASP.NET worker process (IIS application pool, in case of Windows...
Posted: Mar 01 2007, 06:22 AM by Siva M | with no comments
Filed under: , ,
Profiling .NET Code with StopWatch
One of the new diagnostics tools introduced in .NET 2.0 is the System.Diagnostics.StopWatch class. It lets you time your code with simplest profiling code possible! And I use this class very regularly during my development/desting. I use it especially...
Posted: Oct 09 2006, 05:15 PM by Siva M | with no comments
Filed under: ,
Switch Internet Explorer to Offline Mode
I saw a newsgroup post today asking about programmatically (.NET way) switching Internet Explorer to offline mode (checking IE's File | Work Offline menu item). I posted a small C# code that accomplishes this to the newsgroup. Thought would make a blog...
Posted: Oct 04 2006, 09:48 PM by Siva M | with 1 comment(s)
Filed under: ,
Getting Windows Process Owner Name
The System.Diagnostics.Process class gives almost every data about a running process. But, the most-wanted information it doesn't give about a process is the process owner name. And I ran across a situation recently that asked for the same thing - here...
Posted: Oct 02 2006, 11:24 PM by Siva M | with 8 comment(s)
Filed under: ,
Tablet PC App Development
I was recently tasked with developing a utility for Tablet PC - this utility will let users sign using pen/ink and store the signature as an image file. Trust me, I have not even touched a tablet PC before (shameful!) and thinking about writing a utility...
Posted: Aug 03 2006, 10:17 AM by Siva M | with no comments
Filed under: ,