Hello.
I have a problem with class ListView.
I want to create control based on my class 'LisCtrl'
This is how I create my class:
#pragma once
public ref class ListCtrl

ublic
System::Windows::Forms::ListView
{
public:
ListCtrl(void);
};
In Form class I defined variable:
LeftList ^ ListCtrl;
Next I want to call this function
LeftList = gcnew ListView();
Compiler gave me this:
error C2440: '=' : cannot convert from
'System::Windows::Forms::ListView ^' to 'ListCtrl ^'
No user-defined-conversion operator available, or
Cast from base to derived requires safe_cast or static_cast
Please help me I am beginner in this environement and i couldn`t find
in the internet and I am sorry for my language but I am from Poland
and I don`t speak well.