Group:  Microsoft Outlook » microsoft.public.outlook.program_addins
Thread: vs 2005 - adding toolbar in office 2003

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

vs 2005 - adding toolbar in office 2003
yonido[ at ]gmail.com 20.08.2006 12:34:03
Hello friends,
I need your help. I got an assignment and I'm working on it for two
days with no breakthrough.
I need to add a toolbar in outlook. It suppose to contain several
buttons\checkbox (I still don't know how many) that will indicate on
user decisions.
It also contains a new "Send" button that will send the message but
will consider the user decisions.

In samples that I saw it implemented by creating a office.commandbar
and some office.commandbarbuttons .
First of all I need checkbox. Moreover I want to be able to control the
location of each button.
In other words is there any way to create a usercontrol and combine it
in the outlook as a toolbar? Is it possible to connect it to the
messages?

I'm working with visual studio 2005 and outlook 2003

Thanks
John

Re: vs 2005 - adding toolbar in office 2003
"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> 21.08.2006 13:38:32
You can't add anything with a checkbox. You would need to set up a button
that opens your own form if you need checkboxes.

Variable numbers of buttons displayed when you select a popup control can
only be done if you set up a dynamic collection of button handler classes
and add/remove buttons from that collection as needed.



--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


<yonido[ at ]gmail.com> wrote in message
news:1156077243.811528.5480[ at ]i42g2000cwa.googlegroups.com...
[Quoted Text]
> Hello friends,
> I need your help. I got an assignment and I'm working on it for two
> days with no breakthrough.
> I need to add a toolbar in outlook. It suppose to contain several
> buttons\checkbox (I still don't know how many) that will indicate on
> user decisions.
> It also contains a new "Send" button that will send the message but
> will consider the user decisions.
>
> In samples that I saw it implemented by creating a office.commandbar
> and some office.commandbarbuttons .
> First of all I need checkbox. Moreover I want to be able to control the
> location of each button.
> In other words is there any way to create a usercontrol and combine it
> in the outlook as a toolbar? Is it possible to connect it to the
> messages?
>
> I'm working with visual studio 2005 and outlook 2003
>
> Thanks
> John
>

Re: vs 2005 - adding toolbar in office 2003
אסף 27.08.2006 06:48:37
Hi ken,
But is it possible to add my own form to an office toolbar? How?
I tried to use panel and it didn't work out. Which outlook object
should I use in order to attach it a form and that it'll be showed in
the tool-bar area?

The idea that it'll appere at the toolbar zone and will be attached to
the mails below.
Thanks again
John

Ken Slovak - [MVP - Outlook] wrote:
[Quoted Text]
> You can't add anything with a checkbox. You would need to set up a button
> that opens your own form if you need checkboxes.
>
> Variable numbers of buttons displayed when you select a popup control can
> only be done if you set up a dynamic collection of button handler classes
> and add/remove buttons from that collection as needed.
>
>
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
> Reminder Manager, Extended Reminders, Attachment Options
> http://www.slovaktech.com/products.htm
>
>
> <yonido[ at ]gmail.com> wrote in message
> news:1156077243.811528.5480[ at ]i42g2000cwa.googlegroups.com...
> > Hello friends,
> > I need your help. I got an assignment and I'm working on it for two
> > days with no breakthrough.
> > I need to add a toolbar in outlook. It suppose to contain several
> > buttons\checkbox (I still don't know how many) that will indicate on
> > user decisions.
> > It also contains a new "Send" button that will send the message but
> > will consider the user decisions.
> >
> > In samples that I saw it implemented by creating a office.commandbar
> > and some office.commandbarbuttons .
> > First of all I need checkbox. Moreover I want to be able to control the
> > location of each button.
> > In other words is there any way to create a usercontrol and combine it
> > in the outlook as a toolbar? Is it possible to connect it to the
> > messages?
> >
> > I'm working with visual studio 2005 and outlook 2003
> >
> > Thanks
> > John
> >

Re: vs 2005 - adding toolbar in office 2003
"Eugene E. Starostin" <eestar[ at ]afalinasoft.com> 27.08.2006 17:37:26
John,

Have a look at http://www.add-in-express.com/office-toolbar-controls/
It allows you to use any .NET controls on Office toolbars.


--
Regards from Belarus,
Eugene E. Starostin
---
http://www.add-in-express.com - steroids for Office developers


"אסף" <asafam1[ at ]yahoo.com> wrote in message
news:1156661317.846978.269350[ at ]h48g2000cwc.googlegroups.com...
[Quoted Text]
> Hi ken,
> But is it possible to add my own form to an office toolbar? How?
> I tried to use panel and it didn't work out. Which outlook object
> should I use in order to attach it a form and that it'll be showed in
> the tool-bar area?
>
> The idea that it'll appere at the toolbar zone and will be attached to
> the mails below.
> Thanks again
> John
>
> Ken Slovak - [MVP - Outlook] wrote:
>> You can't add anything with a checkbox. You would need to set up a button
>> that opens your own form if you need checkboxes.
>>
>> Variable numbers of buttons displayed when you select a popup control can
>> only be done if you set up a dynamic collection of button handler classes
>> and add/remove buttons from that collection as needed.
>>
>>
>>
>> --
>> Ken Slovak
>> [MVP - Outlook]
>> http://www.slovaktech.com
>> Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
>> Reminder Manager, Extended Reminders, Attachment Options
>> http://www.slovaktech.com/products.htm
>>
>>
>> <yonido[ at ]gmail.com> wrote in message
>> news:1156077243.811528.5480[ at ]i42g2000cwa.googlegroups.com...
>> > Hello friends,
>> > I need your help. I got an assignment and I'm working on it for two
>> > days with no breakthrough.
>> > I need to add a toolbar in outlook. It suppose to contain several
>> > buttons\checkbox (I still don't know how many) that will indicate on
>> > user decisions.
>> > It also contains a new "Send" button that will send the message but
>> > will consider the user decisions.
>> >
>> > In samples that I saw it implemented by creating a office.commandbar
>> > and some office.commandbarbuttons .
>> > First of all I need checkbox. Moreover I want to be able to control the
>> > location of each button.
>> > In other words is there any way to create a usercontrol and combine it
>> > in the outlook as a toolbar? Is it possible to connect it to the
>> > messages?
>> >
>> > I'm working with visual studio 2005 and outlook 2003
>> >
>> > Thanks
>> > John
>> >
>

Re: vs 2005 - adding toolbar in office 2003
"keremskusmezer[ at ]gmail.com" <keremskusmezer[ at ]gmail.com> 28.08.2006 10:50:38
John,

object omissing = System.Reflection.Missing.Value;
MyButton =
(Office.CommandBarControl)oStandardBar.Controls.Add(Microsoft.Office.Core.MsoControlType.msoControlActiveX,

omissing, omissing, omissing, omissing);
MyButton.Caption = "My Custom Button5";
Microsoft.Office.Core._CommandBarActiveX activeXControl = MyButton
as
Microsoft.Office.Core._CommandBarActiveX;
activeXControl.ControlCLSID =
"{830C63B8-6C8A-4b64-99F2-237319703D8F}";

MyButton.Width = 32;
MyButton.Height = 32;

Just Create A Control Like This:

Imports System.Windows.Forms
Imports System.Collections.Generic
Imports System.Runtime.InteropServices
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
<Guid("54A09908-051E-46ec-8210-30A01A0C8F5C")> _
Partial Class Test
Inherits System.Windows.Forms.ListBox
'Control overrides dispose to clean up the component list.
<System.Diagnostics.DebuggerNonUserCode()> _
<Runtime.InteropServices.ComVisible(True)> _
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing AndAlso components IsNot Nothing Then
components.Dispose()
End If
MyBase.Dispose(disposing)
End Sub
Private components As System.ComponentModel.IContainer
<System.Diagnostics.DebuggerStepThrough()> _
Private Sub InitializeComponent()
components = New System.ComponentModel.Container()
End Sub
End Class

After That you will be able any control that you create from .Net in
Outlook Toolbar Groups.


Eugene E. Starostin wrote:
[Quoted Text]
> John,
>
> Have a look at http://www.add-in-express.com/office-toolbar-controls/
> It allows you to use any .NET controls on Office toolbars.
>
>
> --
> Regards from Belarus,
> Eugene E. Starostin
> ---
> http://www.add-in-express.com - steroids for Office developers
>
>
> "אסף" <asafam1[ at ]yahoo.com> wrote in message
> news:1156661317.846978.269350[ at ]h48g2000cwc.googlegroups.com...
> > Hi ken,
> > But is it possible to add my own form to an office toolbar? How?
> > I tried to use panel and it didn't work out. Which outlook object
> > should I use in order to attach it a form and that it'll be showed in
> > the tool-bar area?
> >
> > The idea that it'll appere at the toolbar zone and will be attached to
> > the mails below.
> > Thanks again
> > John
> >
> > Ken Slovak - [MVP - Outlook] wrote:
> >> You can't add anything with a checkbox. You would need to set up a button
> >> that opens your own form if you need checkboxes.
> >>
> >> Variable numbers of buttons displayed when you select a popup control can
> >> only be done if you set up a dynamic collection of button handler classes
> >> and add/remove buttons from that collection as needed.
> >>
> >>
> >>
> >> --
> >> Ken Slovak
> >> [MVP - Outlook]
> >> http://www.slovaktech.com
> >> Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
> >> Reminder Manager, Extended Reminders, Attachment Options
> >> http://www.slovaktech.com/products.htm
> >>
> >>
> >> <yonido[ at ]gmail.com> wrote in message
> >> news:1156077243.811528.5480[ at ]i42g2000cwa.googlegroups.com...
> >> > Hello friends,
> >> > I need your help. I got an assignment and I'm working on it for two
> >> > days with no breakthrough.
> >> > I need to add a toolbar in outlook. It suppose to contain several
> >> > buttons\checkbox (I still don't know how many) that will indicate on
> >> > user decisions.
> >> > It also contains a new "Send" button that will send the message but
> >> > will consider the user decisions.
> >> >
> >> > In samples that I saw it implemented by creating a office.commandbar
> >> > and some office.commandbarbuttons .
> >> > First of all I need checkbox. Moreover I want to be able to control the
> >> > location of each button.
> >> > In other words is there any way to create a usercontrol and combine it
> >> > in the outlook as a toolbar? Is it possible to connect it to the
> >> > messages?
> >> >
> >> > I'm working with visual studio 2005 and outlook 2003
> >> >
> >> > Thanks
> >> > John
> >> >
> >

Re: vs 2005 - adding toolbar in office 2003
"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> 28.08.2006 13:35:35
I don't know of any ways other than the ones suggested by others in this
thread.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"אסף" <asafam1[ at ]yahoo.com> wrote in message
news:1156661317.846978.269350[ at ]h48g2000cwc.googlegroups.com...
[Quoted Text]
> Hi ken,
> But is it possible to add my own form to an office toolbar? How?
> I tried to use panel and it didn't work out. Which outlook object
> should I use in order to attach it a form and that it'll be showed in
> the tool-bar area?
>
> The idea that it'll appere at the toolbar zone and will be attached to
> the mails below.
> Thanks again
> John

Re: vs 2005 - adding toolbar in office 2003
"john" <asafam1[ at ]yahoo.com> 25.09.2006 12:21:43
I think I didn't explained my problem. I want to add a
usercontrol\component to which I'll add my components. I want it to be
placed in the tool-bar area. Moreover I want it to comunicate with the
mails. Passing through the messages will change the details in my
user-control
thanks
John

Ken Slovak - [MVP - Outlook] wrote:
[Quoted Text]
> I don't know of any ways other than the ones suggested by others in this
> thread.
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
> Reminder Manager, Extended Reminders, Attachment Options
> http://www.slovaktech.com/products.htm
>
>
> "אסף" <asafam1[ at ]yahoo.com> wrote in message
> news:1156661317.846978.269350[ at ]h48g2000cwc.googlegroups.com...
> > Hi ken,
> > But is it possible to add my own form to an office toolbar? How?
> > I tried to use panel and it didn't work out. Which outlook object
> > should I use in order to attach it a form and that it'll be showed in
> > the tool-bar area?
> >
> > The idea that it'll appere at the toolbar zone and will be attached to
> > the mails below.
> > Thanks again
> > John

Re: vs 2005 - adding toolbar in office 2003
"john" <asafam1[ at ]yahoo.com> 25.09.2006 12:21:48
I think I didn't explained my problem. I want to add a
usercontrol\component to which I'll add my components. I want it to be
placed in the tool-bar area. Moreover I want it to comunicate with the
mails. Passing through the messages will change the details in my
user-control
thanks
John

Ken Slovak - [MVP - Outlook] wrote:
[Quoted Text]
> I don't know of any ways other than the ones suggested by others in this
> thread.
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
> Reminder Manager, Extended Reminders, Attachment Options
> http://www.slovaktech.com/products.htm
>
>
> "אסף" <asafam1[ at ]yahoo.com> wrote in message
> news:1156661317.846978.269350[ at ]h48g2000cwc.googlegroups.com...
> > Hi ken,
> > But is it possible to add my own form to an office toolbar? How?
> > I tried to use panel and it didn't work out. Which outlook object
> > should I use in order to attach it a form and that it'll be showed in
> > the tool-bar area?
> >
> > The idea that it'll appere at the toolbar zone and will be attached to
> > the mails below.
> > Thanks again
> > John

Re: vs 2005 - adding toolbar in office 2003
"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> 25.09.2006 21:27:24
As I said, I know of no ways to do that other than the suggestions in this
thread.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"john" <asafam1[ at ]yahoo.com> wrote in message
news:1159186903.628744.122150[ at ]e3g2000cwe.googlegroups.com...
I think I didn't explained my problem. I want to add a
usercontrol\component to which I'll add my components. I want it to be
placed in the tool-bar area. Moreover I want it to comunicate with the
mails. Passing through the messages will change the details in my
user-control
thanks
John

Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net