index > Visual Studio Tools for Office > in a new form i want to open the msoutlook mail to window

in a new form i want to open the msoutlook mail to window


in a new form i want to open the msoutlook mail to window

in my vb.net windows application i need to open the msoutlook mail to window

the size of the form will be 1016,350




mail me at rajesh.batchu@cesltd.com
Rajesh batchu

Does the following work for you --

objOutlook = New Outlook.Application

Dim objMailitem As Outlook.MailItem

objMailitem = objOutlook.CreateItem(Outlook.OlItemType.olMailItem)

objMailitem.Subject = strSubject

objMailitem.Display()




Please mark solutions as answers (so that everyone knows the thread has been resolved)
Sriram Rajamanuri
what should be in the imports in this program plz


mail me at rajesh.batchu@cesltd.com
Rajesh batchu
what all should i import in my program to run this


mail me at rajesh.batchu@cesltd.com
Rajesh batchu

Hi Rajesh

If you're using VSTO technology, the "imports" would be there for you. If you're not using VSTO technology, then you're asking in the wrong place, which is why the answers you're getting here may be confusing you.

I recommend you pursue this question in the Outook programming newsgroup. You'll find people there who specialize in Outlook automation questions, also using VB.NET. Please compose a detailed problem description that outlines exactly what you need to do, your background in Office/COM automation (or that you have none) and where you're stuck. The questions you've posted here have been much too vague.

I also recommend you search the MSDN website for articles concerning Outlook automation using .NET. If you have trouble finding any, the folks in the Outlook programming group can help point you at suitable material.




-- Cindy Meister (Word MVP)
Cindy Meister
reply 5

You can use google to search for other answers

 

More Articles

InfoPath XSL Bug
Do sequence of actions as an atomic action
Save data Within Excel through VB?
ServerDocument persistance object error
CDOEX help needed
OTP Out Look 2003
Refreshing and saving the data in a shared workbook with VSTO
Generating XSLT from Word 2007 document?
[SOS] Why I can't create a new sheet via this code snippet???
Infopath toolkit and VS2005Pro
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

Excel 2003 copy method failed
VSTO 2005 Hands on Excel Lab Problems
Installing VSTO "v3" solutions…
Trying to create a C# macro for WORD - &…
Range.get_Information() is causing Appli…
Word XML Document Question
COM ADDIN Not working in client mechins
VSTO Outlook 2007 Questions
ThisApplication_Startup - can't stop at …
Deployment issue......may be?
Application.AddChartAutoformat(), Workin…
Office Pro Small Business Edition & …
Infopath TaskPane Addin
VSTO 2005 with German Office 2003 Instal…
Not loading the MS Word add-in

Hot Articles

Rightclick context menu in MAPIFolder in…
Depolyment on Office XP is not working
Overriding Word Intrensic Menus & To…
getting the path info for an attachment
Addin - TaskPane communication
Comments color in Word
We don?? test our code, Microsoft! (word…
Developing Add-in for Office XP: Open Is…
PowerPoint Paste Special using C#
Suggestion For Future VSTO Release
Open a new local mail and insert attachm…
MODI not working with Windows 2003 Server
MenuButton click event not firing
save each page of a word merge as a sepe…
Access Developer Extensions

Recommend Articles

FaceId's
Preventing other applications to attach…
Cannot attach VSTO Customization via Cus…
How can I auto-populate two MS Word docu…
Word Document Protection
Excel Chart properties from VB.Net 2005
Best timer for an Outlook addin?
unable to cast System.__ComObject as Mic…
Capture "AutoDial" event in Ou…
VSTO Outlook Add-in Debug errors even fo…
Word is still running after you stop deb…
Help please. I need to protect my work i…
how can I create activity associations i…
Deployment issue......may be?
How to create hidden message in a folder