Friday, March 29, 2024

Creating DOS Like An Application – Best DOS Type Application

Is It Easy To Make DOS Like An Application? | What Do I Need To Make My Own App? | Create Dos Like Application

Creating DOS Like An Application – DOS like an Application refers to Textual User Interface. That is, there will be no use of a mouse or graphics. The creation of a DOS-like application is known as Console Application in VB.NET, for which the following steps are followed.

  • Open the New Project dialog box.
  • Select Windows under Visual Basic from the Project Types section and select Console Application from the Visual Studio installed templates in the Templates section. In Name, you will see that ConsoleApplication1 has come without typing. This name is V.B. By default is given by dot net. You can change it now or when you close the project. A better approach is to just leave the name by default. Even if your computer shuts down suddenly, your application will be safe with that name. Click OK.
  • After this you will see the code designer (in place of the form).
Read Also :   Microsoft Keyboard Shortcuts | Best Useful Keyboard Shortcuts

Write code between Sub Main() and End Sub. After that, your only work remains to save it and give a suitable name which is going to be explained to you further.

How To Make DOS Like An Application – Creating DOS-like application | What needs to be done to make an app | Creating a DOS Type Application

Is It Easy To Make DOS Like An Application? | What Do I Need To Make My Own App? | Create Dos Like Application
Is It Easy To Make DOS Like An Application? | What Do I Need To Make My Own App? | Create Dos Like Application
Techs Visit

Creating DOS Like An Application :

Let’s Learn-1: Write a Console Application. After running it, the user should be asked to enter his name. And as a result, the name entered by the user appears along with You are welcome.

Solution :

  • Click on the File menu and select New Project.
  • After the New Project dialog box opens, click Console Application in the Templates pane.
  • Type My Project in the Name textbox and click OK. After that, the code editor will open.
  • After that write the following code between Sub Main ( ) and End Sub in the code.

Dim name As String

Console. Write(“Enter your name”)

name = Console. ReadLine()

Console.WriteLine(“You are welcome ” & name)

Console.ReadLine()

  • Then press F5.

Let’s Learn-2: Create a console application that when given a Celsius temperature, converts it to Fahrenheit temperature.

Solution :

  • Click on the File menu and select New Project.
  • After the New Project dialog box opens, click Console Application in the Templates pane.
  • Type My Project in the Name textbox and click OK. After that, the code editor will open. After that write the following code between Sub Main () and End Sub in the code –

Dim cdeg As Decimal
Console.Write(“Enter the degrees in centigrade…”)
cdeg = CDec (Console.ReadLine ())
Dim fdeg As Decimal
fdeg = ( ( (9@ / 5) * cdeg) + 32)
Console.WriteLine(cdeg & ” is ” & fdeg & ” degrees Fahrenheit.”)
Console.ReadLine()

  • Then press F5.

Let’s Learn-3: Write a console application that prints 1 to 10 on the screen.

Solution :

  • Click on the File menu and select New Project.
  • After the New Project dialog box opens, click Console Application in the Templates pane.
  • Type My Project in the Name textbox and click OK. After that, the code editor will open. After that write the following code between Sub Main () and End Sub in the code-
Read Also :   How to Improve Your Computer's Performance - Best Tips and Tricks

Dim I As Integer

For I = 1 to 10

Console.WriteLine(I)

Next I

Console. ReadLine()

  • Then press F5.

Saving A Project

When you are saving the project it means two things. The first is that you save the changes made to the project. Second, before giving a meaningful name to the project, let me tell you how you name a project. Follow these steps to name a project.

  • Click File and select Save All or press Ctrl + Shift + S from the keyboard.
  • After this Save Project dialog box will open. The Save Project dialog box has three text boxes namely Name, Location, and Solution Name. In the Name text and Solution Name text boxes, you will see that WindowsApplication1 is written. In the Name text box, type the name of the project, which will also be the name of the solution. You can keep the project and solution names separate if you want. This happens when you are building an application that has more than one project.

Here you type the name in the Name that you want to name the project. In the Location text box, enter the location on your hard disk where this project will be saved. You can keep the default location or you can change the location by clicking Browse. If you want to create a separate directory for the solution, then leave the Create directory for the solution checked, which is a common and good practice. If you do not want to save your project and solution in any directory, then clear the Create directory for the solution check box.

  • Select File Save if you want to save the changes made to your project. Or
Read Also :   Introduction to Computers – Best Information

Then press Ctrl + S from the keyboard.

Difference between solution and project

A solution is a fundamental unit of Microsoft Visual Studio. When you create a project, it is a solution. You can know the solution as complete software. A solution can contain multiple projects and a project can contain multiple forms, classes, etc.

Open an Existing Project

Opening any previously created project is a very easy task. This is the same process we have been doing to open any file in MS Word. To open a created file, follow the following steps in sequence –

  • Open Visual Studio.
  • Click the File menu and select Open Project… or press Ctrl + 0 simultaneously from the keyboard.
  • After that Open Project dialog box will be displayed.

Now open your solution folder. It can contain many files and folders. Carefully open the Microsoft Visual Studio Solution file. There are many folders and two files. In this, the first file is the solution file and the second file is the project file. Opening any of these files will open your project. But if suppose there is more than one project inside the solution then it is safer to open the solution file itself. Double-click the solution file or select the file and click Open.

Apart from this, there is another way by which you can open your project. which is as follows.

  • Click File and point to Recent Projects… and click the desired project.
  • Select the required project from Recent Projects on the start page.

Both the above methods are limited to open recently created projects only.

Adding a form to a Project

You can add as many forms to the project as you need. Follow these steps to add a new form to the project –

  • Click on Project and select Add Windows Form…
  • Thereafter Add New Item dialog box will appear on the screen.
  • Select the Windows Form option if it is not already selected.
  • Type the name in the Name textbox if you want to change its default name.

Finally, click on the OK button.

What Did You Learn Today

  • Application like DOS refers to Textual User Interface. That is, there will be no use of a mouse or graphics.
  • Select File Save if you want to save the changes made to your project. Or press Ctrl + S from the keyboard.
  • Solution is a fundamental unit of Microsoft Visual Studio. When you create a project, it is a solution. You can know the solution as complete software. A solution can contain multiple projects and a project can contain multiple forms, classes, etc.
Admin
Adminhttp://techsvisit.com
Hello friends, Welcome to my Blog at TECHS VISIT, we keep writing various information, Computer blog / blogging tips and suggestions, reviews and advice on many topics in your own language. You can read interesting blog posts published regularly in simple language here. Source for new inventions, Gadgets, Computer Technology and software. Check out our website for the latest trends on Computers, Smartphones, Electronic Gadgets and Internet content. Everything with complete information where complete information about Computer Technology. You can get different types of information by joining with us. Everything I write on my blog is my practical experience.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Stay Connected

5,560FansLike
1,260FollowersFollow
0SubscribersSubscribe
spot_img
- Advertisement -

Latest Articles