You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$10
For Premium members:
In this article we will learn how to make a simple phone directory application.
I am going to demonstrate you how to make a simple PhoneDirectoryApplication using the windows form application and c# language. Figure 1: PD App This is how it will look after completing the project. Step 1 Figure 2: New Project Step 2 Figure 3: Windows Form App Step 3 Once you done with the naming project and clicking OK, you will be redirected to an empty blank Windows Form. Figure 4: Windows Form Step 4 Now you need to drag and drop few controls from toolbox window which are required. For example, Buttons, Labels, TextBoxes, and DataGridView. Figure 5: ToolTip Step 6 Once you drag and drop the controls on an empty blank form your form will look like the following and you can enhance the look and feel the controls on the form according to one’s requirement. Figure 6: Look and Feel Step 7 Then open Microsoft Access and create a table with some dummy values in it. Figure 7: Dummy Step 8 Now you need to import or mention one namespace in the above section where all namespaces are mentioned. i.e : using System.Data.OleDb; Figure 8: System Data Step 9 After importing this namespace in your application, ensure that you can use Microsoft Access in your application. Once importing the namespace, you need to create the instance(object ) of the OleDbConnection. Figure 9: OleDbConnection Step 10 Now write the connection string of Microsoft Access, every ConnectionString varies from other database. So you need to type one website for that i.e: http://www.connectionstrings.com/. Figure 10: Connection String Select the access option from there and copy paste the connection string from there that is available for access database Figure 11: Access Point Step 11 Now what you can do is you can double click on the add button which was created by you in the user interface section i.e on the windows form application, and just write the following code:
Programming Dictionary in C#