TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
george
NA
23
46.1k
string problem
Oct 22 2008 3:22 PM
hi guys i m beginner in c# and i wand a help with strings!
i have search for help 3months ago but i start agen the project now
i have design a micro controller project that sen in serial port some character strings that contains at the beginning three characters!
the characters is two dashhes ## with a number inside
e.g. #1#
the micro controller part working OK bun th c# software that read this data i have problem with the strings!
i recive data with the
private void serialPort1_DataReceived(object sender, System.IO.Ports.SerialDataReceivedEventArgs e)
{
//RxString = serialPort1.ReadExisting();
RxString = serialPort1.ReadLine();
this.Invoke(new EventHandler(DisplayText));
}
and display with
private void DisplayText(object sender, EventArgs e)
{
textBox1.AppendText(RxString);
}
this works but i wand when the string detect #1# to display the rest characters of string in first line and when detects #2# to display in second line!
string format example
#1#vdfkm fskjf jklfkgj #2#kfldjdfgbkdj #1#mlkfjgvfdjgdf...........
can someone help me on this
thanks and sorry for my bad english
Reply
Answers (
1
)
Multiple Asynchronous request in c#
C# and MS EXCHANGE