Click here to Skip to main content
15,880,725 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to print a recording Pin
OriginalGriff29-Mar-18 2:46
mveOriginalGriff29-Mar-18 2:46 
GeneralRe: How to print a recording Pin
ago248629-Mar-18 4:04
ago248629-Mar-18 4:04 
GeneralRe: How to print a recording Pin
OriginalGriff29-Mar-18 4:25
mveOriginalGriff29-Mar-18 4:25 
GeneralRe: How to print a recording Pin
ago248629-Mar-18 4:33
ago248629-Mar-18 4:33 
GeneralRe: How to print a recording Pin
ago248629-Mar-18 5:15
ago248629-Mar-18 5:15 
GeneralRe: How to print a recording Pin
ago248611-Apr-18 0:35
ago248611-Apr-18 0:35 
GeneralRe: How to print a recording Pin
ago248611-Apr-18 0:37
ago248611-Apr-18 0:37 
QuestionSerialPort DataReceived Event Read Byte ? Pin
ibrahimayhans28-Mar-18 3:28
ibrahimayhans28-Mar-18 3:28 
Hello,
I would like to ask you to share information on a subject,
I am experiencing a problem related to data transmission and data retrieval on an Indicator device connected to a serial port on a project I am developing.
Code I Write For Trial Purpose As Below,

SerialPortTLB_DataReceived Event Overflow Should Not Send on Textbox as Byte,
How can I print the incoming data as Bytes?

I'm Waiting For You About This Issue, Good Work ...

using DevComponents.DotNetBar.Metro;
using System;
using System.Windows.Forms;

namespace VeriOkuma
{
    public partial class VeriOkuma : MetroForm
    {
        public VeriOkuma()
        {
            InitializeComponent();
        }

        private void BTNVeriGonder_Click(object sender, EventArgs e)
        {
            if (!SerialPortTLB.IsOpen)
                SerialPortTLB.Open();
            SerialPortTLB.Write(System.Convert.ToChar(2).ToString() + System.Convert.ToChar(1).ToString() + "DNG" + System.Convert.ToChar(13).ToString());
        }

        private void VeriOkuma_Load(object sender, EventArgs e)
        {
            if (SerialPortTLB.IsOpen)
            {
                SerialPortTLB.Close();
            }
        }

        private void SerialPortTLB_DataReceived(object sender, System.IO.Ports.SerialDataReceivedEventArgs e)
        {
            if (!SerialPortTLB.IsOpen) SerialPortTLB.Open();
            TXBGelenVeri.Text = SerialPortTLB.ReadExisting();
            SerialPortTLB.Close();
        }
    }
}


modified 28-Mar-18 11:21am.

AnswerRe: SerialPort DataReceived Event Read Byte ? Pin
Richard MacCutchan28-Mar-18 3:54
mveRichard MacCutchan28-Mar-18 3:54 
GeneralRe: SerialPort DataReceived Event Read Byte ? Pin
ibrahimayhans28-Mar-18 4:00
ibrahimayhans28-Mar-18 4:00 
GeneralRe: SerialPort DataReceived Event Read Byte ? Pin
OriginalGriff28-Mar-18 4:17
mveOriginalGriff28-Mar-18 4:17 
GeneralRe: SerialPort DataReceived Event Read Byte ? Pin
ibrahimayhans28-Mar-18 4:24
ibrahimayhans28-Mar-18 4:24 
GeneralRe: SerialPort DataReceived Event Read Byte ? Pin
OriginalGriff28-Mar-18 4:26
mveOriginalGriff28-Mar-18 4:26 
GeneralRe: SerialPort DataReceived Event Read Byte ? Pin
ibrahimayhans28-Mar-18 4:28
ibrahimayhans28-Mar-18 4:28 
GeneralRe: SerialPort DataReceived Event Read Byte ? Pin
OriginalGriff28-Mar-18 4:43
mveOriginalGriff28-Mar-18 4:43 
GeneralRe: SerialPort DataReceived Event Read Byte ? Pin
ibrahimayhans28-Mar-18 4:48
ibrahimayhans28-Mar-18 4:48 
GeneralRe: SerialPort DataReceived Event Read Byte ? Pin
OriginalGriff28-Mar-18 5:01
mveOriginalGriff28-Mar-18 5:01 
GeneralRe: SerialPort DataReceived Event Read Byte ? Pin
ibrahimayhans28-Mar-18 4:30
ibrahimayhans28-Mar-18 4:30 
GeneralRe: SerialPort DataReceived Event Read Byte ? Pin
Richard MacCutchan28-Mar-18 4:40
mveRichard MacCutchan28-Mar-18 4:40 
GeneralRe: SerialPort DataReceived Event Read Byte ? Pin
ibrahimayhans28-Mar-18 4:44
ibrahimayhans28-Mar-18 4:44 
GeneralRe: SerialPort DataReceived Event Read Byte ? Pin
Richard MacCutchan28-Mar-18 5:28
mveRichard MacCutchan28-Mar-18 5:28 
GeneralRe: SerialPort DataReceived Event Read Byte ? Pin
ibrahimayhans28-Mar-18 5:37
ibrahimayhans28-Mar-18 5:37 
GeneralRe: SerialPort DataReceived Event Read Byte ? Pin
Richard MacCutchan28-Mar-18 6:03
mveRichard MacCutchan28-Mar-18 6:03 
AnswerRe: SerialPort DataReceived Event Read Byte ? Pin
Gerry Schmitz28-Mar-18 4:12
mveGerry Schmitz28-Mar-18 4:12 
AnswerRe: SerialPort DataReceived Event Read Byte ? Pin
Eddy Vluggen28-Mar-18 5:13
professionalEddy Vluggen28-Mar-18 5:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.