Code example c# / vb.net question

Dec 16, 2013 at 2:31 PM
Hi,

I am just new tro sandcastle and figuring out all the features.

I was wondering if I make a code block and fill in only the vb part is it possible to show only the vb tab in the chm file? Now it will show all 4 language tabs and the c# is selected by default which does not contain any code. I would prefer to show the vb tab which has code.
 ''' <summary>
    ''' Continue...
    ''' </summary>
    ''' <remarks>
    ''' After the....
    ''' <example>
    ''' <code lang="VB">
    ''' Obj.Pause
    ''' 'Perform tasks
    ''' Obj.Continue
    ''' </code>
    ''' </example>
    ''' </remarks>
    ''' <seealso cref="Pause"></seealso>
Editor
Dec 16, 2013 at 5:42 PM
Assuming you are using the VS 2010 presentation style, it's a limitation of the way the presentation style is implemented. You can change the order of the tabs by changing the presentation style branding files as noted in this thread: https://shfb.codeplex.com/discussions/354300

You will most likely also need to change the default language selected (it was VB when the thread was written but has since been changed to C#). That change is described in this thread: https://sandcastle.codeplex.com/discussions/359722

In both cases, I think the threads mention extracting data from the dev10.mshc file which is no longer necessary. You'll find the affected files in the branding folder in the presentation style folder (%ProgramFiles(x86)%\Sandcastle\Presentation\VS2010\branding).

Also, please note that this project has been discontinued and may not be monitored as frequently. For future questions or issues concerning Sandcastle or SHFB, post them over on the Sandcastle Help File Builder project's discussion page. Thanks.

Eric