In this article, I will show you how to use cascading combo boxes in windows application using C#.
We take two combo box, bind and cascade it. Initial chamber Step 1: Open Visual Studio 2010, Go to File, New, Projects, then under Visual C# select Windows. You can change the name of the project and browse your project to different location too. And then press OK. Step 2: In Solution Explorer you get your Project, Add Service Based Database. By going to your project right click and Add New Item - Service Based Database. Database chamber Step 3: Get to your Database [Database.mdf], we will create two table - tbl_country and tbl_state. Go to the database.mdf, Table and Add New table. Design your table like the following: Tbl_country: Tbl_state: Design chamber Step 4: Now open your Form1.cs [Design] file, where we create our design for Cascading ComboBox. We will drag two ComboBox from the tool box to Form1.cs [Design], you will see your Form look like this. Form1.cs [Design]: Code chamber Right click on the blank part of Form1.cs, View Code. You will see you are entered in the code part of the form. Write the following code and then Press F5 to run the project.
Node Js and Angular CheatSheet