WiMoAutoStart_Source.zip
ShowCommandLine
bin
Debug
ShowCommandLine.exe
Win32.dll
Properties
ShowCommandLine.csproj.user
TimedStart
bin
Debug
TimedStart.exe
Win32.dll
Properties
TimedStart.csproj.user
WakeUpStart
bin
Debug
WakeUpStart.exe
Win32.dll
Properties
WakeUpStart.csproj.user
Win32
bin
Debug
Win32.dll
Properties
Win32.csproj.user
|
using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Reflection;
using Win32;
namespace TimedStart
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void menuItemExitWithRestart_Click(object sender, EventArgs e)
{
int countDown = (int)startTimeOut.Value;
if (countDown > 0)
{
string target ;
Module[] m = this.GetType().Assembly.GetModules();
target = m[0].FullyQualifiedName;
Win32Helper.RunAppAtTime(target,new TimeSpan(0,0,0));
//Win32Helper.RunAppAtTime(@"\Windows\BubbleBreaker.exe",new TimeSpan(0,0,new TimeSpan(0,countDown,0)));
this.Close();
}
}
private void menuItemQuit_Click(object sender, EventArgs e)
{
this.Close();
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of use and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I attended Southern Polytechnic State University and earned a Bachelors of Science in Computer Science and later returned to earn a Masters of Science in Software Engineering.
For the past few years I've been providing solutions to clients using Microsoft technologies for web and Windows applications.
While most of my CodeProject.com articles are centered around Windows Phone it is only one of the areas in which I work and one of my interests. I also have interest in mobile development on Android and iPhone. Professionally I work with several Microsoft technologies including SQL Server technologies, Silverlight/WPF, ASP.Net and others. My recreational development interest are centered around Artificial Inteligence especially in the area of machine vision.