The first things you need to note is that the treeview node needs to be selected in order for you to get any information from it. I did read some articles about using the System.Windows.Point to get the X, Y coordinates of the mouse, but I chose to go another route. Using the Point class […]
Read More →Tags: C#
Sandcastle XML documentation for Visual Studio and C#, How to install and configure Sandcastle.

I know we as programmers like to write code. However, most of the time we don’t get to start from the beginning. Most often we get to modify and enhance code that has been written by someone else. Let’s make a deal, from now on let’s document our code so we don’t have to spend […]
Read More →WPF DataGrid Navigation Paging Up Down Sideways is slow virtualization

I was developing a WPF application that allowed users to selected as many rows and as many columns that were available in the database. I dynamically built the selection criteria using reflection and a treeview. Then I traversed the treeview and dynamically built the DataGrid that contained the columns and thier values. What I quickly […]
Read More →How to connect to a database from an Azure Function using Azure Key Vault

In my original article here where I stored the database connection string in an Environment Variable which is no longer an optimal approach (it was only for example). I will now update the Azure Function to access an Azure Key Vault secret which has the database connection string and use it to make the database […]
Read More →How (I) would handle a timeout in Azure Function

I wrote this article about adding a host.json file to an Azure Function “How to add a HOST.JSON file to an Azure Function” and while I was breaking it, I saw a behavior which I didn’t expect. The behavior was that my code within the try…catch… block continued to execute after the timeout, the code […]
Read More →Beginning C# 7 Programming with Visual Studio 2017, co-author Benjamin Perkins

Beginning C# 7 Programming with Visual Studio 2017, co-author Benjamin Perkins The Beginning C# 7 Programming with Visual Studio 2017 book is now available, check it out here. I had again an opportunity to contribute some chapters to this book. What an awesome experience! There are lots of examples, experiences, discussions and reviews of the […]
Read More →How to connect to a database from an Azure Function

I created a simple Azure Function and now I want to connect it to a database. Check out these other articles as well. How to create an Azure Function in Visual Studio How to connect to a database from an Azure Function Deploy an Azure Function created from Visual Studio Check out all my Azure […]
Read More →How to create a Pie chart using ASP.Net and C#
Since .Net 4.0, we no longer need to download and install the Chart Control to get charting capabilities in ASP.Net, Window Forms or WPF. This is becuase the the Charting control is now part of .Net 4.0 itself. Although all you need to know about Charting in ASP.Net can be found here I thought I […]
Read More →How to read from and write to an app.Config or web.Config using C#

There are a number of ways you can do this. In this example I will use the ConfigurationManager libraries that are part of the .Net Framework. This group of methods and properties are created specifically for this purpose. I am a firm believer that every action we want to take as a programmer needs to […]
Read More →String vs. StringBuilder

A blog would not be complete without an article about the differences between appending or modifying a string using the String Class versus the StingBuilder class. See, strings are immutable, which means once they are created they cannot be changed. Any time you make a modification to a string, after is has been created you […]
Read More →