Click here to Skip to main content
15,894,646 members
Home / Discussions / C#
   

C#

 
GeneralRe: Choosing and setting a control's property programatically Pin
Martin#15-Nov-07 1:49
Martin#15-Nov-07 1:49 
GeneralRe: Choosing and setting a control's property programatically Pin
Dewald15-Nov-07 2:53
Dewald15-Nov-07 2:53 
GeneralRe: Choosing and setting a control's property programatically Pin
Martin#15-Nov-07 3:09
Martin#15-Nov-07 3:09 
GeneralRe: Choosing and setting a control's property programatically Pin
Dewald15-Nov-07 4:51
Dewald15-Nov-07 4:51 
GeneralRe: Choosing and setting a control's property programatically Pin
Martin#15-Nov-07 20:35
Martin#15-Nov-07 20:35 
GeneralRe: Choosing and setting a control's property programatically Pin
Dewald15-Nov-07 21:09
Dewald15-Nov-07 21:09 
GeneralRe: Choosing and setting a control's property programatically Pin
Martin#15-Nov-07 21:11
Martin#15-Nov-07 21:11 
QuestionExecution Problem Pin
DeepOceans14-Nov-07 21:59
DeepOceans14-Nov-07 21:59 
AnswerRe: Execution Problem Pin
Adeel Chaudhry14-Nov-07 22:10
Adeel Chaudhry14-Nov-07 22:10 
GeneralRe: Execution Problem Pin
DeepOceans14-Nov-07 23:29
DeepOceans14-Nov-07 23:29 
GeneralRe: Execution Problem Pin
Adeel Chaudhry14-Nov-07 23:35
Adeel Chaudhry14-Nov-07 23:35 
GeneralRe: Execution Problem Pin
Luc Pattyn15-Nov-07 1:49
sitebuilderLuc Pattyn15-Nov-07 1:49 
GeneralRe: Execution Problem Pin
DeepOceans15-Nov-07 20:44
DeepOceans15-Nov-07 20:44 
GeneralRe: Execution Problem Pin
Luc Pattyn16-Nov-07 2:37
sitebuilderLuc Pattyn16-Nov-07 2:37 
GeneralRe: Execution Problem Pin
DeepOceans19-Nov-07 1:01
DeepOceans19-Nov-07 1:01 
GeneralRe: Execution Problem Pin
Luc Pattyn19-Nov-07 1:21
sitebuilderLuc Pattyn19-Nov-07 1:21 
QuestionChristian Graus can you help me with this? Pin
MumbleB14-Nov-07 21:40
MumbleB14-Nov-07 21:40 
AnswerRe: Christian Graus can you help me with this? Pin
Christian Graus14-Nov-07 21:53
protectorChristian Graus14-Nov-07 21:53 
GeneralRe: Christian Graus can you help me with this? Pin
MumbleB14-Nov-07 22:01
MumbleB14-Nov-07 22:01 
GeneralRe: Christian Graus can you help me with this? Pin
Christian Graus14-Nov-07 22:12
protectorChristian Graus14-Nov-07 22:12 
AnswerRe: Christian Graus can you help me with this? Pin
J4amieC14-Nov-07 22:36
J4amieC14-Nov-07 22:36 
GeneralRe: Christian Graus can you help me with this? Pin
Christian Graus14-Nov-07 22:41
protectorChristian Graus14-Nov-07 22:41 
GeneralRe: Christian Graus can you help me with this? Pin
J4amieC14-Nov-07 22:44
J4amieC14-Nov-07 22:44 
QuestionProblem in opening external program using C# Pin
sahadewa_kbe14-Nov-07 21:38
sahadewa_kbe14-Nov-07 21:38 
Hello,

I’m developing non commercial software using Visual C#. In the software, by clicking a button I can open under DOS program, which is named “Linear”, using code bellow

System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.StartInfo.FileName = "start";
proc.StartInfo.Arguments = "Linear";
proc.Start();
proc.WaitForExit();

The Linear lives in the same folder with my software so I don’t use full path for calling Linear.

When I debug my software, the under DOS program could be called and no problem at all. Then, I made setup application of my software, install it in my computer and the software work smoothly.

The problem is when I install my software on other computers and I click the button to open the under DOS program, suddenly warning box occurs with message bellow

///
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ComponentModel.Win32Exception: The system cannot find the file specified
at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at Fondamen.Run.button3_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Fondamen
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/Institute%20Technology%20of%20Bandung/Setup%20Fondamen/Fondamen.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Accessibility
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitdebugging="true">


When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
///

I don’t know wheter it is caused by different environment variables or not. Even, if it is caused by different environment variables, I don’t know how to cope this. Please give me solution. Thank you before.

Andhika Sahadewa
AnswerRe: Problem in opening external program using C# Pin
Christian Graus14-Nov-07 21:49
protectorChristian Graus14-Nov-07 21:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.