There is a very significant difference between a field and property within a class. The difference is in the behaviour of the field when defined as either a static or instance. Basically, if you create 2 instances of class which has a static field, when you change the value of that field, the values in […]
Read More →Category: C# Blogs
How to stop selection change event in combo-box from firing when populating loading it
If you have ever wanted to take some action when a user changes a selection in a combo-box (drop down selection list) you would put your code in the SelectionChanged event of the WinForm or WPF system. If you have ever wanted to set the combo-box to a default value when the window is being […]
Read More →WPF Using Templates and Themes

If you are like me, your getting a little tired of the tannish green or grey color of the default WPF window. I have been seeing in magazines and on the internet some nice looking GUI’s (graphical user interface or windows) and was thinking about how I could implement or develop something like that. I […]
Read More →Localizing a WPF program using C#

See also the article about localizing an ASP.NET system here. See also my video about localizing an ASP.NET system here. These days when you are designing a GUI (Graphical User Interface) one of the many topics to discuss is that of localization. Simply, localization means that local date format, currency and language will be supported […]
Read More →Localizing an ASP.Net program using C#

See also the article about localizing a WPF system here. See also my video about localizing a WPF system here. These days when you are designing a GUI (Graphical User Interface) one of the many topics to discuss is that of localization. Simply, localization means that local date format, currency and language will be supported […]
Read More →The number 400

What is significant about the number 400? 400 is 20² 400 is divisible by: 1, 2, 4, 5, 8, 10, 16, 20, 25, 40, 50, 80, 100, 200, 400 400 equals 2⁴ * 5² or ( 2*2*2*2*5*5) 400 is a self-number which are generated by this formula: You can write 400 like this: four hundred, […]
Read More →How to securely connect to Azure from C# and run REST APIs

Three things that got me here. First, I learned about creating a Service Principle in Azure and that the credentials for that those can be used to login to Azure, for a given Tenant/Directory ID. See here “Create an Azure service principal with Azure PowerShell”, also here if you want to see how to create […]
Read More →Call a parent method from UserControl using WPF in C#
I was implementing some paging functionality in a system I was building and realized that I had created the same forward, backward, first and last buttons and logic 3 times. After doing this I realized these buttons and logic were a perfect example of where I could reduce complexity and encapsulate my code better. I […]
Read More →Server Error 0x800004005 Request timed out.

I wrote this post and this lab about the impact of having debug=true in your web.config file. The fact is, when you are running in a production environment, you do not want to have debug=true. However, I was writing a series of NETSH tracing posts: Capturing a NETSH network trace Analyze NETSH traces with Wireshark […]
Read More →How to analyze a trace taken using NETSH TRACE

I wrote article “Capture a NETSH network trace” here, where I discussed how to capture a NETSH trace, I will discuss how I analyzed it now. I wrote another here that explains how to convert the ETL into a CAP file so it can be analyzed in Wireshark or Network Monitor. “Analyze NETSH traces with […]
Read More →