I know how to check a file size on a file on the computer. However, I'm mostly dealing with URLs.
I was hoping that maybe load it into a web browser compenent then getting the file size-but that might not work. Also shouldn't the net function do anything?
Also, I ran the program and when it came time to tell me the size or the dimensions (heigh, width) it said the object reference is not a instance to a object.
This is what I did to try get the dimensions:
Private Sub ListView1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListView1.SelectedIndexChanged Dim fileSize As Integer PictureBox1.ImageLocation = ListView1.FocusedItem.Text ' Grab the image from the URL that is put into the array. Height_Size.Text = PictureBox1.Image.Height.ToString ' Insert the height of picture into the height textbox. Width_Size.Text = PictureBox1.Image.Width.ToString ' Insert the width of picture into the width textbox. fileSize = Len(My.Computer.FileSystem.GetFileInfo(PictureBox1.ImageLocation)) 'Grab the size of the image from URL. Pic_Size.Text = fileSize 'Put in the filesize into the filesize textbox. End Sub
THanks guys for your great support!