English 中文(简体)
如何在使用c#的操作外壳档案之间盘旋。 纽顿点击的净代码?
原标题:how to toggle between the running exe files using c#.net code on button click?

sir i want to know that how could i navigate/toggle between the different exe files using c#.net code on my .net application on the button click event..basically i want to do toggling between the current and previously opened running exe files..im able to run an exe file on my .net application but not able to provide an option for opening the previously running exe file...on the whole i want to provide a facility same as we are having in the OS windows that we could toggle between the applications on the taskbar menu how could i do the same in the c#.net application using c# code. thanks

最佳回答

尽管我不相信我是否正确,但你是否希望就任何事件援引新的先例:

System.Diagnostics.ProcessStartInfo f = new System.Diagnostics.ProcessStartInfo("C:\windows\system32\rundll32.exe",
"C:\windows\system32\shimgvw.dll,ImageView_Fullscreen " +
fileName.TrimEnd (null));

try
{
// Pass the ProcessStartInfo object to the Start function.
System.Diagnostics.Process.Start (f);
}
catch (Exception ex)
{
System.Diagnostics.Debug.WriteLine (ex.ToString ());
} 
问题回答

暂无回答




相关问题
How can I load a folders files into a ListView?

I d like to have a user select a folder with the FolderBrowserDialog and have the files loaded into the ListView. My intention is to make a little playlist of sorts so I have to modify a couple of ...

File Handling Issue

I am developing a tool in c#, at one instance I start writing into a xml file continuously using my tool,when i suddenly restart my machine the particular xml file gets corrupted, what is the reason ...

C# GemBox Excel Import Error

I am trying to import an excel file into a data table using GemBox and I keep getting this error: Invalid data value when extracting to DataTable at SourceRowIndex: 1, and SourceColumnIndex: 1. As ...

Saving output of a for-loop to file

I have opened a file with blast results and printed out the hits in fasta format to the screen. The code looks like this: result_handle = open("/Users/jonbra/Desktop/my_blast.xml") from Bio.Blast ...

热门标签