VB新手请教:关于动态创建按钮 使用VB编程如何实现这样的功能:在程序运行过程中动态创建按钮 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 动态创建Commond控件:Dim objCommond As Object '文本编辑框Set objCommond = Controls.Add("VB.Commond", "CommondName", Me) Dim WithEvents ctlCommand As VB.CommandButtonPrivate Sub Form_Load()Set ctlCommand = Controls.Add("VB.CommandButton", "ctlCommand1", Me)'设置CommandButton的位置和尺寸ctlCommand = 400 + 200ctlCommand.Left = 20'设置CommandButton的标题ctlCommand.Caption = "点击"'使CommandButton可见ctlCommand.Visible = TrueEnd Sub 关于安装文件的保密性 vbscript中使用wscript.shell的问题 如何在MSFlexGrid控件上删除已选择的多行数据,后台数据库中的数据也要删除 如何改变菜单的字体大小? 用VB开发传奇外挂 怎么改变DataGridView行标题 控件添加不上???------急! textbox控件运行时按鼠标右键有编辑菜单,如何屏蔽? 帮我看看这个程序为什么只能截取内网的封包! 请教高手:如何编程获取另一应用程序控件如文本框中的内容? 关于access数据库的问题??? 有谁知磐英60IA2Socket370NEW主板的驱动程序呀
Dim objCommond As Object '文本编辑框
Set objCommond = Controls.Add("VB.Commond", "CommondName", Me)
Set ctlCommand = Controls.Add("VB.CommandButton", "ctlCommand1", Me)
'设置CommandButton的位置和尺寸ctlCommand = 400 + 200
ctlCommand.Left = 20'设置CommandButton的标题
ctlCommand.Caption = "点击"
'使CommandButton可见
ctlCommand.Visible = TrueEnd Sub