T
tneslony
Greetings all,
I recently developed an outlook addin that adds a button to the
command bar. I need to hide this when not viewing emails. I took the
following strategy to do so:
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
The problem is that there is quite a bit of flicker (looks horrible).
The commandbar appears, then the Folderswitch event fires, then the
button is (re)enabled. It appears that everything else is occuring at
an earlier event... Any ideas?
-Tim
I recently developed an outlook addin that adds a button to the
command bar. I need to hide this when not viewing emails. I took the
following strategy to do so:
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
The problem is that there is quite a bit of flicker (looks horrible).
The commandbar appears, then the Folderswitch event fires, then the
button is (re)enabled. It appears that everything else is occuring at
an earlier event... Any ideas?
-Tim