Test: First Smart Device Program in C# Explained
3. If you were to manually (from the code) set the size of a label named label1 in a smart device application using .NET Compact Framework and C#, which of the following line would you use?
Congratulations! Correct Answer.
You Answered: None. If you took the test, your answer will show up here.
Correct Answer: this.label1.Size = new System.Drawing.Size(174, 20);
ExplanationOne of the constructors of Size takes width and height integers as parameters. So, a new instance of Size would come from the following:
this.label1.Size = new System.Drawing.Size(174, 20);
Take the TestTake the complete test on this topic. You will be able to review answers to questions and get a test score.
Take the Test
Question 3 of 5
Test is Based on this Article
More Articles With Similar Tags