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.

[VB2010] Displays an image

[VB2010] Displays an image

So you need to display an image in your application but after selecting say from ComboBox. This is very easy to do and does not require any special knowledge.

  1. Right-click in Solution Explorer on the name of your application and select Properties at the bottom.
  2. Now select Resources in the new window and you will immediately see that it says String1. This is where you put your files to run inside the program. This is extremely important precisely because it is necessary to run the image from the very resources of your application.
  3. Add Resource then Add Existing File and select which image you want.
  4. Now put on your form say one ComboBox and PicutreBox so that we can complete the example.
  5. Double click on ComboBox and enter the following code:
        If ComboBox1.Text = "ÄŒokolada" Then PicutreBox1.Image = My.Resources.Slika
      

Here is the point in the following. You specify a condition of type If this is this. If we select the word Chocolate in the ComboBox then the app will show us an image from a resource that I put called Image (you put the name of your image, it's already variable).

Comments

Popular this month

RSS as wallpaper

If you are a fan of blogs and like to read something every day, then this is the right solution for you. We all know what RSS is, and we often use various programs to read feeds, and various widgets have been created for Win7. If you don't like or don't mind, all these programs you can see, from now on you can read the news directly from your background! Yes, that's right, from your wallpaper.

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.

Subtitles for movies and series - COMPLETE instructions!

We often find a movie we like, but in addition to a good movie, we also need subtitles. Domestic subtitles for movies and series are available online, posted by people who voluntarily translate foreign subtitles. However, it is not enough to just find a subtitle for a movie or series, you need to "guess" the right subtitle.

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:

Check if your computer is male or female

One small and interesting trick you can use to check whether your computer is male or female. All you have to do is an open notepad and copy the following script: CreateObject("SAPI.SpVoice").Speak"Am I male or female" (I recommend copying it from THIS link)