Jump to content
Xtreme .Net Talk

Recommended Posts

  • *Experts*
Posted

Just call the handler sub from code. You need to pass an EventArgs

object though. Like this:

    Private Sub ButtonClick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
       Dim eArgs As New ToolBarButtonClickEventArgs(ToolBarButton2)

       ToolBar1_ButtonClick(ToolBar1, eArgs)
   End Sub

Posted

The problem is that I am trying to get at Toolbar from CrystalViewer. Where is no Toolbar property. I can get to it only like this:

 

for each c in crv.controls

if TypeOf c is ToolBar then

tb=c

exit for

end if

next

 

No, how do I call ButtonClick event for tb?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...