Click here to Skip to main content
15,888,521 members
Home / Discussions / C#
   

C#

 
AnswerRe: Create an API in winform Pin
F-ES Sitecore25-Jul-17 22:57
professionalF-ES Sitecore25-Jul-17 22:57 
QuestionMultiple checkbox Pin
sunsher25-Jul-17 1:04
sunsher25-Jul-17 1:04 
AnswerRe: Multiple checkbox Pin
OriginalGriff25-Jul-17 1:19
mveOriginalGriff25-Jul-17 1:19 
GeneralRe: Multiple checkbox Pin
sunsher25-Jul-17 3:22
sunsher25-Jul-17 3:22 
GeneralRe: Multiple checkbox Pin
Eddy Vluggen25-Jul-17 3:37
professionalEddy Vluggen25-Jul-17 3:37 
Questionc # how to split packet in the desire format Pin
Member 1293627224-Jul-17 7:49
Member 1293627224-Jul-17 7:49 
AnswerRe: c # how to split packet in the desire format Pin
OriginalGriff24-Jul-17 8:07
mveOriginalGriff24-Jul-17 8:07 
AnswerRe: c # how to split packet in the desire format Pin
BillWoodruff24-Jul-17 8:45
professionalBillWoodruff24-Jul-17 8:45 
It appears that "u2u" is a section delimiter here; using:
string[] sections = packet.Split(new string[]{"u2u"," | ","||"},StringSplitOptions.RemoveEmptyEntries);
Will get you a 3 element string array where each element contains only the data in that section.

You can easily take each section, use string.Split again to get the section itrms, and then set your Label values accordingly.

I note that your first section has #5 elements; the other sections have #6.

The code I would write for something like this would depend on how reliable I thought the data was: the extent it had regular structure. And, I'd always assume that there would be errors, eventually Smile | :)
«Differences between Big-Endians, who broke eggs at the larger end, and Little-Endians gave rise to six rebellions: one Emperor lost his life, another his crown. The Lilliputian religion says an egg should be broken on the convenient end, which is now interpreted by the Lilliputians as the smaller end. Big-Endians gained favor in Blefuscu.» J. Swift, 'Gulliver's Travels,' 1726CE

QuestionC# Windows Forms and OpenTK (glControl) Pin
mprada24-Jul-17 3:21
mprada24-Jul-17 3:21 
AnswerRe: C# Windows Forms and OpenTK (glControl) Pin
Richard MacCutchan24-Jul-17 3:39
mveRichard MacCutchan24-Jul-17 3:39 
GeneralRe: C# Windows Forms and OpenTK (glControl) Pin
mprada24-Jul-17 3:56
mprada24-Jul-17 3:56 
GeneralRe: C# Windows Forms and OpenTK (glControl) Pin
Richard MacCutchan24-Jul-17 5:03
mveRichard MacCutchan24-Jul-17 5:03 
Generalfirst program in visual c# Pin
dinesh kumar sharma22-Jul-17 20:48
dinesh kumar sharma22-Jul-17 20:48 
QuestionRe: first program in visual c# Pin
Peter_in_278022-Jul-17 21:55
professionalPeter_in_278022-Jul-17 21:55 
GeneralRe: first program in visual c# Pin
OriginalGriff22-Jul-17 22:39
mveOriginalGriff22-Jul-17 22:39 
GeneralRe: first program in visual c# Pin
BenScharbach12-Aug-17 9:31
BenScharbach12-Aug-17 9:31 
Questionmake a video tutorial Pin
Member 1330981721-Jul-17 3:46
Member 1330981721-Jul-17 3:46 
AnswerRe: make a video tutorial Pin
OriginalGriff21-Jul-17 4:02
mveOriginalGriff21-Jul-17 4:02 
GeneralRe: make a video tutorial Pin
Member 1330981721-Jul-17 22:02
Member 1330981721-Jul-17 22:02 
AnswerRe: make a video tutorial Pin
Pete O'Hanlon21-Jul-17 4:49
mvePete O'Hanlon21-Jul-17 4:49 
GeneralRe: make a video tutorial Pin
OriginalGriff21-Jul-17 8:32
mveOriginalGriff21-Jul-17 8:32 
GeneralRe: make a video tutorial Pin
Member 1330981721-Jul-17 22:06
Member 1330981721-Jul-17 22:06 
GeneralRe: make a video tutorial Pin
OriginalGriff21-Jul-17 22:16
mveOriginalGriff21-Jul-17 22:16 
GeneralRe: make a video tutorial Pin
Member 1330981721-Jul-17 22:04
Member 1330981721-Jul-17 22:04 
AnswerRe: make a video tutorial Pin
BenScharbach12-Aug-17 9:32
BenScharbach12-Aug-17 9:32 

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.