Skip to main content

Here's what a VPN can't protect you from (but you need to use it)

The abbreviation " VPN " has slowly become established among average Internet users, which is certainly good, but the problem is that people have started to see VPN as the ultimate solution to all problems.

VB – First application

VB – First application

To start learning Visual Basic, you can do it by starting immediately with forms that are already integrated, but a more correct way to start learning is with console applications.

Why? First of all, console applications do not have the standard form that you see with every program, they are oriented towards the strict execution of codes that will be displayed in the form of text or numbers. Console applications look like a command prompt.

I will insist on tutorials with console applications only because you can see and understand programming and the very essence of programming more clearly. The best way to learn to program is to start writing an application, and for this very reason, the first application will be oriented to simply displaying text in the console.

Example of code:

From the given code, we first see Module Module1.

Module or modules are an integral part of every application and it is never just one. Applications have modules, but they also have classes, which is the case with console applications.

Sub Main() is the main part of the code, i.e. the initial part of the code that the application must contain. It is always the initial part of the code to work with. What follows now is the important part for you.

If you want to print text in the console, you do so by first printing Console, because then you are preparing the console for a command, that is, you issue a command to the console to do something. By putting a period, the console expects you to emphasize what it should do, and I wrote WriteLine(), which issues a command to print some text in the console. Inside the brackets, I can write the variable without quotation marks because when variables are written they are written without quotation marks, but since you are still new to working in Visual Basic and you do not know what variables are, then you write quotation marks inside the brackets because we are declaring some text for the first time.

Below that, I wrote Console.ReadLine(), that is, translated into Serbian, I told the console to read the line. If I had not put this, the application would have shut down by itself after starting because nothing would have kept it active, and by putting this code it would be busy because it is waiting for the user to enter something. After that, I wrote End Sub because it is mandatory. Every Sub, every class, and every module must but must be closed when programming. Just like in HTML you have tags that you have to close the same and when programming you have to close Sub and Module. I did it with a simple End Sub and End Module command. The fact is that all this is automatically integrated, but if not, do it.

Here's what it looks like when you launch the app:

Comments

Popular this month

The difference between Sleep, Hibernate and Hybrid sleep options

What is the difference between regular Sleep mode and Hybrid sleep mode? And what is Hibernate ? I will try to explain in the simplest way possible so that everyone understands nicely. 1. Sleep When you select Sleep mode , all components of the computer except RAM are shut down to store data. So, if you do something on the computer and press Sleep, the computer shuts down and everything you did (left open windows, documents, etc.) is stored in RAM.

How to speed up folder opening [Win7]

I had a problem with the slow loading of folders on Win7, until recently. When I opened the folder, I waited for a while to read all the items from it. That green progress, at least upstairs, was filled with incredible slowness , which annoyed me. I searched a bit on the net, I concluded something myself and came up with a simple and effective solution. You will not need any program or complicated settings for this, everything is easy.

How to find a phone in the house if it is muted?

UPDATE: the article is outdated, read the new one:  How to find a phone if its sound is off ? Lost your Android phone at home, desperately trying to find it, and the ringtone is off? Well, that's going to be a bit more difficult. But there is a solution for that as well -  Remote Ringer . This application works quite simply:

Image of 1.74 giga pixels

In the picture of Barack Obama 's inauguration on January 20, 2009. you can clearly identify each person individually in that mass of people. Click 2x anywhere on the image. Use the zoom on the left to zoom in on the selected person and wait a few seconds for the image to focus. That image was taken by a 174-megapixel robot camera. That's 295 x the average 5-megapixel camera.

How to take a picture of an entire website

You need to take a picture of the whole website but you don't know-how. You try to paint part by part, but it takes too much time. Here are a few solutions on how to do it in just a few seconds.