A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Add-in only runs once.



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 2nd 07, 07:53 AM posted to microsoft.public.outlook.program_addins
Dewey
external usenet poster
 
Posts: 26
Default Add-in only runs once.

Hi.

I've created an add-in using the exact steps shown here using VB.net in
Visual Studio 2005:

http://support.microsoft.com/?kbid=302896

I've added a generic form in this project too. When I first run Outlook
and click on the toolbar button it inserted, it somehow knows to show the
form! (I never call .Show( ) for the form anywhere).
This is actually what I want, but it will only show once. Can someone
explain why the form is shown in the first place? Does VS just know to make
the first form the startup object for a COM add-in? Anyone know why it will
only work once?


Thanks for the help

-Josh

Ads
  #2  
Old June 2nd 07, 08:57 AM posted to microsoft.public.outlook.program_addins
Dewey
external usenet poster
 
Posts: 26
Default Add-in only runs once.

okay....nevermind...duh. I just used the ToolbarButton_Click event to show a
new instance of the form.

Here's a follow-on though. Is there a way to address the button I have on
the toolbar from within the form's code?


Thanks


"Dewey" wrote:

Hi.

I've created an add-in using the exact steps shown here using VB.net in
Visual Studio 2005:

http://support.microsoft.com/?kbid=302896

I've added a generic form in this project too. When I first run Outlook
and click on the toolbar button it inserted, it somehow knows to show the
form! (I never call .Show( ) for the form anywhere).
This is actually what I want, but it will only show once. Can someone
explain why the form is shown in the first place? Does VS just know to make
the first form the startup object for a COM add-in? Anyone know why it will
only work once?


Thanks for the help

-Josh

  #3  
Old June 2nd 07, 09:17 AM posted to microsoft.public.outlook.program_addins
Dewey
external usenet poster
 
Posts: 26
Default Add-in only runs once.

Maybe I should have been more specific about that second question. What I
mean is...I have the code for the toolbar add-in (from the MSDN
article)...that's one class. Then, I have the form. When I click the button
on the toolbar, the form is displayed. I'd like to be able to grey-out the
button on the toolbar while the form is shown to the user. However, the
button is defined in the add-in class, not the form, and it's not accessible
from the form that I can tell. Is there something else basic I'm missing
here? I've tried calling it Public in the add-in, and even creating a module
to try to just be a programming slob and make it global. Neither worked.
There's got to be a simple technique I'm not remembering.

Thanks again

-Josh




"Dewey" wrote:

okay....nevermind...duh. I just used the ToolbarButton_Click event to show a
new instance of the form.

Here's a follow-on though. Is there a way to address the button I have on
the toolbar from within the form's code?


Thanks


"Dewey" wrote:

Hi.

I've created an add-in using the exact steps shown here using VB.net in
Visual Studio 2005:

http://support.microsoft.com/?kbid=302896

I've added a generic form in this project too. When I first run Outlook
and click on the toolbar button it inserted, it somehow knows to show the
form! (I never call .Show( ) for the form anywhere).
This is actually what I want, but it will only show once. Can someone
explain why the form is shown in the first place? Does VS just know to make
the first form the startup object for a COM add-in? Anyone know why it will
only work once?


Thanks for the help

-Josh

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ItemAddEventHandler only runs once Dave Add-ins for Outlook 1 April 16th 07 03:58 PM
Windows Installer runs Invisible Outlook - General Queries 2 October 3rd 06 10:53 AM
Outlook 2003 "find" contacts doesn't work, just runs and runs Tom Stanley Outlook - Using Contacts 1 July 5th 06 04:56 AM
Outlook Express runs without .exe DiscoNap9000 Outlook Express 3 May 30th 06 12:18 AM
My program runs very slow קובץ Outlook and VBA 6 January 22nd 06 04:46 PM


All times are GMT +1. The time now is 08:47 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.