DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Shell Command

  1. #1
    Join Date
    Jun 2004
    Posts
    288

    Shell Command

    When I use the shell command, from the application, the file is opened in notepad. But it goes minimized in the taskbar.

    Is there any way to bring it to the front?


    Shell "Notepad.exe " + "C:\temp\temp.txt", vbMaximizedFocus

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    Your code works fine in a compiled EXE, but when run in the IDE, the debugger steals focus. Have you tried compiling your app and testing from there?

    Also, I see that you posted a duplicate question in the .NET Technical forum (which I have deleted). Is this a VB.NET app, or a VB6 app?
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center