假定通用对话框的名称为CommonDialogl,命令按钮的名称为Commandl,则单击命令按钮后,能使打开的对话框的标题为"New Title"的事件过程是______。
A: Pdvate Sub Commandl_click() CommonDialogDialogTitle="New Title" CommonDialogShowPrinter End Sub
B: Private Sub Cormnandl_click() CommonDialogDialogTitle="New Title" CommonDialogShowFont End Sub
C: Private Sub Commandl_click() CommonDialogDialogTitle="New Title" CommonDialogShowOpen End Sub
D: Pfivate Sub Commandl_click() CommonDialogDialogTitle="New Title" CommonDialogShowColor End Sub
A: Pdvate Sub Commandl_click() CommonDialogDialogTitle="New Title" CommonDialogShowPrinter End Sub
B: Private Sub Cormnandl_click() CommonDialogDialogTitle="New Title" CommonDialogShowFont End Sub
C: Private Sub Commandl_click() CommonDialogDialogTitle="New Title" CommonDialogShowOpen End Sub
D: Pfivate Sub Commandl_click() CommonDialogDialogTitle="New Title" CommonDialogShowColor End Sub
举一反三
- 假定通用对话框的名称为CD1,命令按钮的名称为Commandl,则单击命令按钮后,能使打开对话框的标题为“通用对话框”的事件过程是( )。 A: Private Sub Commandl_Click() CD1.DialogTitle=“通用对话框” CD1.ShowPrinter End Sub B: Private Sub Commandl_Click() CD1.DialogTitle=“通用对话框” CD1.ShowFont End Sub C: Private Sub Commandl_Click() CD1.DialogTitle=“通用对话框” CD1.ShowOpen End Sub D: Private Sub Commandl_Click() CD1.DialogTitle=“通用对话框” CD1.ShowColor End Sub
- 假定通用对话框的名称为CommonDialog1,命令按钮的名称为Command1,则单击命令按钮后,能使打开的对话框的标题为“New Title”的事件过程是( )。 A: Private Sub Command1_Click() B: CommonDialog1.DialogTitle="New Title" C: CommonDialog 1.ShowPrinter D: End Sub E: Private Sub Command1_Click() F: CommonDialog1.DialogTitle="New Title" G: CommonDialog1.ShowFont H: End Sub I: Private Sub Command1_Click() J: CommonDialog1.DialogTitle="New Title" K: CommonDialog1.ShowOpen L: End Sub M: Private Sub Command1.Click() N: CommonDialog1.DialogTitle="New Title" O: CommonDialog1.ShowColor P: End Sub
- 窗体上添加有3个命令按钮,分别命名为Commandl、Command2和Command3,编写Commandl的单击事件过程,完成的功能为:当单击按钮Commandl时,按钮Command2可用,按钮Command3不可见。以下正确的是( )。 A: Private Sub Command l Click() Command2.Visible=TrueCommand3.Visible=False B: Private Sub Commandl Click() Command2.Enabled:TrueCommand3.Visible:FalseEnd SubEnd Sub C: Private Sub Commandl_Click() Command2.Enabled=TrueCommand3.Visible=False D: Private Sub Commandl_Click() Command2.Visible:TrueCommand3.Enabled=FalseEnd SubEnd Sub
- 假定通用对话框的名称为CommonDialog1,命令按钮的名称为Command1,则单击命令按钮后,能使打开的对话框的标题为“New Title”的事件过程是______。 A: Private Sub Commandl_Click()CommonDialog1.DialogTitle="NewTitle"CommonDialog1.ShowPrinterEnd Sub B: Private Sub Command1_Click()CommonDialog1.DialogTitle="NewTitle"CommonDialog1.ShowFontEnd Sub C: Private Sub Commslld1_CUck()CommonDialog1.DialogTifie="NewTitle"CommonDialog1.ShowOpenEnd Sub D: PrivateSubCommand1_Click()CommonDialog1.DialogTitle”NewTitle”CommonDialog1.ShowColorEnd Sub
- 假定通用对话框的名称为CommonDialogl,命令按钮的名称为Command1,则单击命令按钮后,能使打开的对话框的标题为“New File”的事件过程是______。 A: Private Sub Command1_Click() CommonDialog DialoqTitle="New File" CommonDialog ShowPrinter End Sub B: Private Sub ComJRandl_Click() CommonDialog DialogTitle="New File" CommonDialog ShowFont End Sub C: Private Sub Command1_Click() CommonDialog DialogTitle="New File" CommonDialog ShowOpen End Sub D: Private Sub Command1_Click() CommonDialog DialogTitle="New File" CommonDialog ShowColor End Sub