Ken Vleminckx

I love deadlines. I like the whooshing sound they make as they fly by.

December 2004 - Posts

Developer & IT Pro Days 2005 (Belgium-Brussels)

Highlights

  • 2 days
  • 100% pure technical education 
  • Theme: Human Spirit
  • Keynote speaker: Bill Gates

Who should attend?

  • IT professionals ,  System architects ,  Network administrators ,  System administrators , Information Workers ,  Software developers ,  Software architects ,  Database Administrators , Web Developers , Academics

When & Where

  • 1 & 2 February 2005
  • Hall 10 of Heysel, Brussels
http://www.microsoft.com/belux/nl/devitprodays/agenda/sessions1.aspx#keynote

- Ken

GetManifestResourceStream: Use an included file in your project.

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

Using HttpWebRequest to rip data from other pages.

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

SignalStrength
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