回复 1楼好难注册的帖子
首先可以通过调用'Me.TXTextControl1.SectionInsert txBeginAtNewLine, -1 或者 Me.TXTextControl1.SelText = vbNewLine 插入新行,然后调整行高:
- Private Sub mnuInsertFile_Click()
- TXTextControl1.ResetContents
- Dim index As Long
- For i = 1 To 59 Step 1
- FileName = App.Path + "\data\" + CStr(i) + ".txw"
-
- Me.TXTextControl1.Load FileName, 2, 3, True
- 'Me.TXTextControl1.SectionInsert txBeginAtNewLine, -1
-
- Me.TXTextControl1.SelText = vbNewLine
- index = Me.TXTextControl1.SelStart
- Me.TXTextControl1.FormatSelection = True
- Me.TXTextControl1.SelStart = index - 1
- Me.TXTextControl1.SelLength = 2
- Me.TXTextControl1.FontSize = 1
- Next
-
- Me.TXTextControl1.Save App.Path + "\data\" + "\combine.tx", 0, 8
-
- End Sub
复制代码 |