Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Get Control Name
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00824687
Message ID:
00825038
Views:
18
Hi!, Thanks for your reply!

I found the way to address my issue,

In the buttons collection of the toolbar (ToolBarButton Collection Editor) there is a property for the button name in the Design Section, but in the class itself there is no Name property (e.g. TBtnAdd.Name, does not exists).

Then ButtonClick event I did this comparison with the button name
Private Sub TBar_ButtonClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ToolBarButtonClickEventArgs) Handles TBar.ButtonClick

        If e.Button Is TBtnAdd Then
            OpAdd()
        ElseIf e.Button Is TBtnExplore Then
            OpExplore()
        Else
            ' Nothing
        End If

    End Sub
TBtnAdd, TBtnExplore are the names that i've assigned to the buttons in design time.
Previous
Reply
Map
View

Click here to load this message in the networking platform