PrepAway - Latest Free Exam Questions & Answers

Which two actions should you perform?

You are creating a Windows user control named UrlRequest. UrlRequest contains a ComboBox control named cboUrl and a Button control named btnGo. When the user clicks btnGo, you want the UrlRequest control to provide notification that the value of cboUrl changed. You need to implement the notification functionality. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

PrepAway - Latest Free Exam Questions & Answers

A.
Create a public event named UrlRequested and a property named Url for your control that returns the Url value of cboUrl.

B.
Change the Modifiers property of btnGo to Public.

C.
Add a DefaultEvent attribute to UrlRequest
that uses the btnGo_Click event as an argument.

D.
Change the Modifiers property of cboUrl to Public.

E.
Raise the UrlRequest event in the Click event handler for btnGo.


Leave a Reply