We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Changing SyntaxColoringEnabled property

Thread ID:





19894 Oct 6,2004 03:14 AM UTC Oct 7,2004 06:27 PM UTC WinForms 1
Tags: EditControl
Trevor Henderson
Asked On October 6, 2004 03:14 AM UTC

Hello all, I have a dual-use EditControl - it is either in plain text mode or in full syntax highlighting mode. When in plain text mode I turn off syntax colouring by setting the above property to False. Works well. But going the other way does not reapply the colouring until I modify the contents of the control. Can I force a repaint/recolour? I could do this by having two controls and show/hide them but that''s more work and more controls. Here''s hoping

Administrator [Syncfusion]
Replied On October 7, 2004 06:27 PM UTC

Hi Trevor You could do what you are seeking by modifying the SettingFile property of the Edit Control. For example in the EmbeddedIniFile sample that ships with Essential Edit you could use the following code snippet: if (this.editControl1.SettingFile=="") { this.editControl1.SettingFile= "..//..//HelloWorldLanguage.ini"; } else this.editControl1.SettingFile=""; to toggle between the EditControl displaying KeyWords in colors specified and in plain text mode. Regards Arun


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon