Search results for query: *

  1. D

    Question Get Desktop Icons Text Width & Text Height

    It seems that one possible way to get the bounding rectangle of the desktop icons texts, is the explanation below, that someone have suggested me, on the following page: (VB.NET 2008 - Get Desktop Icons Text Width & Text Height - CodeGuru Forums) LVM_GETSUBITEMRECT Retrieves information about...
  2. D

    Question Get Desktop Icons Text Width & Text Height

    I am developing an application in VB.NET 2008, in which I try to get Desktop Icons Text Width & Text Height. So far I have obtained all desktop icons positions, but I really can't figure by myself how to get Desktop Icons Text Width & Text Height. Here is the VB.NET 2008 code that I use...
  3. D

    Load external file - MemoryStream help

    Ok, Solved it. I managed to copy information from a temporary MemoryStream to the actual target Stream: Stream.Write(tempMemoryStream.ToArray(), 0, tempMemoryStream.length)
  4. D

    Load external file - MemoryStream help

    Hi, I am trying to modify this function that load an external file. Instead of it writing bit by bit to the 'Stream' IOStream, I would like to write the data to a temporary MemoryStream, and then write it to 'Stream' all at once. I think this should be right before the 'Stream.Close()' line...
  5. D

    Get resource file as IO.Stream

    Thank you again, and I'm very sorry with "don't ask questions" expression. Thank you very much for your support.
  6. D

    Get resource file as IO.Stream

    Thank you very much jmcilhinney, Indeed that was the problem I was adding the files two times. You are absolutely wright. Regarding the "don't ask questions like why do you need this", I write this because I posted a lot of different questions on forums and ended up with suggestions that...
  7. D

    Get resource file as IO.Stream

    Here is a review of my question. I am developing a VB.NET 2008 application, consisting of a main EXE application and several resource DLLs. I am having trouble with two functions for the DLL: 1) one function to get a list of all files in the resources of the DLL. 2) one function to return 'by...
  8. D

    Get resource file as IO.Stream

    Hi, I am developing a VB.NET 2008 application, consisting of a main EXE application and several resource DLLs. I need two functions for the DLL: 1) one function to get a list of all files in the resources of the DLL. 2) one function to return 'by name' a resource file as a System.IO.Stream...
  9. D

    Looking for a proper socket keep-alive implementation

    I finally found a solution on this page: TCP keepAlive settings problem Thank you.
  10. D

    Question cross thread call problem

    Thank you very much guys, SynchronizationContext works great and without requesting hidden forms.
  11. D

    Looking for a proper socket keep-alive implementation

    Hello, here is an detailed description of my problem: I am building a Client/Server application in VB.NET 2008. I am looking for the best way to detect when a connection is dropped (not when the server program explicitly disconnects the client, but when the line is ‘cut’). I do not want to...
  12. D

    Question cross thread call problem

    Thanks. Actually I got to the same solution yesterday. It works great in my case (calling without forms).
  13. D

    Question cross thread call problem

    Thank you for your reply, and yes, I know your solution works and I did this many times before. Now what I need is to call a sub on the main thread from a sub running on another thread WITHOUT forms. I know it's not easy, but this is what I need.
  14. D

    Question cross thread call problem

    Hi, 1. the application starts with a main module, that starts a thread loop with: Application.Run() 2. Yes, I know I can make it synchronus, but the application has other things to do in the meantime, plus this connection will remain open for the entire length of the application, and I do not...
  15. D

    Question cross thread call problem

    Hi, Thank you for your reply. I know that, it's pretty easy with forms and controls, but I do not have a form yet, only a module. The application first tries to connect to the server, then the form is created. I want to do this login with code only, not through "hidden" forms. I need to call...
  16. D

    Question cross thread call problem

    Hi, Even though there are many examples of Invoke operations, I can't find something that works for me. (I'm using VS 2008, and working in VB) Here is what i have: A main module with functions (thread 1) that starts a BeginRead for a TCPClient. When the callback function executes (on thread...
Back
Top