Is this going to be some kind of image capture utility? something like iconcool editors screen capture?
I would'nt go down the picutre box route. As i said i would be thinking about a borderless form.
If you need help with the screen capture routine have something that will help you.
It's basically a function that captures an image of whatever is underneath the form your using.
As for the properties, a property can be of any type you want.
The only things you need to make custom properties are, about 2 minutes and a private varaible.
So i have a contol that i want to add a on/off property to. I would simply do this....
'Create an enum to be our new OnorOff type
Public Enum OnorOff
On
Off
End Enum
'All we need now is to create a private variable in the class that is going to hold the property,
which will hold the current value of our enum (which will be on or off)
Private _OnOff as OnorOff
'Has to be public so it can be seen outside the application it has been created in.
Public Property IsItOnorOff as OnorOff
Get
Return me._OnOff
End Get
Set(byval value as OnorOff)
me._OnOff = value
End Set
End Property
Thats it. Our new property would be visible to intellisense and in the properties window at design time.
It doesn't do anything yet, but then it's up the the class to perform actions based on the value
of that private variable we declared. See Where i'm going?