StringFormat

Draw a Text in a Windows Form in C#

Submitted by donbermoy on
In this tutorial, I will teach you how to create a program that will draw a text in a windows form using C#. Now, let's start this tutorial! 1. Let's start with creating a Windows Form Application for this tutorial by following the following steps in Microsoft Visual Studio: Go to File, click New Project, and choose Windows Application and name your project as Draw a Text in Windows Form. 2. Next, add only one Button named Button1 and labeled it as "Draw a Text".

Draw a Text in a Windows Form in VB.NET

Submitted by donbermoy on
In this article, we will create a program that can draw a text in a windows form when we click a button. We will use the Graphics and StringFormat class for this. Now, let's start this tutorial! 1. Let's start with creating a Windows Form Application for this tutorial by following the following steps in Microsoft Visual Studio: Go to File, click New Project, and choose Windows Application. 2.