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.
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.
- Right-click in Solution Explorer on the name of your application and select Properties at the bottom.
- 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.
- Add Resource then Add Existing File and select which image you want.
- Now put on your form say one ComboBox and PicutreBox so that we can complete the example.
- 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
Post a Comment