Search:

Type: Posts; User: NY2KW

Search: Search took 0.02 seconds.

  1. Re: How Can I specify folder location for my ConfigurationManager MyApp.exe.config fi

    I cannot find any option to enable or disable? I just used Publish Now button. I searched for this option... what are the downsides to disabling it? what type of security am I losing (I require...
  2. How Can I specify folder location for my ConfigurationManager MyApp.exe.config file?

    My desktop application communicates with a external shortwave radio and can read and store specific station names and frequencies for future recall. I have been using Configuration manager to store...
  3. Re: Avoiding Cross Thread warnings during SerialPort.ReceivedData events

    Thank you VERY much for the advise. That code snippet came in from my very early days of getting familiar with serialport handling from within a single form app. I plagiarized it from an example on...
  4. Re: Avoiding Cross Thread warnings during SerialPort.ReceivedData events

    I apologize for not showing all the code. I should have added that I make the serialport declarations and instantiate it in a form "AlphaSerialTerm". Should I instead place this all into a...
  5. Re: Avoiding Cross Thread warnings during SerialPort.ReceivedData events

    Thank you, I do use that method:


    Private Sub SerialPort_DataReceived(ByVal sender As Object, ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) Handles SerialPort.DataReceived
    If...
  6. Re: How to take basic calculations in a text box as an input

    I am a VB beginner as well but it seems to me the biggest difficulty will be parsing the mathematical operators particularly doing multiplication of terms within parenthesis before addition or...
  7. Re: Avoiding Cross Thread warnings during SerialPort.ReceivedData events

    I misspoke there is a hex CR-LF after each packet 0x0D 0x0A that is why .Readline works better than .ReadExisting but that doesn't impact my problem of not knowing if another data packet is coming...
  8. Re: Avoiding Cross Thread warnings during SerialPort.ReceivedData events

    Some additional information. My serialport read event is:



    If SerialPort.BytesToRead > 0 Then
    ReceiveBuffer = SerialPort.ReadLine
    'ReceiveBuffer =...
  9. Avoiding Cross Thread warnings during SerialPort.ReceivedData events

    My program reads a serialport data packet stream from a remote device. The serialport read is event driven:


    Private Sub SerialPort_DataReceived(ByVal sender As Object, ByVal e As...
  10. Re: How to access one instance of SerialPort on Different Forms

    Thanks
  11. [RESOLVED] How to access one instance of SerialPort on Different Forms

    I have set up the program with a Module and several forms where writing and reading from a single serialport will be done.

    I declare the serialport:


    Module Module1
    Public MyPort As...
  12. VS 2019 Re: Fastest routine to poll an external serial device?

    Thank you. This will keep me occupied for a while :-) Besides responding to commands with response strings... the amplifier when in operate mode sends out some independent status information every...
  13. VS 2019 Fastest routine to poll an external serial device?

    I want to poll (every 50 msecs) an external radio for real-time status through its serial port. The status strings are very short (5-15 characters) which will be displayed in a panel of textboxes . ...
  14. Re: Stopwatch to time Serial Port Events seems way off ---

    Thank you, that worked. I thought that adding watchStart() in the button_click would reset it to zero.
  15. [RESOLVED] Stopwatch to time Serial Port Events seems way off ---

    I am sending and receiving string commands to an external device using serialport functions. I want to time the send-to-receive cycle, using VB NET StopWatch function, I start the stopwatch just...
  16. Re: VB NET VS 2019 - Need Help Reading Serial Port - Please !

    passel, you are super-smart !! It wasn't DTR but when i enabled RTS i now can read the buffer !! I did not think to set these because every general Terminal program I have tried (and there are...
  17. Re: VB NET VS 2019 - Need Help Reading Serial Port - Please !

    How would one of the 'terminal' programs know if DTR or RTS had to be set high or low? I have tried several and only set com, baud, parity, stop bits and they write/read my amplifier just fine. I...
  18. Re: VB NET VS 2019 - Need Help Reading Serial Port - Please !

    It is an old fashion DB9/RS232 on the amplifier and DB9 serial on the back of an Asus Laptop---no USB or other adapter. I have used several terminal programs with the settings I mentioned earlier...
  19. Re: VB NET VS 2019 - Need Help Reading Serial Port - Please !

    Still not working. I know the wiring is correct because I can use any terminal program like PuTTY or Hyperterminal and only set the serialport to COM5, 9600, non parity, 1 stop bit and it works. In...
  20. Re: VB NET VS 2019 - Need Help Reading Serial Port - Please !

    Thank you. I tried this but the program just hangs, frozen...



    Public Class Form1
    Dim WithEvents MyPort As SerialPort = New System.IO.Ports.SerialPort("COM5", 9600, Parity.None, 8,...
  21. [RESOLVED] VB NET VS 2019 - Need Help Reading Serial Port - Please !

    I have an external ham radio that is controlled through serial string commands that return a data string of varying length but usually < 20 characters. Any terminal program like PuTTY can be used. ...
  22. Replies
    6
    Views
    946

    VS 2019 Re: Newbie Learning VB.Net

    Thank you and understood. I also searched "VB.NET Handles" and found dozens of queries but none related to my problem. I guess I should hare noticed how 'Handles' was formatted in the context of...
  23. Replies
    6
    Views
    946

    VS 2019 Re: Newbie Learning VB.Net

    Thank you for the help, its very much appreciated. Can you advise a beginner like me how to navigate around these kind of errors? There was no clue as to what the syntax error... perhaps this was...
  24. Replies
    6
    Views
    946

    VS 2019 [RESOLVED] Newbie Learning VB.Net

    I am just starting out in VB.Net, VS Community 2019. I am following the MS VB Tutorial and have gotten to the point of creating a Windows Forms App (.NET Framework) project so simple it seems...
Results 1 to 24 of 24



Click Here to Expand Forum to Full Width