Search results

  1. Thonord

    Checking for Server

    Thank you, that was really helpful. If TimeOut, close socket, Force an exeption. :) Tom
  2. Thonord

    Checking for Server

    Thank you and after using a free c# - Vb.net converter I am trying the code, but it don't seem to work for me. It throws an exception whether the client is connected or not - eh I think. I really don't understand the code. But I can set the time delay before it does what it does to the thread ...
  3. Thonord

    Checking for Server

    I'd like to continue this thread, but rephrase it: "Checking for a Client" and changing the timeout. If I: Dim client As New TcpClient("10.0.0.19", 5067) and there is nobody with that IpAddy on my local network, the Dim timeouts after 20 sec. I want to set a shorter Timeout. Is that possible?
  4. Thonord

    Checking for Server

    Again, thank you very much.
  5. Thonord

    Checking for Server

    I'm trying to check if a server is present on the network I thought the client could create a non blocking socket, connect to it within a Try Catch and either get a response or an exception. The code below demonstrates my thoughts. For testing purposes I use a "Hard Wired" IpAddy where I know...
  6. Thonord

    Why square brackets [ ] in a declaration

    Shifting the topic to braces: Dim data As [Byte]() = System.Text.Encoding.ASCII.GetBytes(message) 'Code calling TcpServer ' Receive the TcpServer.response. ' Buffer to store the response bytes. data = New [Byte](256) {} What is the purpose of the squiggly ones?
  7. Thonord

    Why square brackets [ ] in a declaration

    Thank you very much gentlemen. Tom P.S. Even though I now know their proper designation, I reject them and substitute them with my own: () "Parentes", {} "C#type" and [] boks.
  8. Thonord

    Why square brackets [ ] in a declaration

    As in: strServer As [String] as opposed to: strServer As String?
  9. Thonord

    Ip Addys

    Thank you.
  10. Thonord

    Ip Addys

    Greetings again, Oracles of VB.NET. I humbly approach again, carrying a query, seaking your wisdom. I'm the old Clipperhead, now an autodidact VB.NET hobby programmer wannabe. Background: I identify a user (Lets call him Charlie) if he connects to a Wifi network I am also connected to. The...
  11. Thonord

    Question How to get X&Y coord when using MouseHover and set MouseHover-time and -size sysparas

    Again thanks a lot guys. jmcilhinney, so All I have to do is download .-NET Framework 4.5? RogerWilco! JohnH, on the issue of MouseHover parameters - I give up, but not without trying. I now have these two following functions, curtisy of a free C# - vb converter Private Function...
  12. Thonord

    Question How to get X&Y coord when using MouseHover and set MouseHover-time and -size sysparas

    How to get X&Y coord when using MouseHover and set MouseHover-time and -size sysparas I have information related to locations in bitmaps. I extract the info and process as needed by using the MouseClick event's e. (X&Y). Works OK, but I have discovered the MouseHover event and it seems...
  13. Thonord

    Question "skew" image

    Ok, now I understand :). I actually read that, but couldn't fathom the implications. now I do.
  14. Thonord

    Question "skew" image

    And it was:) Found this in msdn: Public Sub DrawImagePara(e As PaintEventArgs)' Create image.Dim newImage As Image = Image.FromFile("SampImag.jpg")' Create parallelogram for drawing image.Dim ulCorner As New Point(100, 100)Dim urCorner As New Point(550, 100)Dim llCorner As New Point(150...
  15. Thonord

    Question "skew" image

    Without even trying, your solution seems "Spot on". As always Hjertelig takk Thormod.
  16. Thonord

    Question "skew" image

    I'm trying to "slant" a bitmap. Not rotate as in RotateTransform. Let me explain using an italics font as an example. The font is slanted at an angle, but horisontal elements remain horisontal, no matter how much the vertical elements are angled. (Look at the letter "t" in italics. The...
  17. Thonord

    Question Struggling with DirectoryInfo and FileInfo classes.

    That simple - huh? I should have thought about that - actually I knew that - I mean, I come from an environment where the importance of closing files is second nature. Guess I thought the garbage collector in .NET was intuitive enough to know when I don't need stuff any more. Thank you very...
  18. Thonord

    Question Struggling with DirectoryInfo and FileInfo classes.

    Hi,I'm an old Clipperhead and vb5+ hobby programmer - now VB.NET wannabe. I have a bundle of small grafics files, several hundreds, in a number of directories and I want to resize them, maintaining the same filenames and directory structure. I can do it in VB.NET, but my code is still in "VB5...
  19. Thonord

    Question Is it possible to disable the PictureBox Paint event?

    No doubt, the work-around works. I just need to find all "the stuff" I do that causes either a PanelPaint or a PicBoxpaint - but I shall prevail:) Thanks again.
  20. Thonord

    Question Is it possible to disable the PictureBox Paint event?

    Thank you very much Ian. I'll try it tomorrow.
Top Bottom