运行程序,可以运行窗体中任意调整控件的位置及大小。
2023-03-29 23:09:43 3KB vb 拖动控件 改变控件大小
1
一劳永逸让VB自动改变控件大小 Private Sub Form_Load()//初始化设置   Picture1.AutoSize = True   Command1.Caption = ″显示网格″   Command2.Caption = ″取消网格″   Form1.Caption = ″显示网格图像演示程序″   End Sub   ----------------   Private Sub Form_Activate()//设置网格颜色   Picture1.ForeColor = vbWhite   Picture1.Move 0, 0   End Sub   ----------------   Private Sub Command1_Click()//显示网格   Dim HLINESNUM As Integer   Dim WLINESNUM As Integer   Dim XX As Integer   Dim I As Integer   Dim J As Integer   Dim YY As Integer   HLINESNUM = 15 //设置网格为15*15显示   WLINESNUM = 15   Picture1.Refresh   Picture1.AutoRedraw = False   XX = Int(Picture1.ScaleWidth / WLINESNUM)   YY = Int(Picture1.ScaleHeight / HLINESNUM)   For I = 1 To HLINESNUM + 1   Picture1.Line (XX * I, 0)-(XX * I, Picture1.Height - 1)   Picture1.Line (0, YY * I)-(Picture1.Width - 1, YY * I)   Next   End Sub   ------------   Private Sub Command2_Click()//取消网格   Picture1.AutoRedraw = False   Picture1.Refresh   End Sub   ------------   Private Sub Form_Unload(Cancel As Integer)   Unload Me //结束程序   End   End Sub
2021-11-21 16:03:55 1KB vblistview
1
Unity UGUI InputField根据内容自动改变控件大小 byU3d2019.2.17.unitypackage 效果看链接:https://blog.csdn.net/luckydogyxx/article/details/105123837
2021-07-01 15:45:16 10KB inputfield 自动改变大
1
VB程序运行时用鼠标拖动改变控件大小的2种方法 就像鼠标放到窗口边缘改变窗口大小一样
2019-12-21 20:08:11 5KB VB 鼠标拖动 改变控件大小
1