Run vb6 form in outlook !

Hi !

I'm working on a application and I want (if possible) the form to be activated with a button inside outlook, and then be displayed in the main window of outlook, just like when you click inbox and get the mail in the main window !


hope you understand :-|


...Is this possible ?


regards
MRSONNYAsked:
Who is Participating?
 
David LeeCommented:
Yes, you can pass Outlook a url, but the url's target won't open in Outlook's window unless it's an Outlook item or a web page.  For example, I can enter a file url such as "file:///C:/eeTesting/myfile.txt", but the text file the url points to opens in Notepad, not an Outlook window.  The window you're talking about is actually an Outlook Explorer object.  It's not designed to handle anything but Outlook items, which includes web pages.  The ActiveX approach will work, but only if it's in a web page.
0
 
BrianGEFF719Commented:
You can create an outlook macro that runs another executable if this would work for you?


For example: create macro:

Sub MyMacro()
Shell("MyApplication.exe")
End Sub




Does that help?

Brian
0
 
MRSONNYAuthor Commented:
ok, mm , but how do I create a button in outlook ?
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
BrianGEFF719Commented:
When you say a button, are you talking about the "toolbar" buttons? Or are you talking about a seperate form?


Brian
0
 
MRSONNYAuthor Commented:
Hi  again !

I can use tool bar button, and when clicking that button the form should open in the main window of outlook !

regards
0
 
BrianGEFF719Commented:
Take a look at this article, it should help you:

http://www.slipstick.com/outlook/toolbar.htm
0
 
MRSONNYAuthor Commented:
...but this wont open the link in the main of outlook !

I've found something here :
http://www.experts-exchange.com/Applications/MS_Office/Outlook/Q_21512510.html?qid=21512510

the onlything I can't figure out is how to make it open in the main of outlook :-(


regards
0
 
David LeeCommented:
Hi MRSONNY,

You cannot open an external program in an Outlook window.  You can only open Outlook objects.  Perhaps if you explained a bit more about what you're trying to do we could offer an alternative.

Cheers!
0
 
MRSONNYAuthor Commented:
Hi !

I wanted to make a vb6 app. and then let the form start up inside outlooks main window, just like when you click the inbox and the mail will show inside the main window(on the right). I know that you could have the window open a url, so a solution for opening a url inside the main window would probably do the same trick, I then would make a activeX instead


regards
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.