一个文字编辑器代码,但是输入和显示的操作不行。请求帮助。
下面是一个文字编辑器的代码,但是输入和显示的操作不行。请求帮助。Private Sub Bold_Click()
Text1.FontBold = True
End Sub
Private Sub Clean_Click()
Text1.Text = ""
End Sub
Private Sub Display_Click()
Text1.Text = inptext
End Sub
Private Sub Exit_Click()
End
End Sub
Private Sub Font20_Click()
Text1.FontSize = 20
End Sub
Private Sub Input_Click()
inpt = InputBox("请输入一段文字", "输入对话框")
inptext = inptext & inpt
Text1.Text = inptext
End Sub
Private Sub Italic_Click()
Text1.FontItalic = True
End Sub
Private Sub Normal_Click()
Text1.FontBold = False
Text1.FontItalic = False
Text1.FontUnderline = False
Text1.FontSize = 10
End Sub
Private Sub Under_Click()
Text1.FontUnderline = True
End Sub