PrepAway - Latest Free Exam Questions & Answers

Category: 70-526

Exam 70-526: TS: Microsoft .NET Framework 2.0 – Windows-Based Client Development.

What should you do to write code to render the control, preventing other controls

You are working as an application developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. Domain.com uses Visual Studio 2005 as an application platform. Domain.com consists of a Development department.
You as the developer of Domain.com use a client computer named Certkiller -WS025 as developing collateral.
You are busy developing a custom control from a class from Control, which is not a composite control and performs all of its rendering by using GD+. What should you do to write code to render the control, preventing other controls from modifying the rendering behavior of your control?

What should you do to make sure that portions of the control are automatically repainted…

You are working as an application developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. Domain.com uses Visual Studio 2005 as an application platform. Domain.com consists of a Development department.
You as the developer of Domain.com use a client computer named Certkiller -WS005 as developing collateral.
You are busy developing a custom control from a class from Control, which is not a composite control and performs all of its rendering by using GD+. What should you do to make sure that portions of the control are automatically repainted when a specific property changes?

How should you set the ColumnStyle instance’s Size Type property?

You have configured three columns to a form and add a TableLayoutPanel to the form. You want the two side columns to have a fix width of 200 pixels each and anchor the four edges of the form to the control. A Domain.com manager wants the center column to fill the remaining space, when ever the form is resized. You need to change the ColumnStyle instance that represents the center column? How should you set the ColumnStyle instance’s Size Type property?

Which code segment should you use to programmatically move the next record and display the new value…

You are busy adding a TextBox control named Certkiller TextBox to a form. You are doing this by dragging a Contact field from the Data Sources window to the form. The data of the Text properties of the Certkiller TextBox is part of the Contact field. To navigate the records in a data source, you added two Button controls to the form. Which code segment should you use to programmatically move the next record and display the new value of the Certkiller TextBox’s Contact field when the Domain.com users click one of the Button controls?

What should you do to modify the form to invoke this method without interfering with the existing operations o

You are customizing a Windows Form. When the user clicks any button, you want the application to log information about the user’s actions by calling a method with the following signature.

public void ctl_Click(object sender, EventArgs e)

You want the form to invoke this method when any Button control is clicked and only when a Button control is clicked. You need to modify the form to invoke this method without interfering with the existing operations of the application. What should you do?

What should you do to configure the form so that it takes the shape of the bitmap file without the background?

You are creating a shaped Windows Form. The shape and background for the form are available in a bitmap file named Background.bmp. The FormBorderStyle property is set to None and the BackgroundImage property is set to background.bmp. However, when the application runs, the entire image including all of the background is visible and the form still appears to be rectangular. You need to configure the form so that it takes the shape of the bitmap file without the background. What should you do?

What should you do to ensure that the read-only properties are not displayed in the Properties window?

You are creating a Windows Forms application. Your application uses a custom control. The Custom control is based on a standard button control. You add several extra properties to the control. Some of these properties are read-only. You need to ensure that the read-only properties are not displayed in the Properties window of the design environment. What should you do?


Page 3 of 1512345...10...Last »