Search:

Type: Posts; User: Cyb3rH4Xter

Page 1 of 12 1 2 3 4

Search: Search took 0.02 seconds.

  1. [VS2010] Debug all projects in the solution simultaneously?

    I have a solution consisting of 2 projects, the main project with a UI and a "helper exe". When I click debug, VS builds both projects, then copies the helper exe to the debug dir of my main app and...
  2. Replies
    10
    Views
    2,092

    Re: Transfer file over network

    Yeah I have used the BitConverter. I used the byte[].Length to get the length of the file and then converted that int to byte[] with the BitConverter.



    Oh I see. Well I recently discovered the...
  3. Replies
    10
    Views
    2,092

    Re: Transfer file over network

    Haha yeah I realised that when I had finished writing it, though I thought "What the hell, I'll know what is wrong, I'll fix it later".

    One interested thing I stumbled upon was the property...
  4. Replies
    10
    Views
    2,092

    Re: Transfer file over network

    I read more about this subject yesterday and think I understand it better now.

    I just wrote up a few lines to test a transfer:

    private static void SendFile()
    {
    ...
  5. Re: Pre-cache FileInfo.Length for transfer of info

    I see, well to work then. Thx for the answer :)
  6. Re: Pre-cache FileInfo.Length for transfer of info

    I am trying to send the FileInfo, with the code in my other thread you answered to recently, to another computer (first I serialize it). I am making a remote file browser to learn more about...
  7. Replies
    10
    Views
    2,092

    Re: Transfer file over network

    Here is the code for sending a message:


    public static void SendMessage(string Message, string To)
    {
    StreamWriter swSenderSender;

    int count;
    ...
  8. Replies
    10
    Views
    2,092

    Re: Transfer file over network

    Yeah, I have nothing so far (just code to write and read from a networkstream, for a chat).
  9. Replies
    10
    Views
    2,092

    Transfer file over network

    I have tried to find a way to transfer files, big or small, over the network via either tcp/ip or sockets or whatever it is called (I am new in this area).

    But I don't feel any of the tutorials I...
  10. Re: Pre-cache FileInfo.Length for transfer of info

    I don't know if I understand what you mean completely, but I added a line before the serialization (yes binary) like this:


    long size = info.Length;

    Though even if I remove that line the...
  11. Pre-cache FileInfo.Length for transfer of info

    I have built a program which serializes and transmits FileInfos across a network.

    It worked good until I tried getting the FileInfo.Length on the computer which has received a FileInfo that is...
  12. Re: HtmlDocument.AppendChild at specific place?

    Oh yeah of course, my fault. It should be HtmlElement.Appendchild() :)
    Yes I am using a webbrowser control.

    Your idea with the index would surely work, though since you reminded me that it was...
  13. [RESOLVED] HtmlDocument.AppendChild at specific place?

    I have a webpage, which contains a table. I would like to add another row to that table. I found the AppendChild method, but what I understand, it only appends at the bottom of the body.

    How can I...
  14. Re: webbrowser.DocumentCompleted not firing on Refresh

    Well, I was just wondering why the DocumentCompleted even didn't fire when I Refreshed the webbrowsers page?

    But I found out about it elsewhere since I didn't get any answer here and apparently...
  15. Re: Help me understand the code (callbacks mainly)

    I tested again and now it worked! VS must have hung up or something before since the error didn't disappear.

    So thank you! :D
  16. Re: Help me understand the code (callbacks mainly)

    I tried changing the type to CopyFileCallBackAction, but it still gives the same error :mad:

    There must be something else in the code that needs a change :sick:
  17. [RESOLVED] Help me understand the code (callbacks mainly)

    I found some code on the net which copies a file and reports the progress using the CopyFileEx API. The problem is that I don't understand how to use it completely, I am stuck at one step.

    I have...
  18. [RESOLVED] webbrowser.DocumentCompleted not firing on Refresh

    Why doesn't the WebBrowser.DocumentCompleted even fire when I do Webbrowser.Refresh?

    And what can I do make it fire when it refreshes? :confused:
  19. Replies
    2
    Views
    653

    Re: Detect website automation

    Precisely what I thought, thank you for confirming it so I don't have to spend more time thinking about it ;)
  20. Publish single exe same directory all the time

    I have set up my project to publish to my ftp, increment revision each time and not use .deploy extension.

    So if I click Publish now it first asks me of the password to the ftp, then it deploys it...
  21. Replies
    2
    Views
    653

    [RESOLVED] Detect website automation

    I'm just curious to know, since I have a website with a form, if it is possible to detect website automation?

    For example if the user fills the form with C# code and then clicks the button with C#...
  22. Replies
    2
    Views
    609

    Re: Access disposed object

    Oh I see. I solved it by doing as you said :)
  23. Replies
    2
    Views
    609

    [RESOLVED] Access disposed object

    I am displaying a form, then closing it using the normal:

    this.Show();
    this.Close();

    But when I am trying to open it a second time I get this error:



    Cannot access a disposed object.
  24. Replies
    3
    Views
    590

    Re: mouse question

    It is impossible to get that information what I know of.
  25. Re: Best way to update Application (without installer)

    Woah that seems to be something quite advanced (read a little bit about it). :rolleyes:

    As I mentioned before, I will probably use Setup Factory. I suppose they should have some sort of safe...
  26. Re: Best way to update Application (without installer)

    Precisely what I though of. Is it an accepted method among real programmers?
    Since the updatecheck is performed at the start of the program, if there are an update available it should take just a...
  27. Re: Best way to update Application (without installer)

    hmm okay I have changed and will use an installer instead :)
    But I will still use my newly coded separate program to download and run the file. So I have one question:

    What is the best way to...
  28. Re: Best way to update Application (without installer)

    No that is just disgusting. If I wanted to use installer I would have gone with Setup Factory that I normally use. I don't like .msi installers at all.

    I chose to make a separate application in...
  29. Replies
    4
    Views
    1,080

    Re: HtmlDocument -> string with html

    Yeah I totally know that. But I wanted to know if you can get the html from a HtmlDocument :ehh:
  30. Replies
    4
    Views
    1,080

    Re: HtmlDocument -> string with html

    Webbrowser.Document?
  31. Best way to update Application (without installer)

    I have used 2 different methods of updating my programs.
    Both the methods copies all the files from one directory into the application directory, overwriting old files. It then launches the program...
  32. Re: How to get the records from the listview control and insert it into your database

    Sorry but really can't see the problem here?
    Have you even tried writing something?




    ListViewItem lv = new ListViewItem("Use MSDN");
    string lol = lv.SubItems[0].Text;
  33. Re: Proper way of writing/reading to MySQL

    I read it, smart!
  34. Replies
    4
    Views
    1,080

    HtmlDocument -> string with html

    So I have been ripping my hair trying to figure out how to get the pure html from a HtmlDocument.

    Since there is no "HtmlDocument.ToString" that supplies the correct html there must be some other...
  35. Proper way of writing/reading to MySQL

    I have made a few small programs which connects to a db to fetch some info and/or write stuff there too. They do it with the MySQL connector with the username and password hardcoded (just using the...
  36. Replies
    8
    Views
    1,166

    Re: Speeding up my code

    hmm I'll think about it.
  37. Replies
    8
    Views
    1,166

    Re: Speeding up my code

    Yeah I know. But I think I can decrease the time it takes with like 20% if I multi-thread it instead of running it on a single thread.

    I will look into regex compiling and NGEN.
  38. Replies
    8
    Views
    1,166

    Re: Speeding up my code

    Hmm I think I'll go with the async method, TPL is too advanced for me yet lol (read about it).
    Though I am not sure what you mean.

    I should run the async, then in the "finished" method I should...
  39. Replies
    8
    Views
    1,166

    Re: Speeding up my code

    Okay. I think I will look into Thread Pool to queue the processing of each page instead of doing them one at a time. Though I am not sure how to handle the result/value of each processing.
  40. Replies
    8
    Views
    1,166

    [RESOLVED] Speeding up my code

    I have a method which uses the WebClient.DownloadString to download the html for 12x20 + 20 pages (260). It is a loop that looks simplified like this:


    foreach page in pages (which are the 20)
    ...
Results 1 to 40 of 451
Page 1 of 12 1 2 3 4



Click Here to Expand Forum to Full Width