MCPD practice exams - 70-505 - Microsoft .NET Framework 3.5 - Windows Forms Application Development - question 250
|
MCPD - 70-505 - Microsoft .NET Framework 3.5 - Windows Forms Application Development - question no 250
|
Question. You are creating a Windows Forms application by using the .NET Framework 3.5. The application requires a form to display a clock. You need to create a circular form to display the clock. Which code segment should you use:
|
|
|
|
|
|
A. this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; System.Drawing.Drawing2D.GraphicsPath path = new System.Drawing.Drawing2D.GraphicsPath(); path.AddEllipse(0, 0, this.Width, this.Height); Region reg = new Region(); this.Region = reg;
|
|
B. this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; System.Drawing.Drawing2D.GraphicsPath path = new System.Drawing.Drawing2D.GraphicsPath(); path.AddEllipse(0, 0, this.Width, this.Height); Region reg = new Region(path); this.Region = reg;
|
|
C. this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; System.Drawing.Drawing2D.GraphicsPath path = new System.Drawing.Drawing2D.GraphicsPath(); path.AddEllipse(0, 0, this.Width, this.Height); Region reg = new Region(path); this.Region = reg;
|
|
D. this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; System.Drawing.Drawing2D.GraphicsPath path = new System.Drawing.Drawing2D.GraphicsPath(); path.AddEllipse(0, 0, this.Width, this.Height); Region reg = new Region(); this.Region = reg;
|
|
|
|
|
|
|
|
|
|