30-09-12, 02:29 AM
تفضل اخي الكريم
كود :
Console.WriteLine(" Hello ")
Dim path = Application.StartupPath + "\s.txt"
If (System.IO.File.Exists(path)) Then
Process.Start(path)
Else
Console.WriteLine("File Not Found ")
End If
For Each c As Process In Process.GetProcesses
If c.MainWindowTitle = "s.txt - Notepad" Then
Me.Hide()
Form1.Show()
End If
Next