Now, before anyone down votes this question or marks it as a repeat, I have tried all of those answers. But, the strangest thing is happening just non of them will work.
RegistryKey reg = Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true);
public Form1()
{
reg.SetValue("HealthHomeWorkReminder", Application.ExecutablePath.ToString());
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
int bob = 10;
SpeechSynthesizer synth = new SpeechSynthesizer();
while (true)
{
synth.Speak("Do You Have Health Homework Or A Social Studies Test To Get Signed? Go and do it immediately!");
synth.Volume = bob;
bob++;
Thread.Sleep(1000);
}
}
Using the configuration above I got it to start and make sound but the form just wouldn't appear with anything I tried. Does anyone have any suggestions?
Aucun commentaire:
Enregistrer un commentaire