Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Professional Outlook 2007 Programming ISBN: 978-0-470-04994-5
This is the forum to discuss the Wrox book Professional Outlook 2007 Programming by Ken Slovak; ISBN: 9780470049945
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Outlook 2007 Programming ISBN: 978-0-470-04994-5 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 28th, 2009, 06:51 PM
Registered User
 
Join Date: Jan 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default commandbar button position

Hallo,

I have added a commandbar button to "standard" menu in outlook 2003.
I need to place this button on right hand side of the "new mail message" button.
How do I do that?

Thanks,
Dave

Office.CommandBar bar = (Office.CommandBar)m_Expl.CommandBars["Standard"];
/
CommandBarsMaker buttonMaker = newCommandBarsMaker();
m_pop = buttonMaker.NewMenu(bar, "test", idMenu, true, ProgID, true, "Standard", true);
m_button = buttonMaker.NewButton(m_pop.CommandBar, "New Message...", id, true, ProgID, Style, false, "My Add-In", true);
 
Old March 5th, 2009, 04:03 AM
Registered User
 
Join Date: Jan 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Position of Outlook commandbar button

It seems I have found answer to my own question.


//move the popup to second position on standard menu. After New button.
Code:
bar.Controls[m_pop.Index].Move(bar, 2);




Similar Threads
Thread Thread Starter Forum Replies Last Post
Close all MdiChield form from open one form/Button salman .NET Framework 2.0 6 December 10th, 2007 03:21 AM
how to open a new VB 2005 form from a button? asimzeeshan Visual Basic 2005 Basics 4 August 20th, 2006 11:25 AM
HELP!!!Coding a command button to open a form solva Beginning VB 6 5 May 10th, 2005 09:56 PM
Setfocus from button on Commandbar simmy Access VBA 2 December 29th, 2003 11:45 AM
Setfocus from button on Commandbar simmy Access 2 December 29th, 2003 11:31 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.