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

Fix your photos with one click!

A new tool based on artificial intelligence has appeared, which fixes photos in the best possible way! This tool scans the photo and adjusts the parts to get the best possible lighting, colors, and details… even adding elements that the camera did not capture.

Unlimited number of free SMS messages

The service is closed! With the help of a Free SMS service, you can send an unlimited number of messages to all numbers in the world. The service is located at: www.slidesms.com

New Logo for Windows 8

A few days ago, information was leaked about the new Windows 8 logo in the Metro style, and a few days ago the Windows team presented the fundamental changes that have been made to the well-known Windows logo that has survived for twenty years, since Windows 3.1 .

New smileys - New possibilities

As the news about the new opportunity on Facebook appeared a few days ago, so did the various creations of the users. So we have a list of Troll smileys for FB chat, and from now on I can read all the inscriptions, names ... etc.

Chrome finds which tab makes noise

Google has announced that the new version of Chrome 23 browser brings several interesting improvements, among which is the ability to find tabs where some sound is played.