IndiaBIX
IndiaBIX
Start typing & press "Enter" or "ESC" to close
  • Home
  • Jobs
  • Results
  • Current Affairs
  • GK
  • Online Test
  • HR Interview
  • BLOG

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.Wi

  • Home
  • Computer Science & Engineering
  • C# Programming Questions and Answers
  • Namespaces - General Questions
  • Discuss - 1260
1. 

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();

[A]. 1, 3
[B]. 2, 4, 5
[C]. 1, 3, 5
[D]. 5 only

Answer: Option C

Explanation:

No answer description available for this question. Let us discuss.
Workspace Report
Leave a Comment

Computer Science & Engineering :: C# Programming Questions and Answers : More Exercises

  • .NET Framework - General Questions
  • Control Instructions - General Questions
  • Functions and Subroutines - General Questions
  • Constructors- General Questions
  • Arrays - General Questions
  • Structures - General Questions
  • Properties - General Questions
  • Exception Handling - General Questions
  • Interfaces - General Questions
  • Delegates - General Questions
  • Generics - General Questions
  • Datatypes - General Questions
  • Operators - General Questions
  • Classes and Objects - General Questions
  • Inheritance - General Questions
  • Strings - General Questions
  • Enumerations - General Questions
  • Namespaces - General Questions
  • Polymorphism - General Questions
  • Collection Classes - General Questions
  • Attributes - General Questions

Questions & Answers

Aptitude Chemical Engineering Civil Engineering Computer Science & Engineering Current Affairs Data Interpretation Electrical & Electronics Engineering Electronics & Communication Engineering General Knowledge Logical Reasoning Mechanical Engineering Non Verbal Reasoning Verbal Ability Verbal Reasoning

Interviews

HR Interview

Jobs

Sarkari Jobs

Results

Rojgar ResultSarkari Result

Admission

Admission 2023

Admit Card

Admit Card 2023

Answer Key

Answer Key 2023
copyright
Privacy Policy
© 2025 IndiaBIX. All Rights Reserved.

Report