J
Jose Michael Meo R. Barrido
Hi! Can u please tech me a way to know if the image in the picturebox has
changed? what event should i catch the chage?
changed? what event should i catch the chage?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Hi! Can u please tech me a way to know if the image in the picturebox has
changed? what event should i catch the chage?
Jose Michael Meo R. Barrido said:Hi! Can u please tech me a way to know if the image in the picturebox has
changed? what event should i catch the chage?
As the developer you should know yourself when you change the image ;-).
In other words: No, there is no such event.
Cor Ligthert said:Again, please do not answer questions which I ask to an OP, wherefore
probably (not always for sure) the answer is obvious.
Huh?!
Cor Ligthert said:When than somebody else give in a (in my opinion kind of rude way) that
answer I am not happy.
My reply was /not/ rude. Period
Event ImageBeforeChanged(ByVal sender As Object, ByVal e As
EventArgsImageChanged)
Event ImageAfterChanged(ByVal sender As Object, ByVal e As
EventArgsImageChanged)
Rather then define a class with a Cancel Property you can simply usePublic Class EventArgsImageChanged
Inherits EventArgs
Private _cancel As Boolean = False
Public Class adxPictureControl
Inherits PictureBox
End Class
Jay B. Harlow said:AviD,
Rather then ImageBeforeChanged & ImageAfterChanged you might consider
naming the events ImageChanging & ImageChanged which is the normal
convention for .NET.
http://msdn.microsoft.com/library/d.../cpgenref/html/cpconEventNamingGuidelines.asp
http://msdn.microsoft.com/library/d...s/cpgenref/html/cpconEventUsageGuidelines.asp
Rather then define a class with a Cancel Property you can simply use
System.ComponentModel.CancelEventArgs or inherit from it.
http://msdn.microsoft.com/library/d...emcomponentmodelcanceleventargsclasstopic.asp
Public Event ImageChanging As System.ComponentModel.CancelEventHandler
Public Event ImageChanged As System.Event Handler
...
Hope this helps
Jay
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.