index > Visual Studio Tools for Office > VSTO Outlook 2007 Form Region Question

VSTO Outlook 2007 Form Region Question

i have created a new Ribbon with 2 toggleButtons: buttonA and buttonB.

what i want is for the page of my custom form region to swap when I click the ribbon buttons. much the same as if I were on a standard Contact item, clicking the 'General' and 'Details' buttons.

so far I have created a form region with the formRegionType set to 'replaceAll'. i am uncertain of how to proceed. do i create 2 separate form regions to achieve this? or do i somehow implement paging within a single form region?

i know that i can use the getPressed handler of my ribbon button to make a callback to fire this. but am uncertain where to go from there. thanks.

Wee Bubba

Hi

I have not touched on Formregions since the first CTP but I am not sure whether this is allowed to be changed at runtime. I think you may have to have a common Form Region and hide controls as a toggle from the Ribbon bar. I am hoping to spend some more time on the Form Region side so will update this if I can soon because there were a few limitations to the UI Designer and it was limited to VBA Forms in the first design I saw.

Regards




Mike Walker MVP - Visual Developer VSTO - Please mark the best replies as Answers !
Mike Walker

You could do it a couple of different ways, I think. One would be to create a single form region all the controls you want and display or hide them depending on the buttons clicked.

But the more straightforward method would be to create a 'replaceAll' region for each page that you want to display. I think that you should then be able to use Inspector.SetCurrentFormPage to display a specific page, but I haven't tried it.

Sue Mosher - Outlook MVP
Thanks for your helpful replies. I will try to investigate this a little further today -I will let you know if I have any success...
Wee Bubba
reply 4

You can use google to search for other answers

 

More Articles

• How to read data from external application?
• PowerPoint Revisions
• Office automation - getting a built-in constant with late binding...
• Outlook Add-In setup project command line install with parameters
• How to uninstall an outlook add-in?
• DateTime Picker
• Information Bridge Framework
• Action Pane is not working in Word 2007 while Publishing
• Saving Outlook attachment to memory
• VSTO Excel: named range
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• Appointments Start and End
• SQL Server Data in Excel - Why is this s
• HOw to handle this using c#
• I cannot find a well documented API of V
• vsto2005
• 1 Add-In uses .net 1.1, a second uses .n
• Unit testing VSTO solutions
• C#: Reading a value of a checkbox create
• why i can't see "office" proje
• Install problems
• Programmatically insert a TOC entry and
• How to programmatically hide bookmarks,
• How can I load VSTO project from Winform
• Infopath 2007 - Odd Problem with Decimal
• Deploying Shared AddIns created in C#.NE

Hot Articles

• Is it possible? excel named ranges.... s
• Using Interior.Color
• Outlook Addin Installer (Default Path)
• Using NativeWindow seems to crash Word
• Where do I get the Access Developers Too
• Do sequence of actions as an atomic action
• Long Time to Open an Xml WordML
• Odd behavior of UserControl
• Action Pane disappears
• How to delete the user?? Command Bar?(Ou
• Any size restrictions of Interop.Word.Xm
• Deploying Outlook Addin - how to refer t
• Remove delegate from Item.Read and Item.
• problems with Primary Interop Assemblies
• Seperate data and design-style in Excel

Recommend Articles

• Override WndProc for a Word app generate
• Outlook 2003 New inspector does not fire
• Visio Enterprise 2000
• VSTO Outlook 2007 Form Region Question
• Problems with views-XML and heading/user
• Error when Implement the DragDrop
• Menu In Outlook, Events Problem
• How can I copy range's style to another
• outlooK 2003 WITH sp2
• Modifying the Office 2007 Ribbon
• Intellisense not showing Enumerator List
• VSTO Amazon Wish List sample
• XML vs Bookmarks/ranges
• Can modal dialog box be opened from VSTO
• Insert picture problem - Outlook Express 6