Home > Software engineering >  How to input switching between two RichTextBox object
How to input switching between two RichTextBox object

Time:09-30

Suppose I use vb to create two RichTextBox object, when the first RichTextBox1 text in the input will be more than RichTextBox1 shows the height of the window, the cursor automatically jump to RichTextBox2, if can achieve, can achieve RichTextBox paging, a great god, please give directions, thank you!

CodePudding user response:

I am using vb2013,

CodePudding user response:

Full state can judge?

CodePudding user response:

'Private Sub RichTextPrintCtl_ContentsResized (sender As Object, e As ContentsResizedEventArgs) Handles Me. ContentsResized
'If TACLine=True Then
'Me. Height=e.N ewRectangle. Height
'End If
'If nextRTPC=True Then
'If e.N ewRectangle. Height & gt;=Me. Height Then
'Try
'nextObj. Focus ()
'Catch the ex As Exception
'End Try
'End If
'End If
'End Sub
This is my find the code.

CodePudding user response:

If I could get a width and height of the characters in the RICHTEXTBOX, it's good that this is the http://bbs.csdn.net/topics/390369562 full state before I can judge

Make a mark

CodePudding user response:

http://bbs.csdn.net/topics/30169372

Looked at the above, to the height of the RTB, don't know if I can, by using the method of summation to problem solve?
  • Related