Wilson Kutegeka

Microsoft MVP - Visual Basic www.clinicmaster.net

June 2009 - Posts

I'm a VB: Interview with the Microsoft Visual Basic Team

Who is the “typical VB.NET developer”? Is there one? There are millions of VB.NET developers in the world, and they each have their own unique story. MS VB Team decided to talk to some of them to find out what kinds of applications they’re building, what technologies they’re using, and what their favorite features are. Watch the interviews and find out for yourself who today's VB.NET developers really are!

check out:

http://msdn.microsoft.com/en-us/vbasic/dd776132.aspx

Don't forget Wilson Kutegeka

http://blogs.msdn.com/vbteam/pages/i-m-a-vb-wilson-kutegeka-vb-mvp.aspx

 

Custom Controls - Smart Picture Box

Introduction


SmartPictureBox Control: A picture box control is one of the most popular controls to display and received an image from a user. However, most of the time you’ll find yourself writing repetitive tasks such as

  • Load an image from file
  • Save an image from the control onto a file
  • Handle edit operations such as Copy, Cut, Paste, Delete, Undo, etc.

The SmartPictureBox control puts this together trough a context menu as shown below

SmartPictureBox Control with its context menu

 SmartPictureBox Control with its context menu

Members of interest of SmartPictureBox include the following:-

Properties

  • ReadOnly

If set to true, the pop up menu of the control will be hidden.

  • ImageSizeLimit

This property sets or gets the Maximum image file size limit.

 

Other Feature(s) Include

  • Enabling and disabling the menu appropriately depending upon what’s on the clipboard etc.

You can download the source code attached below