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?
using System.Windows.Forms; ListBox lb = new ListBox();
using LBControl = System.Windows.Forms; LBControl lb = new LBControl();
System.Windows.Forms.ListBox lb = new System.Windows.Forms.ListBox();
using LBControl lb = new System.Windows.Forms.ListBox;
using LBControl = System.Windows.Forms.ListBox; LBControl lb = new LBControl();
Discussion:
Be the first person to comment on this question !
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers