吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 504|回复: 1
收起左侧

[学习记录] vb.net控件学习 StatusStrip1控件、MenuStrip1控件、ContextMenuStrip1控件

[复制链接]
AIabcd 发表于 2024-7-12 18:02
本帖最后由 AIabcd 于 2024-7-13 07:31 编辑

1.png
Private Sub 剪切ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 剪切ToolStripMenuItem.Click, ToolStripMenuItem1.Click
    RichTextBox1.SelectAll()
    RichTextBox1.Cut()
    ToolStripStatusLabel2.Text = "剪切"
End Sub

Private Sub 复制ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 复制ToolStripMenuItem.Click, ToolStripMenuItem2.Click
    RichTextBox1.Copy()
    ToolStripStatusLabel2.Text = "复制"
End Sub

Private Sub 粘贴ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 粘贴ToolStripMenuItem.Click, ToolStripMenuItem3.Click
    RichTextBox2.Paste()
    ToolStripStatusLabel2.Text = "粘贴"
End Sub

Private Sub 清空ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 清空ToolStripMenuItem.Click, ToolStripMenuItem4.Click
    RichTextBox2.Clear()
    ToolStripStatusLabel2.Text = "清空"
End Sub

Private Sub Form1_Load(sender As Object, e As EventArgs) Handles Me.Load
    ToolStripStatusLabel3.Text = Now
End Sub

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    RichTextBox1.Text = "欢迎来到吾爱论坛"
End Sub

控件.zip

74.53 KB, 下载次数: 0, 下载积分: 吾爱币 -1 CB

源码

免费评分

参与人数 1热心值 +1 收起 理由
zcchk135820 + 1 我很赞同!

查看全部评分

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

嫑只喊呺 发表于 2024-7-13 00:03
前排向大神学习一下~~~~
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-11-24 14:28

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表