Search:

Type: Posts; User: 2ndmessiah

Page 1 of 4 1 2 3 4

Search: Search took 0.04 seconds.

  1. VS 2015 Tcplistener. From Beginaccepttcpclient to AcceptTcpClientAsync. Is this good?

    It has been a long time since I had to code and even longer since I posted here. I am trying to get the hang of Tasks and async/await. So I am reworking some tcp stuff I did a few years ago. I am...
  2. Re: Need to create movable buttons. Ideas and pointers please.

    I appreciate you taking the time to reply and thanks for the idea.
  3. Need to create movable buttons. Ideas and pointers please.

    I am finally moving into the 21st century and have taken the plunge into WPF, Xaml. I have read some tutorials and have a free 3 months subscription to PluralSight which I plan to use extensively.
    ...
  4. Replies
    2
    Views
    903

    VS 2013 Re: Guidance on saving controls

    That is great thanks.
  5. Replies
    2
    Views
    903

    VS 2013 [RESOLVED] Guidance on saving controls

    It has been some time since I have posted here but I always seem to come back to this great resource when I need help.

    I have a small windows form program that lets the user create controls...
  6. Replies
    5
    Views
    1,094

    Re: Styx - Build v1.11.7.2 [w/Download]

    And your questions is?
  7. Replies
    3
    Views
    2,685

    VS 2012 Re: Encryption and Decryption of Modual

    I know even less than yo do, but the .net framework does have encryption classes.

    would this help.

    http://msdn.microsoft.com/en-us/library/System.Security.Cryptography(v=vs.110).aspx
  8. Replies
    3
    Views
    1,067

    VS 2008 Re: Sending huge Data buffer to Serial Port

    There is something wrong if you are having to use Thread.Sleep.
    Are you using flow control on your serial port? Is it setup correctly?
    You might be overflowing the serialport writebuffer, Its...
  9. Replies
    12
    Views
    1,047

    Re: [RESOLVED] A little Help with IDisposable

    I am getting a better idea now of what "Using" is about. Thanks for all the help.
  10. Replies
    12
    Views
    1,047

    Re: A little Help with IDisposable

    Thats great. I suspected its was my understanding of the subject that was at fault.
    So I should just created a new instance of the NetworkConnectionEventArgs class in the OnNetworkConnectionEvent...
  11. Replies
    12
    Views
    1,047

    Re: A little Help with IDisposable

    @ digitalShaman. Yes, that is what I thought.

    It was this bit of code that that triggered the Idisposable question.



    Private Sub OnNetworkConnectionEvent(ByVal status As Boolean, ByVal...
  12. Replies
    12
    Views
    1,047

    Re: A little Help with IDisposable

    Do you know, I have not. Reading it now. Thanks.
  13. Replies
    12
    Views
    1,047

    [RESOLVED] A little Help with IDisposable

    I have a Class.



    Public Class NetworkConnectionEventArgs
    Inherits EventArgs
    Implements IDisposable
    Public Property NetWorkConnectionStatus As Boolean
    Public Property...
  14. Replies
    5
    Views
    6,653

    Re: using GSM modem to send SMS

    Your code is opening COM23. In your last post you said it is COM24.
    A minor oversight that might be causing you a problem.
  15. Replies
    5
    Views
    6,653

    Re: using GSM modem to send SMS

    looking at your code



    'sending AT commands
    SMSPort.WriteLine("AT")
    SMSPort.WriteLine("AT+CMGF=1" & vbCrLf) 'set command message format to text mode(1)...
  16. Replies
    4
    Views
    1,217

    VS 2010 Re: How do you send and capture keystrokes?

    I had a quick look at the link and on the packaging of the device written in bad English it says
    "Supply API function for dll win OS".
    That suggests there is a dll you could use to interface with...
  17. VS 2010 Re: reading x amount of bytes from a networkstream.

    Thats great. Thanks.
    Just to clarify, this is part of a .dll used for handling tcpclients. When i send data over a tcp connection, I first send 4 bytes (an integer converted to a byte array, which...
  18. VS 2010 reading x amount of bytes from a networkstream.

    I have this.

    Private Function GetXAmountBytes(ByVal amount As Integer) As Byte()
    Dim buffer(amount - 1) As Byte
    Dim BytesRead As Integer = 0
    Dim offset As Integer = 0
    ...
  19. VS 2010 Re: Request for comments on my class which inherits the Tcplistener class

    As long as I don't actually catch fish, it might just be the thing.

    OK now that the IDisposable question has been answered, Is there anything else needed doing. As I said error handling needs...
  20. VS 2010 Request for comments on my class which inherits the Tcplistener class

    I know this needs more work but any comments on what I need to add, to change, to improve would be helpful. I know the error handling has to be improved drastically.


    Imports System.Net
    Imports...
  21. Replies
    2
    Views
    3,430

    Re: Endreceive when Formclosing is intiated

    I feel/think you are misunderstanding the purpose of socket.endreceive.
    see this link
    http://msdn.microsoft.com/en-us/library/w7wtt64b.aspx

    Try closing the socket in the Formclosing method. This...
  22. VS 2010 Re: Need Help : Enable SMS Sending & Receiving on PC through Dongle

    As a very wild guess, because you have not supplied any details of the dongle and if you can treat the dongle as a modem that accepts AT commands look at this link.
    ...
  23. Re: Running long term data grab from separate thread

    BackgroundWorker maybe?
  24. Replies
    2
    Views
    707

    Re: human body detection and mapping

    This looks interesting

    http://news.techeye.net/hardware/company-comes-up-with-ultra-accurate-kinect-alternative
  25. Should I use the BackGroundWorker Class to handle a NetworkStream asychronously.

    I know a Networkstream has BeginRead method (readAsync in .net 4.5 as well) for asychronous operation. I am also aware I can create my own thread to handle this but a backGroundWorker appears to be...
  26. Re: [RESOLVED] Drawing/Placing a "circle" or Image on a button (Like a notification i

    Dang I see this thread is resolved.

    Oh well.... Here is my amateurish try at a button like this. Not quite how I was going to do it but hey! here you go.
  27. Re: Drawing/Placing a "circle" or Image on a button (Like a notification in iOS)

    I am sure Dunfiddlin solution is the correct way, but it occurs to me you could always create your own control which inherits the button class. Make the backcolor transparent. Move the button text to...
  28. VS 2012 Re: Sending GUIDs and a byte array over LAN.

    Thanks for the reply. Yes, the byte array size can vary so I will probaby go for the class method.
  29. VS 2012 [RESOLVED] Sending GUIDs and a byte array over LAN.

    I need to send a couple of GUIDs and a byte array over a LAN.

    I thought about creating a serializable Class containing the GUIDs and byte array as properties. Then binary serialize it into a...
  30. Replies
    1
    Views
    5,817

    Re: Reading Data From Device With IP Address?

    What have you tried?
  31. Replies
    11
    Views
    1,624

    VS 2010 Re: Detect last character of a TextBox

    post removed.
  32. Replies
    11
    Views
    1,624

    VS 2010 Re: Detect last character of a TextBox

    Yes I'm sure for desktop, tablets, phones, pretty much any modern computing equipment Unicode is how it is. In the 21st century we still have to deal with a lot of 20th century technology. The "ASCII...
  33. Replies
    21
    Views
    2,188

    VS 2010 Re: Socket Comms

    You could use the TcpListener class and
    the tcpclient class.

    These help simplify the use of sockets. There are examples in these link but it would be wise to google other examples.
  34. Re: A question about TcpClient.GetStream method.

    I did as Niya suggested, sorry you lost your bet. It does return the same stream.
    Thank you everyone for taking the time to reply and the information I asked for. All I have to do now is remember...
  35. [RESOLVED] A question about TcpClient.GetStream method.

    MSND states.

    GetStream returns a NetworkStream that you can use to send and receive data.

    Ok, good.

    Now the question.

    Everytime I useTcpClient.GetStream (on the same TcpClient), does it...
  36. Replies
    0
    Views
    833

    VS 2010 Is NetworkStream.CanRead accurate?

    Can I rely on the .CanRead Property to confirm that a there is a client connection?
    I normally dont bother with it and use a try/catch block to handle an exceptions such as IOException.
  37. Re: Question about serialport component.

    One thought comes to mind. If your Hand shaking is set to XOn/Xoff. Does it matter if the RTS pin is raised if the pin isnt actually connected to anything. As long as the appropriate flow control...
  38. Re: Question about serialport component.

    I am no expert, but have you read this. ( I am sure you have)

    http://msdn.microsoft.com/en-us/library/system.io.ports.serialport.handshake.aspx

    and this bit about handshaking.
    ...
  39. Replies
    14
    Views
    1,262

    Re: Command Console

    Seems like an opportunity to build a GUI with drop down boxes etc to allow the user to build the query, then a big buton to send it and a Rich text box to display the output.
    It seems to me also...
  40. Replies
    3
    Views
    855

    VS 2010 Re: Create Service

    In saying that....

    http://msdn.microsoft.com/en-us/library/y817hyb6(v=vs.100).aspx
Results 1 to 40 of 157
Page 1 of 4 1 2 3 4



Click Here to Expand Forum to Full Width