|
[x]
Posted via EE Mobile
|
|
| Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
|
|
|
|
Asked by Wingfootit in VB Controls, Windows Mobile (Pocket PC / Win CE) Operating Systems, Visual Studio
I am creating a windows mobile 6.1 application in VS2008 and I am creating a custom control that will use the picture box control. I expose the image property of the picture box by using a property tag. After compiling the code and adding the control to my project's form, the picture box image is initially blank but if I set it I must do it via the open dialog box (same as if just using the regular picture box). The problem is when I want to delete the image (if I made a mistake and do not want to include the image just have a blank picture box, it does recognize that the delete key was pressed in the property field. The only access to change the value is via the open dialog box and that requires a file to be selected. Attached is a code snippet of the property tag for to expose the image. Any help is greatly appreciated.
1:
2:
3:
4:
5:
6:
7:
8:
|
Public Property Position1Picture() As Image
Get
Return picPosition1.Image
End Get
Set(ByVal value As Image)
picPosition1.Image = value
End Set
End Property
|
20090824-EE-VQP-74 - Hierarchy / EE_QW_3_20080625