O'Reilly logo

Developing and Implementing Windows®-Based Applications with Visual C#™ .NET and Visual Studio® .NET Exam Cram™ 2 (Exam 70-316) by Priti Kalani, Amit Kalani, Kalani Kirk Hausman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Practice Questions

Question 1After importing your favorite ActiveX control using the .NET toolbox, you insert an instance of it as MyControl and need to manipulate a property named State. Which of the following will result in the desired manipulation?
  • A. Include this line of code:

    MyControl.CtlState = 1;
    
  • B. Include this line of code:

    MyControl.AxState = 1;
    
  • C. Include this line of code:

    MyControl.State = 1;
    
  • D. Include this line of code:

    CtlState.MyControl = 1;
    
A1: Answer A is correct. The State property is renamed during the import process to CtlState, to avoid conflicting with the existing .NET State property. Answer B is incorrect because the normal renaming method results in a property named CtlState. Answer C is incorrect because the State ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required