Jump to content


Check out our Community Blogs

QuackWare

Member Since 03 Jan 2010
Offline Last Active Jul 09 2010 10:42 PM
-----

#542332 [Help]Sending Email with form data

Posted by QuackWare on 12 February 2010 - 02:28 PM

How to Create your Own Email Client
  • -1


#541912 Saving a textbox to User Defined File?

Posted by QuackWare on 11 February 2010 - 12:29 PM

Your not actually opening up the dialog, just giving the path before you even select it. Add this if statement which I bolded in your new code. It will show the dialog and also only execute the save code if the user clicks "OK".

SaveFileDialog savDialog = new SaveFileDialog();
savDialog.Title = "Specify Destination Filename";
savDialog.Filter = "Text Files(*.txt)\"|*.txt";
savDialog.FilterIndex = 1;
savDialog.OverwritePrompt = true;
[B]
if (savDialog.ShowDialog() == DialogResult.OK)[/B]
{
     FileStream fs = new FileStream(savDialog.FileName, FileMode.OpenOrCreate, FileAccess.Write, FileShare.ReadWrite);
     StreamWriter sw = new StreamWriter(fs, System.Text.Encoding.ASCII);
     sw.Write(richTextBox1.Text);
     sw.Flush();
     sw.Close(); fs.Close();
}

  • 1


#541786 Making my app run on start up?

Posted by QuackWare on 10 February 2010 - 09:16 PM

You can also place a shortcut or the exe in the startup folder which varies per OS.

To make a popup notification appear in an hour just use timers. Once the timer has ran for 1 hour you can pop up the notification again.

You can check out these C# Timer Code Snippets for help.
  • 1


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download