3 Replies - 2123 Views - Last Post: 09 August 2010 - 06:22 PM Rate Topic: -----

#1 Themitchel0   User is offline

  • D.I.C Head

Reputation: -1
  • View blog
  • Posts: 107
  • Joined: 14-April 10

open and save file dialog help

Posted 09 August 2010 - 05:52 PM

so i was following a tutorial on openfiledialogs, and i couldn't get parts to work like the title of the dialog, and filters also i followed the live html editor, so im adding on to that, and when the html code loads, it doesnt run! does any know why?
P.S heres the code for the open file dialog
private void openToolStripMenuItem_Click(object sender, EventArgs e)
        {
            openFileDialog1.ShowDialog();
            string Chosen_File = "";
            openFileDialog1.FileName ="";
            openFileDialog1.Filter = "html|*html";
            if (openFileDialog1.ShowDialog() != DialogResult.Cancel)
            {
                Chosen_File = openFileDialog1.FileName;
                richTextBox1.LoadFile(Chosen_File, RichTextBoxStreamType.PlainText);
            }


Is This A Good Question/Topic? 0
  • +

Replies To: open and save file dialog help

#2 n8wxs   User is offline

  • --... ...-- -.. . -. ---.. .-- -..- ...
  • member icon

Reputation: 972
  • View blog
  • Posts: 3,878
  • Joined: 07-January 08

Re: open and save file dialog help

Posted 09 August 2010 - 05:59 PM

See OpenFileDialog Properties
where the Title property leads to

FileDialog.Title Property
Was This Post Helpful? 0
  • +
  • -

#3 Sergio Tapia   User is offline

  • D.I.C Lover
  • member icon

Reputation: 1258
  • View blog
  • Posts: 4,168
  • Joined: 27-January 10

Re: open and save file dialog help

Posted 09 August 2010 - 06:11 PM

http://dotnetperls.com/openfiledialog
Was This Post Helpful? 0
  • +
  • -

#4 Themitchel0   User is offline

  • D.I.C Head

Reputation: -1
  • View blog
  • Posts: 107
  • Joined: 14-April 10

Re: open and save file dialog help

Posted 09 August 2010 - 06:22 PM

thank you for the quick reply, and for the links :rolleyes:
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1