A
Addin_Noob
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
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