Click here to Skip to main content
15,892,643 members
Home / Discussions / C#
   

C#

 
GeneralRe: Im curious of answers Pin
Jesse Glover5-Aug-15 9:43
Jesse Glover5-Aug-15 9:43 
GeneralRe: Im curious of answers Pin
Ravi Bhavnani5-Aug-15 9:49
professionalRavi Bhavnani5-Aug-15 9:49 
GeneralRe: Im curious of answers Pin
Jesse Glover5-Aug-15 10:31
Jesse Glover5-Aug-15 10:31 
AnswerRe: Im curious of answers Pin
Mycroft Holmes5-Aug-15 14:26
professionalMycroft Holmes5-Aug-15 14:26 
GeneralRe: Im curious of answers Pin
Jesse Glover5-Aug-15 14:29
Jesse Glover5-Aug-15 14:29 
GeneralRe: Im curious of answers Pin
Mycroft Holmes5-Aug-15 14:47
professionalMycroft Holmes5-Aug-15 14:47 
GeneralRe: Im curious of answers Pin
pkfox6-Aug-15 20:34
professionalpkfox6-Aug-15 20:34 
QuestionGet a partial string reading PORT via rs232 Pin
goldsoft5-Aug-15 8:49
goldsoft5-Aug-15 8:49 
hi
i have this C# code for reading port via rs232
C#
port = new SerialPort(MyParam._COM, Brate, Parity.None, 8, StopBits.One); //COM7
port.DataReceived += new System.IO.Ports.SerialDataReceivedEventHandler(Recepcion);
private SerialPort port;
string Recibidos;

 private void Recepcion(object sender, System.IO.Ports.SerialDataReceivedEventArgs e)
        {
            try
            {
                Recibidos = "";
                Application.DoEvents();
                System.Threading.Thread.Sleep(122);
                Recibidos += port.ReadExisting();
                this.Invoke(new EventHandler(Actualizar));
            }
            catch { }

 string text;
 decimal dTEXT;
        private void Actualizar(object s, EventArgs e)
        {
            text = Recibidos.Trim();
            lblMSG.Text = text;
      }

I have a weight attached to rs232 and i get Strange reading.

for example - if the weight show 14.23 Kg

i see:

14.23 Kg

0

14.

14.2

14.23

14.23 Kg

How to show the exact weight without breaking the string ?
AnswerRe: Get a partial string reading PORT via rs232 Pin
PIEBALDconsult5-Aug-15 9:41
mvePIEBALDconsult5-Aug-15 9:41 
AnswerRe: Get a partial string reading PORT via rs232 Pin
Ravi Bhavnani5-Aug-15 9:47
professionalRavi Bhavnani5-Aug-15 9:47 
GeneralRe: Get a partial string reading PORT via rs232 Pin
goldsoft5-Aug-15 20:07
goldsoft5-Aug-15 20:07 
QuestionMaintain scroll position in datagrid after edit: Silverlight and c# Pin
Member 77023085-Aug-15 2:48
Member 77023085-Aug-15 2:48 
Questionlooking for C# sample code reading weight Through rs232 - WinForm Pin
goldsoft5-Aug-15 1:09
goldsoft5-Aug-15 1:09 
AnswerRe: looking for C# sample code reading weight Through rs232 - WinForm Pin
OriginalGriff5-Aug-15 1:25
mveOriginalGriff5-Aug-15 1:25 
AnswerRe: looking for C# sample code reading weight Through rs232 - WinForm Pin
HaldorPhil20-Aug-15 6:36
HaldorPhil20-Aug-15 6:36 
Question#SNMP not return values of ifInObtets, ifOutObtets, ifSpeed when query. Pin
LeHuuTien4-Aug-15 16:49
LeHuuTien4-Aug-15 16:49 
QuestionRe: #SNMP get values of ifInObtets, ifOutObtets, ifSpeed based on OID Pin
ZurdoDev5-Aug-15 1:15
professionalZurdoDev5-Aug-15 1:15 
AnswerRe: #SNMP get values of ifInObtets, ifOutObtets, ifSpeed based on OID Pin
Richard MacCutchan5-Aug-15 1:26
mveRichard MacCutchan5-Aug-15 1:26 
QuestionC# Pin
jubayer4-Aug-15 2:51
jubayer4-Aug-15 2:51 
AnswerRe: C# Pin
Pete O'Hanlon4-Aug-15 3:12
mvePete O'Hanlon4-Aug-15 3:12 
AnswerRe: C# Pin
Eddy Vluggen4-Aug-15 3:18
professionalEddy Vluggen4-Aug-15 3:18 
Question#SNMP Calculate Bandwidth Utilization Pin
LeHuuTien3-Aug-15 22:07
LeHuuTien3-Aug-15 22:07 
AnswerRe: #SNMP Calculate Bandwidth Utilization Pin
Guerrilla Coder3-Aug-15 22:49
Guerrilla Coder3-Aug-15 22:49 
GeneralRe: #SNMP Calculate Bandwidth Utilization Pin
LeHuuTien4-Aug-15 2:28
LeHuuTien4-Aug-15 2:28 
Questioni am not getting my desired results Pin
Dark Commet3-Aug-15 0:18
Dark Commet3-Aug-15 0:18 

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.