Search:

Type: Posts; User: Netmaster

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Re: how to add to a combobox a list of item (not every item) in a txt located on a se

    sorry it is "a]" and "g]"
    an b4 i just changed it on the load event! not on the radiobutton event! that is why it did not work!
    Thanks a lot guys! yeyy
    =D
  2. Re: how to add to a combobox a list of item (not every item) in a txt located on a se

    YES I DID BUT....
    I forgot to chanc "a" and "g" to "A]" and "G]" in the radio buttons procedure.
    I will try and let you know!
    thanks a lot,

    andrea
  3. Re: how to add to a combobox a list of item (not every item) in a txt located on a se

    mmm It works when i select the first button (it loads every item), but it does not load anything when i select the other two radionboxes. :(
    I changed "a" with "A]" and "g" with "G]" since every...
  4. Re: how to add to a combobox a list of item (not every item) in a txt located on a se

    2008. I just tested it on 2010 and it does not work as well :(
    What version do you use?
  5. Re: how to add to a combobox a list of item (not every item) in a txt located on a se

    Thanks for the answers guys!
    .paul. and stateofidleness the coe you suggested doe not work :( thank you anyway!

    jmcilhinney I will try to do as you suggest and I will report back! Thanks.
    ...
  6. [RESOLVED] how to add to a combobox a list of item (not every item) in a txt located on a server

    Hi, my program downloads into a combobox every item(line) that is in a text file located on a server.
    Every line in the text file ends with "a)" or with "g)".

    Now I just want to make 3 radio...
  7. Re: System.DivideByZeroException ERROR (just on some computers)

    basically noe i fixed it with by doing this:



    If Time >= 1 Then
    'all the code in the download progress changed
    end if


    It works fine!
  8. Re: System.DivideByZeroException ERROR (just on some computers)

    dbasnett sorry i just read your post.
    But how it is possible that on some computers it will work?
    do you think that if i leave the code as I did I will face some problem later? or not? Right now...
  9. Re: System.DivideByZeroException ERROR (just on some computers)

    wow. thanks for your help!

    i just did:


    If Time > 0 Then
    'all the code in the download progress changed
    end if
  10. [RESOLVED] System.DivideByZeroException ERROR (just on some computers)

    Hi,

    I made a downloader program which allows you to download files from the internet.
    I made the program using VB 2008 and a pc running windows 7 professional 32-bit. I also tested the program on...
  11. Re: How to get the size of a file if file is located on a sever

    my bad!


    got it to work now:


    MsgBox(String.Format("The file length is {0:0} MB.", ((wrp.ContentLength / 1024) / 1024)))
  12. Re: How to get the size of a file if file is located on a sever

    Wow thanks! it works!
    Can you please tell me how I can convert the bytes in MB (eg. 137MB)?
    I tried to do this but it gives me an error:



    MsgBox(String.Format("The file length is {0} MB.",...
  13. Re: How to get the size of a file if file is located on a sever

    Thanks for the answer!
    I thought there was an easier way to do that.
    By the way, I cannot try the code beacause it gives me an error (I do have System.Net declared):


    ...
  14. [RESOLVED] How to get the size of a file if file is located on a sever

    How can I get the size of a file in MB if the file is located on a server?

    If the file is on a computer I would do this:


    Dim file As New IO.FileInfo("c:\myfile.rar"))
    label1.text =...
  15. Re: [RESOLVED] How to count the lines of a text file (NOT EVERY LINE) situated on a s

    Great,
    Thank you J-Deezy
  16. Re: How to count the lines of a text file (NOT EVERY LINE) situated on a server

    Well thanks a lot stanav!
    I was confused! but thanks to you I amde it!
    Yayyy
  17. [RESOLVED] How to count the lines of a text file (NOT EVERY LINE) situated on a server

    Hi,

    I have a text file on a web server. Every line of the text file ends with "g]" or with "a]".

    I would like to count the lines that end with "g]" and the lines that end with "a]".

    How can...
  18. Re: How to count the lines of a text file situated on a server

    Solved, it was easy but I was tierd and couldn't figured it out:



    Dim client1 As New System.Net.WebClient
    Dim file1 As String = client.DownloadString("URL/file1")
    Dim...
  19. Re: How to check if a file on a server exists or not

    Well... what to say...
    That converter works quite well!
    Amazing!
    Thanks a lot Enrico! Awesome!

    Regards,

    Andrea
  20. Re: How to check if a file on a server exists or not

    sorry i just figured it out!


    Dim response As WebResponse = DirectCast(request.GetResponse(), WebResponse)
    MsgBox("exist")
    Catch ex As WebException
    Dim...
  21. Re: How to check if a file on a server exists or not

    Wow That converter almost worked all the way! thank you!

    I am not trying to connect via FTP but the code should work anyway!
    Here is what I did with what you gave me:



    Dim...
  22. Re: How to count the lines of a text file situated on a server

    Sorry but I do not understant.

    Why did you put "textbox1"? I do not have textboxes in my form
  23. Re: How to count the lines of a text file situated on a server

    Thank you guys!

    both the codes you gave me works!

    But I was trying count the lines of two text files on a server and return the count in only one text box.
    Just to give you an example of what...
  24. [RESOLVED] How to count the lines of a text file situated on a server

    How would I count the lines of a text file situated on a server?

    I know that if the file is on my pc I just do this:



    Dim lines As String() =...
  25. [RESOLVED] How to check if a file on a server exists or not

    Hi,

    How can I check if a file exists on a server?

    Let's supposed that I want to check if "http://www.mywebsite.com/mytextfile.txt" exists.
    How can I do that?

    I tried to do this but it does...
  26. Re: Insert pop up error if connection drops or download fails

    Ok then!
    I thought it was not that hardto do. I have seen some vb samples (which i tested and work) doing pausing and resuming (not using Async though).
    I thought it would have been something l...
  27. Re: Insert pop up error if connection drops or download fails

    Thanks for the great explanation!
    I just figured out how to set everything using the NetworkAvailabilityChanged event. I was about to write to the thread.
    But since you explained this method to me...
  28. Re: Insert pop up error if connection drops or download fails

    Thanks for the great explanation!
    I just figured out how to set everything using the NetworkAvailabilityChanged event. I was about to write to the thread.
    But since you explained this method to me...
  29. Re: Insert pop up error if connection drops or download fails

    I think I almsot did it:
    Iadded this into my Form1_load:


    AddHandler My.Computer.Network.NetworkAvailabilityChanged, AddressOf MyApplication_NetworkAvailabilityChanged


    And then this:
  30. Re: Insert pop up error if connection drops or download fails

    I am getting crazy about it.

    I tried this:



    Private Sub Download_NetworkAvailabilityChanged(ByVal sender As Object, ByVal e As System.ComponentModel.AsyncCompletedEventArgs) Handles...
  31. Re: Insert pop up error if connection drops or download fails

    jmcilhinney:
    are you saying saying I should add the "try" "catch" in the downloadfilecomplete event?
    Right now there I only have this:


    Private Sub Download_DownloadFileCompleted(ByVal sender...
  32. Re: Insert pop up error if connection drops or download fails

    Thanks for the answer,

    I am using DownloadFileAsync to download the file.

    Ihad already tryed that method with no luck:



    Try
    Download.DownloadFileAsync(New Uri("URL" &...
  33. [RESOLVED] Insert pop up error if connection drops or download fails

    Hi,

    I built a dwonloader program which download a file from the web.
    I would like to insert an error message that pop up whenever the program fail to download the file and/or when the computer...
  34. Pausing and Resuming Download with Async

    Hi,

    I built a dwonloader program which download a file from the web.

    How whould I implement the "Pause" and "resume" download using Async?

    under the download button I have this:


    ...
  35. Re: Loading content of a text file located on a website into a textbox/combobox

    Well I just needed to have this:


    Dim MovieList As String = client.DownloadString("URL")
    Dim lines As String() = MovieList.Split(New String() {ControlChars.CrLf},...
  36. Re: Loading content of a text file located on a website into a textbox/combobox

    Yes, I did try before to clear the combobox which works fine. But if the program is running and I change the content of the list on the server and then i click the refresh button it will not load the...
  37. Re: Loading content of a text file located on a website into a textbox/combobox

    Wow thanks a lot! Now It finally works! thank you.

    Now I noticed that if i click the button twice the combobox loads an other time the list so I am going to have twice the same items!

    So I...
  38. Re: Loading content of a text file located on a website into a textbox/combobox

    I added an @ at the end of each item on the list and I tryed the following code:


    Dim aStringArray() As String 'array of strings
    Dim s As String 'single string
    Dim i As...
  39. Re: Download: Calculating speed and time left (progress bar)

    Pradeep1210.... You are great! Thanks a lot! I will mark the tread as solved!
    Would you mind taking a look at another thread I posted? I have a really hard time trying t o figure out how to do a...
  40. Re: Loading content of a text file located on a website into a textbox/combobox

    I had already tried with addrange but it returns this error:
    value of type 'String' cannot be converted to 1-dimensional array of Object'

    I was thinking of something simpler too though... Since...
Results 1 to 40 of 75
Page 1 of 2 1 2



Click Here to Expand Forum to Full Width