473,503 Members | 10,046 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with class ListView Visual C++ 2005

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 :public
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.

Jun 13 '07 #1
0 1025

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2055
by: Alberto | last post by:
Does anybody know if in the next version of visual studio will be a ListView who allows CheckBoxes in all the columns? Thank you
1
7706
by: The Confessor | last post by:
I currently have a listbox in my program which I populate with data from a random access file as follows: For T = 1 To HighestPointID FileGet(1, Point(T), T) ListBox_Point.Items.Add(T & " Lat:...
1
1049
by: dev.amit | last post by:
Hello Friends I am having a listview of three column. I want to short it on the individual column. Any help would be great. Love Amit
12
3377
by: garyusenet | last post by:
I have had no replies to my previous post so perhaps I didn't write it good enough. Please excuse new thread but i wanted to break from the last thread hopefully this thread will be better. ...
1
2891
by: Stuart | last post by:
Hello, We are trying to subclass the ListView control and have a collection of a class as the Items. Our implementation works at runtime. However at design time if the user adds elements, we...
5
1647
by: Todd Barlow | last post by:
Hi, When I try to set the BackgroundImage property on a ListView, the project fails to run. Sometimes a generic error message appears telling me that memory might be corrupt. Sometimes the error...
0
1276
by: Johnny J. | last post by:
I posted this last week, but didn't get any reply. I'm trying again now, because I'm getting desperate - I've tried everything I can think of myself. PLEASE help somebody. I've made an inherited...
3
1658
by: Med | last post by:
Hi, I use Visual C# Express 2005 and Visual Web Developer Express 2005. In my Visual C# Express 2005 Solution, I have following two class library projects: _ DataAccess (Namespace name:...
3
1609
by: shapper | last post by:
Hello, I had a class library which was working in Visual Studio 2008 Beta 2. Now that I installed the final version of VS2008 I get a error in my code: Dim footer As New...
0
7207
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
7015
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7470
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4693
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3183
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3173
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1523
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
749
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
403
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.