VB.NET, How to Inherit Marker class?

Topics: Windows Forms
Dec 23, 2010 at 11:32 PM

Hi, im trying to add more strings and integers to a Marker class but I cant seem to do so with this 

    Public Class NEWMARKERS
        Inherits GMapMarker
        Public _NAME As String
        Public _ID As String
        Public _Street As String
    End Class

it says that Error 6 Class 'Dispatch.Form1.NEWMARKERS' must declare a 'Sub New' because its base class 'GMap.NET.WindowsForms.GMapMarker' does not have an accessible 'Sub New' that can be called with no arguments.

How can I inherit this class or add new data types to it?

Dec 23, 2010 at 11:44 PM
Edited Jan 3, 2011 at 1:49 PM

marker constructor should accept PointLatLng param