It will open the ' Select Resource' window. ' button displayed next to the ' Initial Image' value. You can import the image from the Visual Studio Properties Window. Design the FormĬreate a new Windows Form project in Visual Studio.ĭrag and drop the Label, Button, ComboBox and DataGridView controls in the Windows Form to create a form similar to the displayed below:Īdd a PictureBox control to the centre of the form and then set the ' Image' and ' InitialImage' properties to the loading image. It reads the input from a text file line by line which is provided by the user and displays the output in a grid. The example provided in this article displays the number of vowels, consonants, numbers and special characters present in a text file. This article describes how to do the same in Windows Forms. The indicator can be as simple as an animated image (GIF image). To inform the user that some long running task is operating in the background, you need to display an indicator.
If your Windows Form application is doing some long running tasks in the background, then the UI becomes unresponsive.