1
Answer

private ListView TestList = new ListView();

Rohit

Rohit

6y
650
1
Hi team
i am able to run below code in c# winform 
private ListView TestList = new ListView(); 
 
but same code i trying copy and build c# console it giving me  below error 
Error CS0246 The type or namespace name 'ListView' could not be found (are you missing a using directive or an assembly reference?) 
 
which namespace and reference need to add 
 
 
Answers (1)