I thing u can use threading to update Image asynch. and plz write code
like follows
first declare delegate of your update method like
perivate delegate sub RefreshImageCallBack()
then define procedure like this
' ' Refresh Image actually refresh/Alter Image.
' ' Here Invoke method is required because our Panel is created from
different thread then we actualy created It so It can give error.
private Sub RefreshImage()
if pnlImage.InvokeRequired then
dim d as New RefreshImageCallBack
d.Invoke
else
pnlImage.BackgroundImage= YourImage
end if
end sub
' this procedure will be preocedd in infinite loop and sleep method
will ensure your time duration between refreshes.
Private Sub StartImageRefresh
while true
Threading.Thread.Sleep(5000)
Refreshimage()
end while
end sub
then start your refreshing in different thread like in Form_Load
method or
in New after Initialize component
dim th as new thread(addressof StartImageThread)
th.Start
I had done many refreshing tasks in widows application from this
method and its working fine without affecting main application
If you found any problem then can contact me at this thread . I wrote
this code without any compilation so it can be compiler error but
procedure
is same.
On May 11, 12:18 pm, shree <[email protected]> wrote:
> Hello all,
> I am trying to update an image which is in update panel.
> just i want to update the image for every 5 sec. asynchronously but i
> cant' do so
> please any one can help me .....