Programming Examples

Are you a Programmer or Application Developer or a DBA? Take a cup of coffee, sit back and spend few minutes here :)

Tag Archive for ‘C# Container Controls’

C# TableLayoutPanel Example

C# TableLayoutPanel Example

Do you know how the Table works in html? The “TableLayoutPanel” works almost the same way how the table works in html. In this example, we will see how the C# TableLayoutPanel can be used & how each cell of this panel behaves. Also, we will nest some other layout panel with this one. At the end we will see a small professional looking form that can be used by any hospital management application.

OK. The C# TableLayoutPanel is collection cells and these cells can be arranged in rows and columns. We can imagine each cell as a special container. Why we say that it is a special container? Because each cell can hold only one control in it. What if we need to have multiple controls in one cell? Actually, that is not required most of the time for this container. But if we still need an answer, place a container you like in that cell and start placing the controls inside the container which occupying the cell. Say, for example, we can place a Panel in a cell and add multiple controls to that Panel.

Continue Reading →

C# Panel Container Control Explained

C# Panel Container Control Example

The Panel Container Control is all about this article. We will see how to use the panel control for grouping the controls. Then we will explore the important properties of this container along with an example.

Panel Container is almost like a group box. Unlike the group box, the panel does not have a title on the top. But it has the support to provide the scroll bars. These scroll bars allow us to place plenty of controls in it and make us to scroll when the form is not enough to fit all the controls.

Continue Reading →

C# GroupBox Container Control Example

Container Controls - Group Box Example

1. Introduction to GroupBox Control In this article, we will explore how to use the C# ‘GroupBox Control’ in C# windows forms-based applications. Before we start, we will learn about Topmost Container, Normal Container and Controls. The first fact one should know is that a Container holds Controls in it. For example, the Log-in dialog as a Container can hold username and password text boxes in it. A Container can act as […]

Continue Reading →