468,119 Members | 1,976 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,119 developers. It's quick & easy.

Image Property (ImageEditor)

Salaam To All,

I created a custom control using Vb.net, and it contains an Image Property
it works half ok, it lets you select an image, but my problem is: if I want to delete my selection and set the property back to {(none)} it wont let you.

(Note: I want it to work like the Image Property of PictureBox Control)

here is my code:
private m_imgLogo as Image
Jul 21 '05 #1
1 1462
Hi Amer,

Is there a reason you did not ask this in the newsgroups?
microsoft.public.dotnet.languages.vb
or
microsoft.public.dotnet.languages.vb.controls
or
microsoft.public.dotnet.framework.drawing

Cor

I created a custom control using Vb.net, and it contains an Image Property
it works half ok, it lets you select an image, but my problem is: if I want to delete my selection and set the property back to {(none)} it wont
let you.
(Note: I want it to work like the Image Property of PictureBox Control)

here is my code:
private m_imgLogo as Image
.
.
public Property Logo() as Image
Get
return m_imgLogo
End Get
Set (Value as Image)
m_imgLogo = Value
End Set
End Property

Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Chris Dunaway | last post: by
3 posts views Thread by ralphNOSPAM | last post: by
1 post views Thread by Adam Dockter | last post: by
2 posts views Thread by Luis Arvayo | last post: by
1 post views Thread by Amer Kheir via .NET 247 | last post: by
2 posts views Thread by Marc Solé | last post: by
3 posts views Thread by Froefel | last post: by
13 posts views Thread by didacticone | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.