locked
asyncronous donwload in SL2 VB RRS feed

  • Question

  •  Hi, I should download 20 images or so and show them by an animated slideshow.

    I think the best way is using thread.

    Has anyone  a piece of code about thread in vb language?

    Is there a better way to do it? 

    Thanks 

    Wednesday, October 22, 2008 4:03 PM

Answers

  • Hello, if you use the Image Control, and put the images on the server (not embed in the assembly), the download progress is already asynchronous. You don't need to write any extra code.

    Friday, October 24, 2008 4:31 AM

All replies

  • Hello, if you use the Image Control, and put the images on the server (not embed in the assembly), the download progress is already asynchronous. You don't need to write any extra code.

    Friday, October 24, 2008 4:31 AM
  •  hi, I'm using following code contained in a sub

    Is it asyncronous or do I need to use a thread?

    Thanks again 

     

    ReDim Preserve i1(18)
            For k = 0 To 4
                i1(k) = New Image
                i1(k).Source = New BitmapImage(New Uri("http://www.xxxx/o_are/te/" & (k + 1) & ".jpg", UriKind.RelativeOrAbsolute))
                i1(k).Stretch = Stretch.Fill
            Next
            MessageBox.Show("Fatto", "", MessageBoxButton.OK)
     

    Friday, October 24, 2008 11:10 AM
  • Yes, it is asyncronous already.

    Monday, October 27, 2008 12:53 AM