dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: How to split data to text boxes when read qr code data ?

  1. #1
    Join Date
    Dec 2016
    Posts
    13

    How to split data to text boxes when read qr code data ?

    How to split data to text boxes when read qr code data ?

    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

    please help me

  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,171

    Re: How to split data to text boxes when read qr code data ?

    Read the data from the file.

    Read the first line and store it.
    Read the second line and Split by ':' and extract and trim to retrieve the data
    Read the third line and split, extract and trim
    Read the forth line and split, extract and trim

    Use the above data to set the text box values.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)