Posted 17 years ago
by Matthew Smith
-
Developer,
One Plus One Solutions Pty Limited
Version: 4.0.0246
![Avatar](https://secure.gravatar.com/avatar/59e8a07d797c1cf9474d9e2f84e43d8d.jpg?s=64&d=identicon&r=g)
Hi,
I'm having some trouble getting the code snippets to work. I keep getting a 'Object reference not set to an instance of an object.' error. This is the code I'm calling:The snippetsFolder variable is initialising fine, but I get the error attempting to show the popup. Am I doing something wrong??
I'm having some trouble getting the code snippets to work. I keep getting a 'Object reference not set to an instance of an object.' error. This is the code I'm calling:
Dim snippetsFolder As CodeSnippetFolder = New CodeSnippetFolder("VB", Application.StartupPath + "\CodeSnippets\VB")
steEditor.IntelliPrompt.CodeSnippets.ShowInsertSnippetPopup(steEditor.Caret.Offset, "Insert Snippet:", snippetsFolder, CodeSnippetTypes.Expansion)
Regards, Matt