Inet control StateChanged event Q. VB6
Visual Basic
1
Posts
1
Posters
0
Views
1
Watching
-
Hi, I use Inet control to download a file (HTTP) in the StateChanged event to get data using : GetChunk the problem is that i want to display a progress bar so I need to know the total length of the file .. I use something like this:
If State = 8 Then n=val(Inet.GetHeader("Content-length")) end if
it works but some times i get an error .. should I call GetHeader when the state is 12 not 8? what is the difference ? I read MSDN but wasn't clear in this point..