皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【简答题】
【 程序功能 】 本程序实现如下功能:在 Windows 窗体中绘制文本和一组同心圆环:打印文本和同心圆环,并实现打印预览功能。 【操作要求】 复制并打开项目:将 C : \2003CS7\Unit6 文件夹下的 Test6_4 子目录完整的复制到考生文件下,并在 Visual Studio.NET 中打开位于考生文件夹下 Test6_4 子目录中的 Test6_4 项目。该项目是一个 Windows 应用程序项目,窗体如图所示,空间的 Name 几 Text 属性如表所示。 1. 绘制文本 : 为窗体增加绘制事件,再处理代码中,以坐标( 10,20 )为起点,绘制文本“这是一组同心圆”,文本字体与窗体字体相同,文本颜色为黑色 Black 。 2. 绘制同心圆: 以坐标( 120,120 )为圆心,分别绘制 80 、 60 、 40 、 20 个像素的四个圆,,填充颜色分别为红色 Red 、黄色 Yellow 、蓝色 Blue 、绿色 Green 。 3. 实现打印功能: l 为窗体增加一个打印文档控件 printDocument1 ,为控件增加打印事件,在处理代码中打印出窗体中相同像素单位的文本和同心圆环; l 为按钮 button1 增加鼠标单击事件,在处理代码中调用 printDocument1 的打印事件。 4 实现打印预览和页面设置 l 为窗体添加一个打印预览对话框控件 printPreviewDialog1 和一个页面设置对话框控件 pageSetupDialog1, 均设置为与 printDocument1 相关联; l 为按钮 button2 增加鼠标单击事件,在处理代码中显示打印预览对话框; l 为按钮 button3 增加鼠标单击事件,在处理代码中显示页面设置对话框; 5 程序设计完成后进行编译,生成项目的 EXE 可执行文件。 【执行结果】 运行程序显示窗体,窗体中绘制出一行文本和一组同心圆环。如图 6-4b 所示。如果正确地安装了打印机,当按下“打印”按钮时,则打印出相应的文本和同心圆环:当按下“页面设置”按钮时,显示“页面设置”对话框,可对打印纸张进行设置。如图 6-4c 所示:当按下“打印预览”按钮时,显示“打印预览”对话框,可与看文本和同心圆环的打印效果,如图 6-4d 所示。 图 6-4b 图 6-4c 图 6-4d
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【多选题】Which are the signal words to discuss serveral apsects of a certai n topic.
A.
firstly
B.
second
C.
finally
D.
then
【单选题】After reading the passage, we learn that______
A.
the author believes that crime will certainly promote the rappers' album.
B.
the conventional wisdom of crime's connection with credibility is always true.
C.
being put into jail will not necessarily help a rappers' career.
D.
being put into jail may change the perceptions fans already have.
【单选题】It isn't quite _______ that he will be present at themeeting.
A.
sure
B.
bright
C.
certain
D.
exact
【简答题】请以小组为单位用您手机中任意应用程序,任选功能为例使用等价类划分和边界值分析两种方法编写测试用例,并在翻转课堂呈现评比。 组长协调: 每组需要选择一个应用,且去其他组不重复,请组长尽快报备所选应用给助教确认是否有重复,无重复,尽快分配任务完成每个人负责部分。 提交作业: 1.组员:组长:XXX已提交。 2.组长:组员名单,以及全组设计测试用例作品,小组分工,作品中需要标记哪部分是谁做的。
【单选题】Education is primarily the responsibility of the states. State constitutions set up certain standards and rules for the establishment of school. State laws require children to go to school until they ...
A.
The National Defense Education Act.
B.
The Elementary and Secondary Education Act.
C.
The Independence Act.
D.
Both A and B.
【判断题】拉深系数越小,说明拉深变形程度越大。()
A.
正确
B.
错误
【单选题】战后导致两极格局形成的基础是( )
A.
维也纳体系
B.
威斯特伐利亚秩序
C.
凡尔赛—华盛顿秩序
D.
雅尔塔体制
【单选题】Systems of inbound and outbound lanes to promote the safe flow of vessel traffic in certain areas around the world are known as ______.
A.
merchant vessel reporting systems
B.
traffic separation schemes
C.
collision avoidance fairways
D.
restricted maneuverability channels
【单选题】I hope they will finish the project in time, but they themselves are very_____ that it will.
A.
certain
B.
confident
C.
doubtful
D.
suspicious
【判断题】拉深系数越小,说明拉深变形越大。()
A.
正确
B.
错误
相关题目:
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题