Link to home
Start Free TrialLog in
Avatar of Sandy Adriano
Sandy AdrianoFlag for Philippines

asked on

How would you make an excel openfile dialog to appear on top of an application which calls it?

I am calling GetOpenFileName() in Visual Studio and I want it to always appear on top of my current Main Form.
Avatar of Norie
Norie

Sandy

How are you calling GetOpenFilename?
Avatar of Sandy Adriano

ASKER

I declared xApp as an Excel application then call xApp.GetOpenFilename() method from VB 2015. I stored the filename generated in a string variable. My problem is my VB application is running the main form before I called the method. When I call it, it runs behind my VB application. I could not get it on top even by hitting Alt+Tab to get into it. I can get to it by going to the task manager and selecting the excel application and goto application option.
ASKER CERTIFIED SOLUTION
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you very much for the suggestions.