You can easily use embedded files in your project.
 |
As you see, I included an image called card.gif into my project. I can now use this image at runtime in my application.
Dim thisExe As System.Reflection.Assembly
thisExe = System.Reflection.Assembly.GetExecutingAssembly()
Dim file As System.IO.Stream = thisExe.GetManifestResourceStream(thisExe.GetName.Name & ".Card.gif")
PictureBox1.Image = Image.FromStream(file) |
Next week I will post an entire cardslibrary component. It will include all 52 cards. (From Ace to King)
- Ken
With HttpWebRequest , you can make a request to a certain document. It can be an html,asp,php,aspx,... The response is just the output of a document. You can easily parse the output and extract the data you want. (Good for ripping data on-the-fly like stock information, temperature,...)
View the code here
- Ken
Signal-strength is a small visual component for showing a signal strength.
In this example I use it for showing the signal of a wifi adapter.
The Value property can be set to one of the following enumerators:
 |
| NoSignal |
No bars |
| VeryPoor |
1 bar |
| Poor |
2 bars |
| Good |
3 bars |
| VeryGood |
4 bars |
| Excellent |
5 bars | |
|
Whenever you set the value, the component will show the proper image. If you set the ShowSignalActivity to True, you will see when the image is refreshed. (It could be possible that the component show 4 bars for 1 minute, in this case you will see that the signalstrength component is still active.)
|
The component is made using GDI+. All images you see, are generated on the fly. (pixel by pixel).
Download sample
- Ken