Tag Archives: DotNet

Adding markers to Google Maps from database using ASP.NET

Introduction Here, I will explain how to add markers to Google Maps from SQL Server database using ASP.NET Description Here first we will create a table “Locations” in the SQL Server database to store latitude and longitude of the places to which we want to add markers Step 1: Create table as following [code language=”sql”]… Read More »

Using single event handler for multiple control’s event in Windows Forms and ASP.NET using C#, VB.NET

Introduction: In this post I will explain how to use single event handler for click event of multiple Button controls in Windows Forms and ASP.NET using C# and VB.NET Description: Event handling in Windows Forms Create a new Windows Forms application and four buttons on the form, “btnAdd”, “btnSubtract”, “btnMultiply” and “btnDivide”. Write following event… Read More »

Adding dependencies to a setup project

In this article I will explain how add dependencies or prerequisites to a setup project Introduction A project we create may be dependent on some other software to work properly. We can add dependencies or prerequisites to these software components in our setup project to ensure availability of the required pre installation software. For example… Read More »

How to store user’s preferences in a Windows Forms application

Download Source Code In this post let’s see how to store user’s preferences in a Windows Forms application Introduction In this post we will see how to store user’s preferences in a Windows Forms application that persists even after closing the application. Here, we will give users an option to select font and background color… Read More »

How to play flash in Windows Forms application using C#

Download Source Code Introduction In this article we will see how to play a flash (.swf) file in Windows Forms application Description We have generally two methods for playing a flash animation in a Windows Forms application: Using COM component, Shockwave Flash Object Playing flash inside a WebBrowser control Method 1: Step 1: Create a… Read More »

How to get directions using Bing Maps Directions module in ASP.NET

Download Source Code Introduction In this post we will see how to calculate route between two places on Bing map in ASP.NET Description We will use Bing Maps V7 SDK to load map and calculate directions between two locations. First we will store latitude and longitude of some cities in the SQL Server database. Then… Read More »

How to add rows and columns to a WPF Grid programmatically

Introduction In this post we will see how to add rows and columns to a Grid in WPF programmatically using code behind. After adding rows and columns to the Grid, we will add some Buttons to it. We will set background of these buttons to random colors using RandomColor class created in my last article… Read More »

Creating charts in ASP.NET using Google Chart Tools

In this article I will explain how to create charts in ASP.NET using Google Chart Tools Download Source Code Introduction In this article let’s see how to create charts in ASP.NET using Google Chart Tools. Here we will see what are the various types of charts we can create using Google Chart. Google Chart Tools… Read More »

How to get class information using .NET Reflection

In this article I will explain how to get properties, methods and events of class using .NET Reflection Download Introduction In this article we will see how to get class or type information of all the types inside System.Windows.Forms assembly. We will list all the properties, methods, and events of the selected class. We will… Read More »

Custom Paging in ASP.NET GridView control with AJAX using ObjectDataSource control

Download source code In this article I will explain how to do custom paging in ASP.NET GridView control with AJAX using ObjectDataSource control Introduction In this article we will see how to enable custom paging in ASP.NET GridView control using ObjectDataSource control. We will also enable AJAX to avoid post back after navigation through paging.… Read More »