Set Picture property to (none)

R

Rod

This should be easy:

I want to remove the picture from an image if certain conditions are met.

How do I set the Picture property of an image to (none) - the same as
deleting it using the properties dialog? Null doesn't work, nor does an empty
string.
 
K

Ken Snell \(MVP\)

Set the Picture property to "(none)":
Me.ImageControl.Picture = "(none")

Or you can make the Image control invisible in those circumstances.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top