1
Answer

private ListView TestList = new ListView();

Photo of Rohit

Rohit

6y
668
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)