Drag-Drop

  • Thread starter Thread starter xcor635
  • Start date Start date
X

xcor635

Guest
I am trying to create a data conversion program. I would like to have a textbox at the top of my form that will display one line of text that read in from a file. The file will be a fixed width file containing user information. Lets call this txtbox txtSource.

I will have 5-50 text boxes on the lower portion of my form (i.e. txtFName, txtLName, txtAdd1, txtAdd2, txtCity, txtState, txtZip)

The user will highlight a particular portion of txtSource and drag/drop it into the corrosponding box on the bottom. The user will do this for each of the 5-50 boxes.

When they drag this in, I would like to see a line from the txtSource to the corrosponding destination box.

The way I see this happening is that if a user highlights characters 1-22 of txtSource, and drags/drops into txtLName, this position will be memorized so when the translations are finished, and they click a button, the corrosponding data is written to a propritory application.

This is important because the text file that is read in, Characters 1-22 will always be mapped to txtLName. The text file may be 10,000 lines or more.

Please help me get started or lead me in the right direction. I have included a screen shot of an app we use for other conversions, and would like to put something together simular. I do not have source for the current one.
 
Back
Top