Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Handling event.
 

Handling event.

Hi, Everyone.

I have a problem Im writing a toolbar and my toolbar have event OnGotoLink here is code :

In .Net ActiveX control:

    Sub OnButtonClick(ByVal sender As Object, ByVal e As EventArgs)
        Dim lMenu As CSLMenuItem
        lMenu = CType(sender, CSLMenuItem)
        'MsgBox(lMenu.Url)
        RaiseEvent OnGotoLink(lMenu.Url, lMenu.Target)
    End Sub

and on my client I have ebent javascript handler:

<SCRIPT FOR="tbrMain2" EVENT="GotoUrl">
alert('hello');
</SCRIPT>

<OBJECT id="tbrMain" name="tbrMain2" style="WIDTH: 100%; HEIGHT: 40px" height="40" width="100%" classid="http://DEV/NitroControls/NitroControls.dll#NitroControls.MenuBar" VIEWASTEXT>
<PARAM NAME="WebServicePath" VALUE="http://dev/wfews/menu.asmx">
<PARAM NAME="UserID" VALUE="292">
<PARAM NAME="BackColor" VALUE="DarkGrey">
</OBJECT>

now how come it doesnt want to trigger? I know it calls message box in OnButtonClick, but it doesn't come throght to the client.

Regards, Dmitri.
MigrationUser 1  Wednesday, July 16, 2003 5:33 AM
Use have to use an Active-X/COM interface.

I have yet to get one to work, still struggling with it myself.

Try this web site for clues, let me know if you get it to work:

http://www.elitevb.com/content/01,0096,01/06.aspx
MigrationUser 1  Wednesday, October 15, 2003 5:25 AM

You can use google to search for other answers

Custom Search

More Threads

• Application (installed by clickonce) fails to execute from start menu.
• ClickOnce application deployment
• Launch a clickOnce app from another windows app.
• ClickOnce 401 Problem
• Multiple Users and Roaming Profiles
• Run a cmd file in Merge Module Project
• ClickOnce Deployment Problem
• Clickonce application prerequisites
• Installaing Prerequisites with msiexec command
• How to setting dynamic path during installation