User forums > General (but related to Code::Blocks)
Shell does not run a GUI Application
(1/1)
alecs:
Hi
I made a VB form with a simple button that calls a compiled GUI app through the Shell command
--- Code: ---Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim procID As Integer
procID = Shell("C:\pepsiZone\Sistema\pepsiZoneOF.exe", AppWinStyle.NormalFocus, Wait:=True)
End Sub
--- End code ---
however it keeps crashing...
If i complie the project with as a console application it works fine
any suggestions?
MortenMacFly:
--- Quote from: alecs on January 11, 2010, 05:18:45 am ---I made a VB form with a simple button that calls a compiled GUI app through the Shell command
--- Code: ---Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim procID As Integer
procID = Shell("C:\pepsiZone\Sistema\pepsiZoneOF.exe", AppWinStyle.NormalFocus, Wait:=True)
End Sub
--- End code ---
--- End quote ---
Thi is not a general programming forum and not even a VB forum. You violate our forum rules therefore so this topic gets locked.
Navigation
[0] Message Index
Go to full version