Showtoolbar property not working

Last post 04-17-2007, 11:30 PM by sanjayvishu. 2 replies.
Sort Posts: Previous Next
  •  04-17-2007, 5:32 AM 28478

    Showtoolbar property not working

     
    I want to diaplay toolbar on the cuteditor when a button will press, and again by clicking another button, i want to hide tool bar. i am doing like as shown below:
    But its not working.

    Private Sub content_readonly="readonly"()

    txtbody.readonly="readonly"= True

    txtbody.ShowEnlargeButton = False

    txtbody.ShowDecreaseButton = False

    txtbody.ShowToolBar = False

    txtbody.ShowHtmlMode = False

    txtbody.ShowPreviewMode = False

    txtbody.ShowBottomBar = False

    End Sub

    --

    Private Sub donotview_toolbar()

    txtbody.readonly="readonly"="readonly="readonly""= False

    txtbody.ShowEnlargeButton = True

    txtbody.ShowBottomBar = True

    txtbody.ShowDecreaseButton = True

    txtbody.ShowToolBar = True

    txtbody.ShowHtmlMode = True

    txtbody.ShowPreviewMode = True

    txtbody.ShowCodeViewToolBar = True

    End Sub

    But the tool bar of editor is not displaying when i write editor1.Showtoolbar="true"

    how could i do it?

    Thank you

    Sanjay

  •  04-17-2007, 3:35 PM 28514 in reply to 28478

    Re: Showtoolbar property not working

    Sanjay,

    Please check this example:

    http://richtextbox.com/test/ShowToolBar.aspx



    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  04-17-2007, 11:30 PM 28525 in reply to 28514

    Re: Showtoolbar property not working

    Your replay is currect but, i want to display and hide toolbar on clicking the button according to the condition,
    But once toolbar is hide, it will not apper on the screen by making the property "true".
    How this will possible.
View as RSS news feed in XML