error message

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • TJS

    #1

    error message

    how do i resolve this error message

    add_click is not a member of 'system.windows .forms.button'

    code:

    '

    'cmdCancel

    '

    Me.cmdCancel.Lo cation = New System.Drawing. Point(424, 232)

    Me.cmdCancel.Na me = "cmdCancel"

    Me.cmdCancel.Ta bIndex = 9

    Me.cmdCancel.Te xt = "Cancel"

    Me.cmdCancel.ad d_Click(New EventHandler(Ad dressOf Me.cmdCancel_Cl ick))


  • Herfried K. Wagner [MVP]

    #2
    Re: error message

    "TJS" <nospam@here.co m> schrieb:[color=blue]
    > add_click is not a member of 'system.windows .forms.button'
    >[...]
    > Me.cmdCancel.ad d_Click(New EventHandler(Ad dressOf Me.cmdCancel_Cl ick))[/color]

    Buttons do not have an 'add_Click' method.

    Replace the line above with this one:

    \\\
    AddHandker Me.cmdCancel.Cl ick, AddressOf Me.cmdCancel_Cl ick
    ///

    --
    M S Herfried K. Wagner
    M V P <URL:http://dotnet.mvps.org/>
    V B <URL:http://classicvb.org/petition/>

    Comment

    Working...