Results 1 to 6 of 6

Thread: Inherited Class and .Clone method..[RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2001
    Location
    Buffalo, NY
    Posts
    297

    Inherited Class and .Clone method..[RESOLVED]

    I created my own class:

    Code:
    Public Class M3ListViewItem
         Inherits System.Windows.Forms.ListViewItem
    
         Private mintType As Integer
    
         Public Property Type() as Integer...
    
    End Class
    In order to add a Type variable to the ListViewItem class that already existed.

    The problem is when I call the Clone method, I get a regular ListViewItem back and the Type property is reset to Zero. How can I get around this?

    I tried overloading the Clone method, but I can't return a different type on an overloaded method...

    Thanks,

    Ben
    Last edited by BenFinkel; Oct 20th, 2003 at 02:29 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width