1、 / C# Form1 myForm; myForm = Form1.CreateForm();B. VB myForm.Show() / C# myForm.Show();C. myForm = Form1 myForm = Form1;D. myForm = New Form1() myForm = new Form1();2. Which of the following code snippets correctly demonstrates how to set a form to a nonrectangular shape? (C)下面的代码片段演示了如何设置非矩形形状的形式?A
2、. Dim aPath As New System.Drawing.Drawing2D.GraphicsPath aPath.AddEllipse(0, 0, this.Width, this.Height) Me.Region = New Region(); System.Drawing.Drawing2D.GraphicsPath aPath = new System.Drawing.Drawing2D.GraphicsPath(); aPath.AddEllipse(0, 0, Me.Width, Me.Height); this.Region = new Region(); aPath
3、.AddEllipse(0, 0, Me.Width, Me.Height) aPath.AddEllipse (0, 0, this.Width, this.Height); Me.Region = New Region(aPath) aPath.AddEllipse(0, 0, this.Width, this.Height); this.Region = new Region(aPath); Me.Region = aPath this.Region = aPath;3. Which of the following code samples correctly sets the tit
4、le, border style, size, and opacity of a form? (A)下面的代码样本中正确设置的标题,边框样式,大小和不透明度的一种形式? Me.Text = My Form Me.FormBorderStyle = FormBorderStyle.Fixed3D Me.Size = New Size(300, 300) Me.Opacity = 0.5 this.Text = ; this.FormBorderStyle = FormBorderStyle.Fixed3D; this.Size = new Size(300, 300); this.Opacity
5、 = 0.5; Me.BorderStyle = Fixed3D this.BorderStyle = Me.Size = (300,300) Me.Opacity = 100% this.Size = (300,300); this.Opacity = Me.Title = Me.Size = New Size(300,300) this.Title = this.Size = new Size(300,300);Lesson 21. Which of the following code samples demonstrates how to set a flow break on a c
6、ontrol named aButton in a FlowLayoutPanel named FLPanel1?下面的代码示例演示如何设置流断裂在一个FlowLayoutPanel的名为FLPanel1名为aButton获得控制? aButton.SetFlowBreak() aButton.SetFlowBreak(); aButton.SetFlowBreak(FLPanel1) aButton.SetFlowBreak(FLPanel1); FLPanel1.SetFlowBreak(aButton, True) FLPanel1.SetFlowBreak(aButton, true)
7、; FLPanel1.aButton.SetFlowBreak FLPanel1.aButton.SetFlowBreak();2. You are designing an application that includes a property page that enables the user to set properties of the application. These properties are divided into three categories: Appearance, Execution, and Memory Management. Which contai
8、ner control represents the best starting point for the user interface?你正在设计一个应用程序,其中包括一个属性页,使用户能够设置应用程序的属性。这些属性分为三类:外观,执行和内存管理。哪一个容器控件代表用户界面的最佳起点?A. TableLayoutPanel B. FlowLayoutPanel C. GroupBox D. TabControl 3. Which of the following is the correct way to add a control to a form at design time? (
9、Choose all that apply.) (A、B、C、D)下列哪一项是正确的方法,在设计时添加控件到窗体? (选择所有适用)A. Select a control in the Toolbox and double-click the form. B. Select a control in the Toolbox and draw on the form with the mouse. C. Double-click the control in the Toolbox. D. Select the control in the Toolbox and drag it to the
10、form. A.选择控制工具箱中双击表格。B.选择工具箱中的一个控制,用鼠标画的形式。C.双击工具箱中的控制。D.在工具箱中选择的控制,并将其拖动到表单。4. Which of the following code samples demonstrates the correct way to add a Button control to a form named Form1 at run time? (B)下面的代码示例演示一个名为Form1的窗体在运行时正确的方式来添加一个Button控件?Form1.Controls.Add(Button) / C#Form1.Controls.Add(Button);
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1