Datasheet

Figure 1-60: The error suggestion dialog box proposes likely solutions to an error.
Using Snippets
To insert a snippet, right-click where you want to insert the code and select Insert Snippet to make the
editor display a list of snippet categories. Double-click a category to find the kinds of snippets that you
want. If you select a snippet, a tooltip pops up to describe it. Figure 1-61 shows the editor preparing to
insert the snippet named
Create a public property from the VbProgRef Code Snippets category.
Double-click the snippet to insert it into your code. The snippet may include values that you should replace
in your code. These replacement values are highlighted with a light green background, and the first value
is initially selected. If you hover the mouse over one of these values, a tooltip appears to describe the value.
You can use the Tab key to jump between replacement values.
Figure 1-62 shows the inserted code for this example. The text
An Integer Property is highlighted
and selected. Other selected text includes
Integer, 0, and MyProperty. The mouse is hovering over
the value
An Integer Property, so the tooltip explains that value’s purpose.
64
Part I: Getting Started
37055c016.qxd 4/8/07 12:46 PM Page 64