Visual Basic .NET Forums  
Click here to advertise with us

Go Back   Visual Basic .NET Forums > Visual Studio .NET > VS.NET General Discussion

VS.NET General Discussion Anything related to Visual Studio and not covered in a topic forum. Please use a specific forum from the list below if able!

VB.NET Forums Newsletter Signup:
Email address:


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-07-2009, 4:05 PM
VB.NET Forum Enthusiast
.NET Framework: .NET 3.0 (VS 2005/2008)
 
Join Date: Dec 2007
Posts: 41
Reputation: 30
Steve36445 is on a distinguished programming path ahead
Default Trouble with shell statement VB 2008

Can you help me please?


I am trying to launch one program (written by me) from another. I have done it before and it worked fine, but not now.

The program runs and seems to have the focus* but it is not displayed.

* It appears on the task bar and is highlighted. If I press alt + tab TWICE the form is displayed.

To trouble shoot I have written two simple apps.

The launcher

Code:
Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

        Shell("C:\Documents and Settings\steve\My Documents\vb\2008\tests\loading_test\loading_test\bin\Release\loading_test.exe")

    End Sub

    
End Class
The path is correct and I have tried the target file in both the debug and publish directories as well as in the route dirctory of the launching program.



And the Target (loading_test.exe) program-just a blank form.

If I double click on the target .exe file it works fine.


Any advice would be welcome.


Thanks,

Steve
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-08-2009, 8:17 AM
VB.NET Forum Enthusiast
.NET Framework: .NET 3.0 (VS 2005/2008)
 
Join Date: Dec 2007
Posts: 41
Reputation: 30
Steve36445 is on a distinguished programming path ahead
Default

The answer is here.

Trouble with shell statement VB 2008 - DevX.com Forums

Steve
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





All times are GMT -4. The time now is 2:37 AM.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2


For advertising opportunities click here.