strange C# IntelliSense

  • Thread starter Thread starter EricTsai - ½²©v¿«
  • Start date Start date
E

EricTsai - ½²©v¿«

IntelliSense in C# can't show classes whose name has two parts, seperated by
' . ', and the first part is the same as some control.
As the result, many classes in System.Windows.Forms, like
DataGrid.HitTestInfo,
can't be displayed by IntelliSense.

But in C++, I can use System::Windows::Forms::DataGrid::HitTestInfo to
specify the HitTestInfo class.
That seems like DataGrid can be a namespace.
 
EricTsai said:
IntelliSense in C# can't show classes whose name has two parts, seperated by
' . ', and the first part is the same as some control.
As the result, many classes in System.Windows.Forms, like
DataGrid.HitTestInfo,
can't be displayed by IntelliSense.

But in C++, I can use System::Windows::Forms::DataGrid::HitTestInfo to
specify the HitTestInfo class.
That seems like DataGrid can be a namespace.
You first need to create an instance of that class, then you will have
access for the other parts with intellisense.

However intellisense works fine if the class members etc. are static and
you don't need to create an instance
 
Back
Top