Hi nirmal90,
For converting Console Application to Windows Application, you need to change the project type and make some adjustments to the user interface.
Following are the steps to convert a Console Application to Windows Application:
1. First, create a new Windows Forms Application project in Visual Studio.
2. Adjust the UI, since a Console Application has a text-based interface and a Windows application has a graphical user interface (GUI).
You will need to create the necessary forms, controls, and UI elements in your Windows Forms project.
You can use the Visual Studio designer to drag and drop controls onto your form and customize the layout.
3. Copy the code logic from your Console Application to the new Windows Forms Application project.
Make sure to copy any necessary classes, methods, and logic that your application depends on.
4. Once you have copied the logic, adjusted the UI, you can compile and run your Windows Forms application to test that it works as expected.
By following these steps, you should be able to convert your Console Application to a Windows application in C#.