Click here to Skip to main content
15,890,557 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Distribution of VB.Net in the future Pin
Dave Kreskowiak19-Apr-04 6:05
mveDave Kreskowiak19-Apr-04 6:05 
GeneralRe: Distribution of VB.Net in the future Pin
Ian Darling19-Apr-04 6:20
Ian Darling19-Apr-04 6:20 
GeneralRe: Distribution of VB.Net in the future Pin
trimtrom19-Apr-04 8:51
trimtrom19-Apr-04 8:51 
GeneralRe: Distribution of VB.Net in the future Pin
Ian Darling19-Apr-04 8:55
Ian Darling19-Apr-04 8:55 
GeneralRe: Distribution of VB.Net in the future Pin
Colin Angus Mackay19-Apr-04 12:49
Colin Angus Mackay19-Apr-04 12:49 
GeneralWord display in a Winforms app Pin
RichardGrimmer19-Apr-04 3:27
RichardGrimmer19-Apr-04 3:27 
GeneralDocumenting Pin
preid119-Apr-04 3:03
preid119-Apr-04 3:03 
GeneralWriting a VS.NET Addin Pin
cnurse19-Apr-04 2:54
cnurse19-Apr-04 2:54 
I have written an add-in using VB.NET. Yipeee! OK, I've calmed down now!

My add-in inserts some code which I wrap in a #region declaration and I want to automatically collapse the region to hide the generated code to keep the developers code in view as much as possible.

Has anybody done this? I have tried using the Collapse and OutlineSection but I dont know if I am setting myself up in the text selection object correctly...


' Get a text object
Dim lText As TextSelection = CType(applicationObject.ActiveDocument.Selection, TextSelection)

' Move to the beginning of the document so we can iterate over the whole thing.
lText.StartOfDocument()

If lText.FindPattern(mRegionHeader) Then
lText.WordLeft()
lText.OutlineSection()
lText.Collapse()
End If

Any ideas would be warmly welcomed.

Nursey
GeneralTransparentProxy error in remoting Pin
Sandeep Sharma19-Apr-04 2:20
Sandeep Sharma19-Apr-04 2:20 
GeneralPassing object byRef in Remoting in vb.net - transparentProxy errro Pin
Anonymous19-Apr-04 2:18
Anonymous19-Apr-04 2:18 
QuestionHow do I Pin
KORCARI19-Apr-04 2:08
KORCARI19-Apr-04 2:08 
AnswerRe: How do I Pin
Dave Kreskowiak19-Apr-04 2:39
mveDave Kreskowiak19-Apr-04 2:39 
AnswerRe: How do I Pin
jimpar20-Apr-04 7:41
jimpar20-Apr-04 7:41 
GeneralError in Add-In of Word in Windows 98/ME Pin
Mayank Kumar19-Apr-04 0:39
Mayank Kumar19-Apr-04 0:39 
GeneralMicrosoft .Net Framework Source Code Pin
steff kamush18-Apr-04 21:23
steff kamush18-Apr-04 21:23 
GeneralRe: Microsoft .Net Framework Source Code Pin
Dave Kreskowiak19-Apr-04 1:25
mveDave Kreskowiak19-Apr-04 1:25 
GeneralBitBlt LoadImage Pin
Fade (Amit BS)18-Apr-04 14:19
Fade (Amit BS)18-Apr-04 14:19 
GeneralProjects and solutions Pin
Fade (Amit BS)18-Apr-04 6:40
Fade (Amit BS)18-Apr-04 6:40 
GeneralRe: Projects and solutions Pin
Fade (Amit BS)18-Apr-04 7:38
Fade (Amit BS)18-Apr-04 7:38 
GeneralAdvanced BitBlt problem... Pin
Fade (Amit BS)18-Apr-04 2:05
Fade (Amit BS)18-Apr-04 2:05 
GeneralCreating Application for Website Pin
fargate18-Apr-04 1:17
fargate18-Apr-04 1:17 
GeneralRe: Creating Application for Website Pin
Fade (Amit BS)18-Apr-04 2:12
Fade (Amit BS)18-Apr-04 2:12 
GeneralRe: Creating Application for Website Pin
fargate20-Apr-04 1:17
fargate20-Apr-04 1:17 
GeneralRe: Advanced BitBlt problem... Pin
PaleyX17-Apr-04 15:58
PaleyX17-Apr-04 15:58 
GeneralRe: Advanced BitBlt problem... Pin
PaleyX17-Apr-04 16:02
PaleyX17-Apr-04 16:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.