SpiceLogic Inc.
                                                                                                     SpiceLogic Inc. Home PageProductsJournalMy AccountHelp DeskContact Us
 
Knowledge base  : .NET Win HTML Editor Control    - Standard Edition
Welcome Guest   Login

Skip Navigation Links. .NET Win HTML Editor Control

Documentation  Documentation

Download   Download the latest version

Back to the home of knowledgebase forum Overriding Save Button's Click handler

An user   4/28/2010 1:49:42 AM

I want to write code manualy for the  Save button in HTMLEditor which is in the HtmlEditorToolStrip,
 
Can u help



- [SpiceLogic Support Technician]   4/28/2010 8:50:11 AM

Dear Chinnu,
Yes, you can do that easily. Please first make sure that you have the latest version 4.0.6.7.  If you dont have the latest version, you can download from the following link:
 
 
After that, you can add your own Click handler for Save button as following snippet.
 
In C#
 

        private void Form1_Load(object sender, System.EventArgs e)

        {

            htmlEditor1.ToolbarItemEvents.SaveButtonClicked += ToolbarItemEvents_SaveButtonClicked;

        }

 

        void ToolbarItemEvents_SaveButtonClicked(object sender, System.EventArgs e)

        {

            MessageBox.Show("My own Save handler");

        }

 
In VB.NET
 

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

 

        AddHandler HtmlEditor1.ToolbarItemEvents.SaveButtonClicked, AddressOf SaveButton_Clicked

 

    End Sub

 

    Private Function SaveButton_Clicked() As EventHandler(Of EventArgs)

      
        MessageBox.Show("My Own Save Button")
    
    End Function



Home  || Products  || Journal  || My Account  || HelpDesk  || Contact Us

Website and Software Copyright ©2010, SpiceLogic Inc., All Rights Reserved.