C# Programming - Namespaces - Discussion

Discussion Forum : Namespaces - General Questions (Q.No. 15)
15.
If ListBox is class present in System.Windows.Forms namespace, then which of the following statements are the correct way to create an object of ListBox Class?
  1. using System.Windows.Forms; 
    ListBox lb = new ListBox();
  2. using LBControl = System.Windows.Forms;
    LBControl lb = new LBControl();
  3. System.Windows.Forms.ListBox lb = new System.Windows.Forms.ListBox();
  4. using LBControl lb = new System.Windows.Forms.ListBox;
  5. using LBControl = System.Windows.Forms.ListBox; 
    LBControl lb = new LBControl();
1, 3
2, 4, 5
1, 3, 5
5 only
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.