///end of codeCode:Imports Microsoft.Office.Interop Imports System.Threading Imports System.Windows Imports Microsoft.Office.Interop.Outlook Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim tempApp As Outlook.Application = New Outlook.Application() Dim tempInbox As Outlook.MAPIFolder Dim InboxItems As Outlook.Items tempApp = CreateObject("Outlook.Application") tempInbox = tempApp.GetNamespace("Mapi") End Sub
now where do i put this line ?
oApp.ActiveExplorer.CommandBars("Standard").Controls("Send/Re&ceive").Execute
this oApp is not working with my decleared name space.
tell me exatly what i am doing wrong?
and do i have to add some Outlook controls to the command bar? becose i dont know how to add command bar controls to my project !!
please explain with code what i am doing wrong.


Reply With Quote



Bookmarks