Hi Guys
I hope someone can help me.
I have a vb6 application where I have one richtextbox on form1 on my main screen
and a second richtextbox on form 2 on the extended desktop screen
The text file in both richtext boxes is the same.
When my program highlights a line of text on the richtextbox on form1, with for example:-
richetextbox.selstart = 0
richtextbox.sellenght = 100
then the text is selected ( IE highlighted )
My problem is getting the same section of text to be selected on the second richtextbox on the second form on the extended desktop screen.
I have tried:-
form2.richtextbox.selstart = form1.richtextbox.selstart
form2.richtextbox.sellenght = form1.richtextbox.sellenght
I dont get any error but the section of text on richtextbox on form2 does not highlight
Im my tests I brought up a msgbox to show the selstart and sellenght of the second richtextbox and it reports correctly 0 and 100
I also tried refreshing both the form and the richtextbox on the extended desktop screen, but still no highlight
Any Idea's
Thanks in advance for any help
Regards
David
I hope someone can help me.
I have a vb6 application where I have one richtextbox on form1 on my main screen
and a second richtextbox on form 2 on the extended desktop screen
The text file in both richtext boxes is the same.
When my program highlights a line of text on the richtextbox on form1, with for example:-
richetextbox.selstart = 0
richtextbox.sellenght = 100
then the text is selected ( IE highlighted )
My problem is getting the same section of text to be selected on the second richtextbox on the second form on the extended desktop screen.
I have tried:-
form2.richtextbox.selstart = form1.richtextbox.selstart
form2.richtextbox.sellenght = form1.richtextbox.sellenght
I dont get any error but the section of text on richtextbox on form2 does not highlight
Im my tests I brought up a msgbox to show the selstart and sellenght of the second richtextbox and it reports correctly 0 and 100
I also tried refreshing both the form and the richtextbox on the extended desktop screen, but still no highlight
Any Idea's
Thanks in advance for any help
Regards
David