简体   繁体   中英

Fill Textbox on Button click

单击Button1时如何使某些文本显示在RichTextbox1中?

You could subscribe to the Click event of the button and then set the Text property of the richtextbox:

Public Sub Button1_Click(ByVal sender As Object, ByVal args As EventArgs) Handles Button1.Click
    RichTextbox1.Text = "This is the text"
End Sub

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM