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 » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Need advice for correct event



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 1st 09, 09:26 PM posted to microsoft.public.outlook.program_vba
Addin_Noob[_2_]
external usenet poster
 
Posts: 4
Default Need advice for correct event

Greetings all,

I recently developed some code for outlook that puts a button on the
commandbar. I noticed that the button should be hidden when not viewing
emails. I took the following strategy to get this working:

Private Sub m_olExplorer_FolderSwitch()
Select Case m_olExplorer.CurrentFolder.Name
Case "Inbox"
objCommandBarButton.Visible = True
Case Else
objCommandBarButton.Visible = False
End Select
End Sub

Unfortunately, I seem to get a small bit of flicker. In otherwords the
commandbar appears, then the Folderswitch event fires, then the button is
reenabled.

It looks like everything else is being occuring during a previous event...
Am I using the correct event? Is there a better way to do this? The flicker
looks pretty unprofessional.

-Tim
Ads
  #2  
Old May 1st 09, 10:12 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Need advice for correct event

Please do not multipost. See my answer in the other group you posted in.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Addin_Noob" wrote in message
...
Greetings all,

I recently developed some code for outlook that puts a button on the
commandbar. I noticed that the button should be hidden when not viewing
emails. I took the following strategy to get this working:

Private Sub m_olExplorer_FolderSwitch()
Select Case m_olExplorer.CurrentFolder.Name
Case "Inbox"
objCommandBarButton.Visible = True
Case Else
objCommandBarButton.Visible = False
End Select
End Sub

Unfortunately, I seem to get a small bit of flicker. In otherwords the
commandbar appears, then the Folderswitch event fires, then the button is
reenabled.

It looks like everything else is being occuring during a previous event...
Am I using the correct event? Is there a better way to do this? The
flicker
looks pretty unprofessional.

-Tim


 




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
Starting out and would like advice cidr Outlook - Using Forms 1 March 25th 09 03:03 PM
auto email advice alex Outlook - General Queries 3 March 13th 08 04:23 PM
Advice how to set up newsletter but not be a spammer simon Outlook - General Queries 3 August 29th 06 03:20 PM
Need Advice wolf1 Outlook Express 3 August 26th 06 01:14 PM
Advice on backup software wj Outlook Express 1 May 22nd 06 03:53 PM


All times are GMT +1. The time now is 05:01 AM.


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.