文章目录
- 创建
- 制作界面
- 设置文本样式技巧
- 双击控件实现功能
- 完整代码
vb.net十分适合用于快速开发windows下的桌面程序
创建
制作界面
20个button 一个richtextbox
设置文本样式技巧
‘左键框选全部控件,进行统一属性设置!’
双击控件实现功能
注意控件ID与函数对应
完整代码
Imports System.Windows.Forms.VisualStyles.VisualStyleElementPublic Class Form1Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.ClickTextBox1.Text += "1"End SubPrivate Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.ClickTextBox1.Text += "2"End SubPrivate Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.ClickTextBox1.Text += "3"End SubPrivate Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.ClickTextBox1.Text += "4"