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.
Unfortunately, activation email could not send to your email. Please try again.

inserting code snippets programmatically

Thread ID:

Created:

Updated:

Platform:

Replies:

69565 Nov 1,2007 06:47 PM Nov 7,2007 03:11 AM Windows Forms 3
loading
Tags: EditControl
travis
Asked On November 1, 2007 06:47 PM

Hi,

Is there a sample or documentation on how to insert code snippets programmatically? I'd like to add it to the edit control's context menu.

thanks!

-travis

Golda Rebecal [Syncfusion]
Replied On November 3, 2007 01:20 AM

Hi Travis,

Code snippets feature is implemented by using many internal methods and they are not exposed. Hence it is not possible to use this feature programmatically.

Kindly let me know if you have any questions.

We appreciate your interest in Syncfusion products.

Best regards,
Golda


travis
Replied On November 6, 2007 09:01 PM

Let me clarify. I'd like to have a context menu entry called something like "Insert code snippet..." that when chosen would simply pop up the code snippet picker in the editor on the current line (as if Ctrl+`) was pressed. Is something like this possible?

If no method exists to do this, could I simulate a Ctrl+` key press when the context menu item is selected?

thanks,
Travis

Golda Rebecal [Syncfusion]
Replied On November 7, 2007 03:11 AM

Hi Travis,

You can pop up the code snippet picker in the EditControl by using ShowCodeSnippets() method of EditControl

Please refer to the attached sample that illustrates the same:
http://websamples.syncfusion.com/samples/Edit/F69565/main.htm

Kindly let me know if this helps you.

Best regards,
Golda

CONFIRMATION

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.

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.

;