PC Review


Reply
Thread Tools Rate Thread

Inspector doesn't change Save-Button to Send-Button when adding recipients via VB

 
 
New Member
Join Date: Jan 2008
Location: Austria
Posts: 3
 
      16th Jan 2008
Hello there,

I work on a VB6-Addin for OL2003 that allows a user to quickly add a special group of recipients to an appointment by simply dblclicking them in a custom form.

My origional code looked like that:

Code:
Private Sub RoomSel_Auswahlliste_DblClick()
Dim myRoom As outlook.Recipient
Set myRoom = myOlInspector.CurrentItem.Recipients.Add( RoomSelector.AuswahlListe.List( RoomSelector.AuswahlListe.ListIndex ) )
myRoom.Type = olResource
myRoom.Resolve
RoomSelector.Hide
End Sub
When adding recipients "by hand" Outlook changes the "Save and Close"-Button to a "Send"-Button. But in that case it somehow doesn't get noticed of the change and nothing happens.

Since I couldn't find out, how to trigger that change, I tried the following approach by adding two new lines:

Code:
 
Private Sub RoomSel_Auswahlliste_DblClick()
Dim myRoom As outlook.Recipient
Set myRoom = myOlInspector.CurrentItem.Recipients.Add( RoomSelector.AuswahlListe.List( RoomSelector.AuswahlListe.ListIndex ) )
myRoom.Type = olResource
myRoom.Resolve
RoomSelector.Hide
 
myOlInspector.CommandBars.FindControl( msoControlButton, 2617 ).Visible = True
myOlInspector.CommandBars.FindControl( msoControlButton, 1975 ).Visible = False
End Sub
This worked fine until today. Now Outlook throws an object error.

By looping over the commandbars contents I found out, that Button 2617 is now missing (not just visible=false) and does not appear until I add a recipient by hand.

So now I'm stuck with that.

Thanks in advance for any help - and please excuse my poor english

Harry
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Inspector wrapper and Inspector close not fireing marcus.lambert@gmail.com Microsoft Outlook Program Addins 1 20th Jun 2008 01:53 PM
How to switch inspector into send-mode after adding recipients? timberdrop@gmail.com Microsoft Outlook 1 11th Jan 2008 01:49 PM
Help! Inspector.Close is fired before Inspector.Activate handler finishes Sergey Anchipolevsky Microsoft Outlook Program Addins 8 9th Feb 2006 10:51 AM
Inspector wrapper and Inspector::OnClose event Henry Gusakovsky Microsoft Outlook Program Addins 2 27th May 2004 05:08 PM
Minimize an Inspector over another Inspector. George Microsoft Outlook Program Addins 4 27th May 2004 08:39 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:29 AM.