×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Late Binding

Late Binding

Late Binding

(OP)
I have written a program in Visual Basic.NET. Recently one of the requirements is that Option Strict be activated. Now I am having a late binding issue that I cannot resolve. Below is my code:
************************************************************
Private Sub ContextMenu1_clicked(ByVal sender As System.Object, ByVal e As System.EventArgs)
        Dim sendnoteid As Integer
        Dim tParent As String
        Dim tchild As String
        Dim tnote As String
        Dim i As Integer

        Try
            ' get group and replace active row cell with menu option
            tnote = UltraGrid1.ActiveRow.Cells(2).Value.ToString
            tParent = sender.Parent.Text.ToString ***[Error]
            tchild = sender.Text.ToString         ***[Error]
            'tchild = ContextMenu1.ToString

            For i = 0 To UBound(afindtext)
                If afindtext(i) = tParent & "*" & tchild Then
                    UltraGrid1.ActiveRow.Cells(2).Value = Replace(tnote, areplacetext(i), tchild)
                    i = UBound(afindtext)

                    UltraGrid1.ActiveRow.Cells(0).Value = True ' if checkbox not checked then check it
                End If
            Next

        Catch ex As Exception
            Call errhandler(ex.Message, ex.StackTrace, ex.Source)
        End Try

    End Sub
***********************************************************
The two statements with the Error next to them are the ones that are giving me the late binding issue. Please any help with this would greatly be appreciated.

RE: Late Binding

Lothos, you may have more luck with this in Forum855.

------------------------------------------------------------------------------------------------------------------------
"I am not young enough to know everything."
Oscar Wilde (1854-1900)

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close