
Originally Posted by
sdk1985
Also there are some ! according to VB with the default project. (I am now using an exact copy of webfiledownloader.vb in my program)
Warning 1 Variable 'FS' is used before it has been assigned a value. A null reference exception could result at runtime. I:\Documents and Settings\Sebas\Mijn documenten\Visual Studio 2005\Projects\FileTransfer\FileTransfer\WebFileDownloader.vb 70 21 FileTransfer
Warning 2 Function 'FormatFileSize' doesn't return a value on all code paths. A null reference exception could occur at run time when the result is used. I:\Documents and Settings\Sebas\Mijn documenten\Visual Studio 2005\Projects\FileTransfer\FileTransfer\WebFileDownloader.vb 99 5 FileTransfer
Hmm, i have converter my project from .net 2003 to 2005 and i also get this Warning, weird, but there is return
also i get warning abour DialogResult.no, yes, or whatever is used...
i have resolved this with
Code:
System.Windows.Forms.DialogResult....
EDIT:
ok i have resolved FormatFileSize Warning Case else is missing:
Code:
Select Case Size / KB
Case Is < 1000
Return (Size / KB).ToString("N") & "KB"
Case Is < 1000000
Return (Size / MB).ToString("N") & "MB"
Case Is < 10000000
Return (Size / MB / KB).ToString("N") & "GB"
Case Else
Return Size.ToString & "bytes"
End Select
Matt can you explain this please ("D" & "N" is format right):
Size.ToString("D") .ToString("N")
also cant find help about URL.IndexOf("/"c) and URL.LastIndexOf("/"c)
what is c for ? (description is Char, but please explain 
thx in advance !