皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【简答题】
阅读以下说明和Visual Basic代码,将应填入(n)处的字句写在对应栏内。 [说明] 本程序实现的功能是查看磁盘上的图片及其基本信息。程序运行界面如下图所示,用户只要逐步选择适当的驱动器、目录和图片文件,图片内容随即显示在界面中央,文件的基本信息则呈现于右侧文本框中。用户还可以删除或复制选中的图片文件。 在开发过程中,驱动器列表框名为Drivel,目录列表框名为Dir1,文件列表框名为File1,图片的显示由Image控件对象Image1来实现,文件信息文本框名为Text1,按钮“删除文件”和“复制到…”分别名为CmdDel和CmdCpy。 [Visual Basic代码] Dim filename As String Dim fso As New (1), file As file Private Sub Form_Load() Set fso = CreateObject('Scripting.FileSystemObject') Drivel.Drive = 'F:' End Sub Private Sub Dir1_Change() File1.path=Dirl.path ’更新文件列表框的路径 End Sub Private Sub Drive1_Change() Dir1.path =(2) ’更新目录列表框的路径 End Sub Private Sub File1_Click()’文件列表框的单击事件响应代码 If Right(Dir1.path, 1) <>'/' Then filename = Dir1.path & '/' & Filel.filename Else filename = Dir1.path & Filel.filename End If Image1.Picture =(3) Set file = fso.GetFile(filename) Text1. Text = '文件名称:' & file.Name & vbCrLf & _ '文件大小:' & file. Size & '字节' & vbCrLf & _ '文件类型:' & file.Type & vbCrLf & _ '创建日期:' & file. DateCreated & vbCrLf & _ '修改日期:' & file. DateLastModified End Sub Private Sub CmdCpy_Chck()’按钮“复制到…”的单击事件响应代码 Dim path As String path = InputBox('请输入目标路径(含文件名):') (4) End Sub Private Sub CmdDel_Click()’按钮“删除文件”的单击事件响应代码 (5) End Sub
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【单选题】When driving, we are ________ to fasten the seat belt for safety.
A.
compelling
B.
compelled
C.
to compel
D.
compel
【单选题】下面不属于戏曲表演来源的是()。
A.
说唱
B.
滑稽表演
C.
诗歌
D.
歌舞
【单选题】When driving, we are ___ to fasten the seat belt for safety.
A.
compelling
B.
compelled
C.
compels
D.
compel
【单选题】When driving, we are ___ to fasten the seat belt for safety.
A.
compel
B.
compelled
C.
compels
D.
compelling
【单选题】关于结构化程序设计原则和方法的描述错误的是
A.
选用的控制结构只准许有一个入口和一个出口
B.
复杂结构应该用嵌套的基本控制结构进行组合嵌套来实现
C.
不允许使用GOTO语句
D.
语言中没有的控制结构,应该采用前后一致的方法来模拟
【单选题】Good luck to you, and _____ all your wishes come true!
A.
can
B.
may
C.
must
D.
should 
【简答题】At times we all get angry when we are driving. It might be because we are stuck in a traffic jam or stuck behind a very slow driver. It might be because we think another driver has done something very...
【简答题】'; if ($a '; if ($a > 99) { echo 'true'; } else { echo 'false'; } echo ''; if ($a '; if ($a >= 99) { echo 'true'; } else { echo 'false'; } echo ''; if ($a == 100) { echo 'true'; } else { echo 'false';...
【简答题】If we are driving a car or crossing a street, we will stop when the traffic lights turn red. Why do we use red rather than other colors? As we know, scattering (散射) happens when light goes through the...
【单选题】Which of the following statement is NOT true?
A.
Irene went to Hong Kong three weeks ago.
B.
Irene did all the stuff her planned to do.
C.
Irene thought Hong Kong was very interesting.
D.
Irene wished she could be in Hong Kong much longer.
相关题目:
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题