O'Reilly logo

.NET Framework 4.5 Expert Programming Cookbook by A.P. Rajshekhar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 2. Application Events and Windows Forms

In this chapter, we will cover:

  • Creating an event that can have generic values as payload
  • Creating a table layout that can dynamically add or remove rows based on the size of the collection
  • Creating DataGridView dynamically
  • Creating a video player using DirectX and Windows forms

Introduction

The focus of this chapter will be a Windows Forms Application project that will include event handling and dynamically generating controls and layouts. We will start with developing events that may have custom classes as their payloads. Then we will look at how to add and remove rows from a table layout container at runtime. Next, we will develop a control that can create and host DataGridView based on the values passed ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required