Quote:
Originally posted by richie
I have two textboxes on my form (both the same height and width and positioned alongside each other), two command buttons and a scrollbar. The textboxes have multiline set to true.
In Text1 there are questions and in Text2 there are questions and answers.
Example:
QUESTION 1 QUESTION2
------ ---------------
What is the capital of Spain? What is the capital of Spain?
Madrid
(formatting came out ass-ways)
I want the scrollbar to control both textdboxes. When moved the two boxes move together and the texts are always aligned exactly.
The 2 command buttons are 'Next' and 'Previous'. When 'Next' is clicked it searches for the word 'QUESTION', and that word jumps to the top of both textboxes. (So if someone is looking at QUESTION 1 and they click 'next' it looks for the next QUESTION, QUESTION 2, and this appears at the top of the text boxes. Likewise, if they click 'Previous', it goes to the previous 'QUESTION'.
Anyway, if this is something that you can do in a couple of minutes, great, send it on to me. But it's probably not such a trivial task. If you're interested contact me privately and we'll work something out.
It's definitely not the way I would do it. Have you heard about arrays?? Anyway, this thread is not about this.