joejack0330
Technical User
Hi, this is running on windows mobile device compact framework. Can't seem to find any logic to it. Sometimes hangs on 3rd try and sometimes can be on 100th and hen it hangs, it doesn't timeout, just keeps going until have to reboot device. Have tried adding timeouts but no effect. Hope this is enough info so hoping maybe someone has seen something like this? Thanks.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Try
Dim req As Net.HttpWebRequest = DirectCast(Net.HttpWebRequest.Create(" Net.HttpWebRequest)
Dim res As Net.HttpWebResponse = DirectCast(req.GetResponse, Net.HttpWebResponse)
Dim img As Image = New System.Drawing.Bitmap(res.GetResponseStream)
PictureBox2.SizeMode = PictureBoxSizeMode.StretchImage
res.Close()
Me.PictureBox2.Image = img
End Sub
Catch
End Try
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Try
Dim req As Net.HttpWebRequest = DirectCast(Net.HttpWebRequest.Create(" Net.HttpWebRequest)
Dim res As Net.HttpWebResponse = DirectCast(req.GetResponse, Net.HttpWebResponse)
Dim img As Image = New System.Drawing.Bitmap(res.GetResponseStream)
PictureBox2.SizeMode = PictureBoxSizeMode.StretchImage
res.Close()
Me.PictureBox2.Image = img
End Sub
Catch
End Try