Next, we change the default text color from black to red by changing the ForeColor property. Next, we change the default text to 00:00 by changing the Text property.
Next, we right-click on the Label control and click on properties first we change their default name lalel1 to lblTime Now we add four labels to our form by dragging and dropping. Another way to open the toolbox is to press the shortcut key ctrl +Alt+X.Ĭtrl+Alt+x is the shortcut key to open the ToolBox.
To open the toolbox, we have two ways one is, to go view menu, Under View, we get the toolbox. Next, we have to add 4 label controls to our form, so to add these label controls, we have to open the toolbox. Next, to make our application more attractive, we have to change the formBorderStyle to none by just right-clicking on the form and clicking on properties.Īnd we must use the BackColor property to change the background color to black. Here we get a default window template and we have to resize our window to 589X251 by dragging. I have named mine "Featured_digital_clock." You can put in the name you want and click on "Create."
Next, we have to put the name of our application in my case. Then we select Windows applications with the.NET Framework and press the Next button. After opening the visual studio, click on Create New Project. You can access that which is installed on your system. To create a featured digital clock, we have to follow these steps.įirst of all, we start Visual Studio. It will be quite interesting, so before I start on how to make a digital clock, I want to show you what we are going to make. We can change the time from 24 hours to 12 hours. On this clock, we can see the time, date, and day. Here I'm going to explain how we can create an attractive, featured digital clock with Windows forms and C#.