窗体操作!在线等待 我想操作form1窗体的cmd新增按扭时,同时操作form2窗体的cmd新增按扭.请问大哥大姐VB代码怎样写, 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 'form1_private sub cmd_click() call form2_cmd_click()end sub 什么意思?如果想在窗体1的cmd按钮中调用窗体2中cmd事件的话 fishmans(金脚指) ( ) 的恢复就解决了。 当按下FORM1窗本的CMD新增时,同时也要调用FORM2的CMD新增,请问VB代码怎样写,最好要详细些,我是新手 工程1.vbp文件内容:Type=ExeForm=窗体1.frmReference=*\G{00020430-0000-0000-C000-000000000046}#2.0#0#C:\WINDOWS\system32\stdole2.tlb#OLE AutomationForm=窗体2.frmStartup="窗体1"HelpFile=""Command32=""Name="工程1"HelpContextID="0"CompatibleMode="0"MajorVer=1MinorVer=0RevisionVer=0AutoIncrementVer=0ServerSupportFiles=0VersionCompanyName="YIWUSOFT.COM"CompilationType=0OptimizationType=0FavorPentiumPro(tm)=0CodeViewDebugInfo=0NoAliasing=0BoundsCheck=0OverflowCheck=0FlPointCheck=0FDIVCheck=0UnroundedFP=0StartMode=0Unattended=0Retained=0ThreadPerObject=0MaxNumberOfThreads=1[MS Transaction Server]AutoRefresh=1 窗体1.frmVERSION 5.00Begin VB.Form 窗体1 Caption = "窗体1" ClientHeight = 3195 ClientLeft = 3240 ClientTop = 3615 ClientWidth = 4680 LinkTopic = "Form1" ScaleHeight = 3195 ScaleWidth = 4680 Begin VB.CommandButton 窗体1新增按钮 Caption = "窗体1新增按钮" Height = 735 Left = 1440 TabIndex = 0 Top = 1080 Width = 1935 EndEndAttribute VB_Name = "窗体1"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = FalseOption ExplicitPrivate Sub 窗体1新增按钮_Click()With 窗体1新增按钮If .Caption = "窗体1新增按钮" Then.Caption = "已点窗体1新增按钮"Load 窗体2窗体2.Visible = True窗体2.窗体2新增按钮_ClickMsgBox "已点 窗体1新增按钮"Else.Caption = "窗体1新增按钮"End IfEnd WithEnd Sub 窗体2.frmVERSION 5.00Begin VB.Form 窗体2 Caption = "窗体2" ClientHeight = 3195 ClientLeft = 8490 ClientTop = 3615 ClientWidth = 4680 LinkTopic = "Form2" ScaleHeight = 3195 ScaleWidth = 4680 Begin VB.CommandButton 窗体2新增按钮 Caption = "窗体2新增按钮" Height = 855 Left = 1440 TabIndex = 0 Top = 1200 Width = 1815 EndEndAttribute VB_Name = "窗体2"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = FalseOption ExplicitPublic Sub 窗体2新增按钮_Click() 'public很重要MsgBox "已点 窗体2新增按钮"End Sub form2 的cmd事件设成 public private sub CMd_click() call form2.cmd_Click()end sub 招一初级VB程序员,工资在两千以上 求救:RichtextBox控件的全角、半角问题? 如何同时取得多个坐标点的颜色值? 如何给vb程序加上图标? 如何获得webbrowser页面中的【全部对象和连接】 哪里能找到有关测试文档的技术资料的网站?谢谢 怎样编写vb中引用ini文件!!! 温州哪里可以买到《程序员》杂志,我寻找了好几个月了!!!!! 用 WINSOCK 控件传文件时,如果遇见大文件怎么办。 EXCEL 列转横 MMControl控件能把视频源放大吗?如果能应该怎么做?急,在线等!! datagrid什么属性可以制约鼠标随意拖拽更改大小
private sub cmd_click()
call form2_cmd_click()
end sub
fishmans(金脚指) ( ) 的恢复就解决了。
Type=Exe
Form=窗体1.frm
Reference=*\G{00020430-0000-0000-C000-000000000046}#2.0#0#C:\WINDOWS\system32\stdole2.tlb#OLE Automation
Form=窗体2.frm
Startup="窗体1"
HelpFile=""
Command32=""
Name="工程1"
HelpContextID="0"
CompatibleMode="0"
MajorVer=1
MinorVer=0
RevisionVer=0
AutoIncrementVer=0
ServerSupportFiles=0
VersionCompanyName="YIWUSOFT.COM"
CompilationType=0
OptimizationType=0
FavorPentiumPro(tm)=0
CodeViewDebugInfo=0
NoAliasing=0
BoundsCheck=0
OverflowCheck=0
FlPointCheck=0
FDIVCheck=0
UnroundedFP=0
StartMode=0
Unattended=0
Retained=0
ThreadPerObject=0
MaxNumberOfThreads=1[MS Transaction Server]
AutoRefresh=1
Begin VB.Form 窗体1
Caption = "窗体1"
ClientHeight = 3195
ClientLeft = 3240
ClientTop = 3615
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3195
ScaleWidth = 4680
Begin VB.CommandButton 窗体1新增按钮
Caption = "窗体1新增按钮"
Height = 735
Left = 1440
TabIndex = 0
Top = 1080
Width = 1935
End
End
Attribute VB_Name = "窗体1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option ExplicitPrivate Sub 窗体1新增按钮_Click()
With 窗体1新增按钮
If .Caption = "窗体1新增按钮" Then
.Caption = "已点窗体1新增按钮"
Load 窗体2
窗体2.Visible = True
窗体2.窗体2新增按钮_Click
MsgBox "已点 窗体1新增按钮"
Else
.Caption = "窗体1新增按钮"
End If
End With
End Sub
VERSION 5.00
Begin VB.Form 窗体2
Caption = "窗体2"
ClientHeight = 3195
ClientLeft = 8490
ClientTop = 3615
ClientWidth = 4680
LinkTopic = "Form2"
ScaleHeight = 3195
ScaleWidth = 4680
Begin VB.CommandButton 窗体2新增按钮
Caption = "窗体2新增按钮"
Height = 855
Left = 1440
TabIndex = 0
Top = 1200
Width = 1815
End
End
Attribute VB_Name = "窗体2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option ExplicitPublic Sub 窗体2新增按钮_Click() 'public很重要
MsgBox "已点 窗体2新增按钮"
End Sub