Click here to Skip to main content
15,891,375 members
Home / Discussions / C#
   

C#

 
AnswerRe: Generate unique number from C# string Pin
BillWoodruff2-Apr-18 23:41
professionalBillWoodruff2-Apr-18 23:41 
GeneralRe: Generate unique number from C# string Pin
MiteshUmta3-Apr-18 5:16
MiteshUmta3-Apr-18 5:16 
GeneralRe: Generate unique number from C# string Pin
BillWoodruff3-Apr-18 7:46
professionalBillWoodruff3-Apr-18 7:46 
AnswerRe: Generate unique number from C# string Pin
MadMyche4-Apr-18 5:16
professionalMadMyche4-Apr-18 5:16 
SuggestionRe: Generate unique number from C# string Pin
Richard Deeming4-Apr-18 7:30
mveRichard Deeming4-Apr-18 7:30 
AnswerRe: Generate unique number from C# string Pin
Pete O'Hanlon4-Apr-18 8:45
mvePete O'Hanlon4-Apr-18 8:45 
AnswerRe: Generate unique number from C# string Pin
BillWoodruff4-Apr-18 14:00
professionalBillWoodruff4-Apr-18 14:00 
QuestionSerialPort.ReadLine() ? Pin
ibrahimayhans2-Apr-18 2:11
ibrahimayhans2-Apr-18 2:11 
Hello, I am requesting you to help me on a topic,
Indicator Device Connected to Computer with Serial Port
The following information is coming when I watch Putty

[url=https://hizliresim.com/5D6MAD][img]https://i.hizliresim.com/5D6MAD.png[/img][/url]

When I Test On C # Using the Following Codes

C#
string GelenVeri = SerialPortKBS.ReadLine();
GelenVeri.Substring(6, 6);
listBox1.Items.Add(GelenVeri);
LBLAgirlikDurumu.ForeColor = System.Drawing.Color.Red;
LBLAgirlikDurumu.Text = "";
LBLAgirlikDurumu.Text = GelenVeri;
listBox1.SelectedIndex = listBox1.Items.Count - 1;
listBox1.SelectedIndex = -1;


C#
string ReceivedString = "";
if (SerialPortKBS.BytesToRead > 0)
{
byte[] ret = new byte[SerialPortKBS.BytesToRead];
SerialPortKBS.Read(ret, 0, ret.Length);
ReceivedString = Encoding.ASCII.GetString(ret);
if (ReceivedString.Length > 6)
ReceivedString = ReceivedString.Substring(5, 6);
LBLAgirlikDurumu.Text = ReceivedString;
}


When Weight is Weighted on a Scale Always Values Are as Below but Weight on the Indicator
Always reads the first time I read it with SerialPort.ReadLine (). Does not Show Last Value
Too Many Experiences But I Was Not Successful, Are You Help?
AnswerRe: SerialPort.ReadLine() ? Pin
Gerry Schmitz2-Apr-18 6:49
mveGerry Schmitz2-Apr-18 6:49 
Questiondesigning around the need for an abstract static method Pin
Alexander Kindel1-Apr-18 15:21
Alexander Kindel1-Apr-18 15:21 
AnswerRe: designing around the need for an abstract static method Pin
Alexander Kindel1-Apr-18 16:02
Alexander Kindel1-Apr-18 16:02 
GeneralRe: designing around the need for an abstract static method Pin
Alexander Kindel1-Apr-18 20:25
Alexander Kindel1-Apr-18 20:25 
GeneralRe: designing around the need for an abstract static method Pin
#realJSOP2-Apr-18 1:05
mve#realJSOP2-Apr-18 1:05 
GeneralRe: designing around the need for an abstract static method Pin
Alexander Kindel2-Apr-18 8:45
Alexander Kindel2-Apr-18 8:45 
AnswerRe: designing around the need for an abstract static method Pin
Gerry Schmitz2-Apr-18 6:44
mveGerry Schmitz2-Apr-18 6:44 
AnswerRe: designing around the need for an abstract static method Pin
BillWoodruff2-Apr-18 21:43
professionalBillWoodruff2-Apr-18 21:43 
GeneralRe: designing around the need for an abstract static method Pin
Alexander Kindel7-Apr-18 16:06
Alexander Kindel7-Apr-18 16:06 
GeneralRe: designing around the need for an abstract static method Pin
Alexander Kindel8-Apr-18 0:57
Alexander Kindel8-Apr-18 0:57 
AnswerC# Pin
Member 137573041-Apr-18 8:59
Member 137573041-Apr-18 8:59 
GeneralRe: C# Pin
OriginalGriff1-Apr-18 8:31
mveOriginalGriff1-Apr-18 8:31 
GeneralRe: C# Pin
PIEBALDconsult1-Apr-18 9:01
mvePIEBALDconsult1-Apr-18 9:01 
QuestionPlease help me with my basic c# calculator loop function Pin
Florence Gray31-Mar-18 15:46
Florence Gray31-Mar-18 15:46 
AnswerRe: Please help me with my basic c# calculator loop function Pin
OriginalGriff31-Mar-18 20:00
mveOriginalGriff31-Mar-18 20:00 
AnswerRe: Please help me with my basic c# calculator loop function Pin
Richard MacCutchan31-Mar-18 20:58
mveRichard MacCutchan31-Mar-18 20:58 
RantCoding error missing reference Pin
uighgg ojgeojge31-Mar-18 1:36
uighgg ojgeojge31-Mar-18 1:36 

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.