Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8176333
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T23:07:55+00:00 2026-06-06T23:07:55+00:00

I have an office 2010 project where I use content controls to hide/show content

  • 0

I have an office 2010 project where I use content controls to hide/show content (tables, textblocks, images etc. – content control in tables, cc in cells, cc around images, around textblocks, etc.) in a word document. the user can click an ActionsPane control button to hide/show the content.

my problem is, that I want to hide the content controls completely, but for some reason in some cases it doesen’t help to set the range to -1/+1 to get the content control itself. If I select it via mouseselection it is still shown in the active document. fortunatly without its content. I would like the content control to be hidden completely so that it cant be selected or seen anymore. also in header/footer section.

The strangest phenomenon that I realised is a table wrapped in a content control. it gets hidden with its textcontent but it leaves one new row without textcontent behind?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T23:07:57+00:00Added an answer on June 6, 2026 at 11:07 pm

    playing around with

    range.SetRange(range.Start - 1, range.End + 2) 
    range.Move(WdUnits.wdParagraph, -1) 
    

    did the job …

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this Word 2010 Office project in VS2010 Can someone point me to
I have developed a WinForm Application with VB.Net (VS2010) having Office 2010 Professional Installed,
Suppose I have 2 office locations which I want to use for my contact
I have the following setup: Sharepoint 2010 with SQL Server and Office 2010. This
Using Visual Studio 2010 I created an Office 2010 Word add-in project that has
I am running windows 7 x64 enterprise. I have Office 2010 x64 installed. I
I have created some InfoPath forms. I am using MS-Office 2010. I deployed these
I have a Visual Studio 2010 project targeting .NET Framework 4.0. When I add
I need DocumentSet class from Microsoft.Office.DocumentManagement namespace. I have Visual Studio 2010 Professional, Office
I have seen samples using Word 9.0 object library. But I have Office 2010

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.