I’m just starting out in my new role at Telerik, and it's a thrill to be able to use these fabulous tools! My first task is to become familiar with the AMAZING products available in the DevCraft bundle. I'm completely blown away by the value - go and check it out for yourself!
I decided to piggy-back on the ideas of my co-workers to develop the Conference Buddy application. I'm going to shadow them and implement a version of this client using Windows Forms. This application is meant to make an Evangelists life easier when attending events, allowing us to quickly take down people’s information, inquiries, and best of all enter them in the raffle for the conference. If you don’t already have Telerik RadControls for WinForms installed you can download a free trial.
The first thing we want to do is to create the project. Do this by creating a new Visual C# RadControls Windows Forms Application, name the application “ConferenceBuddyWinForms” as shown in the dialog below.
The RadControls Windows Forms Application project type then provides a handy Project Configuration Wizard that allows you to add references quickly and easily. For this example, we will check the Telerik.WinControls checkbox.
Once the project is successfully created, feel free to delete the default Form1.cs form. Now it’s time to start putting together our application. In your solution, add a new item, a Telerik RadForm and name it CoreForm. We now need to edit Program.cs to ensure that this form is the startup form for the application (see line 5 below).
1: static void Main()
5: Application.Run(new CoreForm());
1: private void CoreForm_Load(object sender, EventArgs e)
3: ThemeResolutionService.ApplicationThemeName = "Desert";
Alternatively, when in the Project Configuration Wizard, we could have added the theme by selecting the Theme tab and checking the Desert theme checkbox. Then we can avoid using the toolbox for the theme altogether and simply created an instance of the theme in our form Load event, it would look like the following:
3: Telerik.WinControls.Themes.DesertTheme appTheme = new Telerik.WinControls.Themes.DesertTheme();
4: ThemeResolutionService.ApplicationThemeName = "Desert";
This is the first post in a series that will be implementing the Conference Buddy using Windows Forms, through this series you will see design decisions being made, changes being required, we are blogging about our development every step of the way. This post has provided the launching point for implementing more functionality in the Conference Buddy, subsequent posts will deal with more advanced implementation details. The next post will deal with consuming JSON data in order to load and display Event data from the file system.
The video below walks you through the creation of the basic shell of the application using the RadPanel and RadPageView WinForms controls to easily achieve the look I was going for as outlined in this blog post. Enjoy!
Watch the video on TelerikTV
Download Source Files
Carey Payette is a Developer Advocate. You can follow Carey on Twitter @careypayette or read her personal blog at www.codingbandit.com.
Copyright © 2016, Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.