I work in windows form application c# visual studio 2015

This windows form read data by qr reader device and get it as this formate

30 General Conference of Arab Pharmaceutical Unions
UserName : michel bondq
Country : Egypt
Membership : part

when read qr it give me message above in text file

I created text file and open it by hand and read qr it give me message above

SO THAT

IF i need to read data from device and receive result directly from device in windows form application as following :

textbox1 michel bondq

textbox2 Egypt

textbox3 part

so that my question

if i need to read data directly to windows form how to receive and split data as following :

textbox1 michel bondq

textbox2 Egypt

textbox3 part

if i put cursor mouse in any textbox it read all data in only one textbox

i need to split it to textboxes after every (:) and get value and put in textbox

Greetings,

I cannot understand well what you are trying to do. However, you can use either String.Split Method or String.Substring Method. On the other hand, according to what I understand String.Split Method will be more suitable for your need. I hope my answer helped you in solving your problem.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.