Click to See Complete Forum and Search --> : Embedding Internet explore or Outlook
draj
May 30th, 2003, 03:46 PM
I have to embed an Internet Explorer or Microsoft outlook application in one of my VB.Net forms.
How can I achieve this? Is it possible to have one application's window within another application's window.
Any thoughts or code would be greatly appreciated.
Thanks,
DRaj
Dozo_1st
June 2nd, 2003, 08:19 AM
For IE:
declare
Dim ProcID As System.Diagnostics.Process
In function code:
ProcID = New System.Diagnostics.Process()
ProcID.EnableRaisingEvents = False
ProcID.Start("iexplore.exe", txtWebsite.Text)
For Outlook:
first add reference to Outlook in solution
then declare:
Dim oOutlook As Outlook.ApplicationClass
Dim oMessage As Outlook.MailItemClass
In function code:
oOutlook = CreateObject("Outlook.Application")
oMessage = oOutlook.CreateItem(Outlook.OlItemType.olMailItem)
oMessafe.To = txtEmail.Text
oMessage.Subject = InputBox("Please state the subject", "Subject")
oMessage.Display()
Have fun...
:D :D
D.
draj
June 2nd, 2003, 01:47 PM
Hi Dozo,
Thanks for the reply.
You suggestion is good.
But I need the IE and Outlook window to be the child window of a VB form window. Now it is being launched as a separate window.
Do you know how to achieve this?
Thanks,
Raj.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.