皮皮学,免费搜题
登录
搜题
【简答题】
【程序功能】 本程序实现如下功能:在 Windows 窗体中显示主菜单、工具栏和状态栏:为菜单创建快捷键;通过主菜单和工具按钮改变窗体背景图像,并在状态面板中显示图像信息。由指定图像文件名 filename 得到一个 Icon 对象的方法为: new Icon ( filename )。 【操作要求】 新建并保存项目:在 Visual Studio.NET 中,新建一个 Visual C#Windows 应用程序项目,名称设置为 Test3_10 ,位置设置为考生文件夹。 复制图像文件:将 C:\2003CS7\Unit3 文件夹下的三个图像文件 1.ICO , 2.ICO 和 3.ICO 复制到考生文件夹下的 Test3-10\Bin\Debug 子目录中。 1. 按图 3_10a 设计窗体,按图 3_10b 设计主菜单: l 向窗体添加主菜单,并向主菜单中添加一个菜单项和三个子菜单项,为各个菜单项创建快捷键 ; l 向窗体添加工具栏,并向工具栏添加三个工具按钮; l 向窗体添加状态栏,并向状态栏添加一个状态面板; l 各个控件的 Name 及 Test 属性按表 3_10 进行设置,设置窗体 Form1 的 Size 属性( 300 , 270 )、字体为五号常规宋体,控件 statusBar1 显示状态面板,其余保持默认设置。 l 2. 编写菜单的事件处理代码,实现窗体图标变化的功能,并在状态栏中显示选择信息: l 为菜单项 menuItem2 添加鼠标单击事件,在处理代码中改变窗体的图标为 1.ICO ,并在状态面板中显示“ A ”; l 为菜单项 menuItem3 添加鼠标单击事件,在处理代码中改变窗体的图标为 2.ICO ,并在状态面板中显示“ B ”; l 为菜单项 menuItem4 添加鼠标单击事件,在处理代码中改变窗体的图标为 3.ICO ,并在状态面板中显示“ C ”; 3. 编写工具栏的事件处理代码,实现与菜单相同的功能: l 若工具按钮 toolbarButton1 被按下,则实现与单击 menuItem2 相同的功能; l 若工具按钮 toolbarButton2 被按下,则实现与单击 menuItem3 相同的功能; l 若工具按钮 toolbarButton3 被按下,则实现与单击 menuItem4 相同的功能; 4、 程序设计完成之后进行编译,生成项目的 EXE 可执行文件。 【执行结果】 运行程序显示窗体,选择不同的菜单项或单击不同的工具按钮,窗体的图标发生相应的变化,并在状态面板中给出图标信息,如图所示。
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
.
..
皮皮学刷刷变学霸
举一反三
【简答题】Apple and Microsoft each launched new products. One company astonished everyone. The other made people sleepy. Can you guess which was which? You probably guessed wrong. Because Apple, famous for its ...
【简答题】对比互联网金融与传统金融的比较劣势
【单选题】果酱加工的重要工艺是
A.
浓缩
B.
预煮
C.
过滤
D.
打浆
【单选题】----I love Sports News, What about you?   ----__________.It’s too boring.
A.
I can’t stand it.
B.
I like it very much
C.
I do too.
D.
Just so-so.
【单选题】Google launched Google Plus to gain a foothold in the social media market. However, given that there are numerous social networking platforms and Facebook is already a leader in social media, Google P...
A.
incumbent disadvantage现任的劣势
B.
disintermediation disadvantage非居间化劣势
C.
late-mover disadvantagelate-mover
D.
horizontal integration disadvantage水平整合不利
【单选题】China Seeks Donors to Narrow Bone Marrow Gap 1 China has launched a campaign to recruit more bone marrow donors, amid a shortage of funds as well as of sibling donors who could help the growing number...
A.
Urgent Need for Both Donors and Funds
B.
Shortage of Donors
C.
Desperate Leukaemia Patients
D.
Seriousness of the Current Situation
E.
Shortage of Funds
F.
Comparison Between Mainland and Hong Kong and Taiwan Paragraph 2 ______
【单选题】我国正式加入世界贸易组织是在
A.
1947 年
B.
1995 年
C.
2000 年
D.
2001 年
【单选题】什么的发展保留了大量的奴隶?
A.
生产资料
B.
生活方式
C.
生产力
D.
生产量
【单选题】我国正式加入世界贸易组织是在( )
A.
2001年9月
B.
2001年10月
C.
2001年11月
D.
2001年12月
【单选题】I love sports, _______ I don’t play sports.
A.
and
B.
but
C.
because
D.
/
相关题目: