alexander clarke

how do i use the "open file" dialogs

thx




Re: Visual Basic Express Edition opening files

I Luv Visual Basic 2005 E.E.

I have been wondering how to do that too because i want to make a word program and i want a open/load and save dialogs in it. But i dont know how to make it save the text in a rich textbox and load it. I know how to open the dialog box though






Re: Visual Basic Express Edition opening files

js06

There are quite a few examples of what the both of you are asking about here in the forum

Try doing some searches and i think you will get what you need






Re: Visual Basic Express Edition opening files

alexander clarke

this will sound funny but im trying to make a secondary operating system becuase i feel windows doesnt supply enough stuff. im trying to make it import program exes to play them on this program. thats what i want to know how to use the open dialogs for.






Re: Visual Basic Express Edition opening files

Amrykid

i want to make a os too!!!!!





Re: Visual Basic Express Edition opening files

I Luv Visual Basic 2005 E.E.

Nice hope the os works for you guys nice idea. I have Vista right know and i think it's F***ing Retarted no offense to Microsoft but i think they released it way to early they should of got the bugs out first before they released it. Still no offense to Microsoft






Re: Visual Basic Express Edition opening files

Martin Xie - MSFT

I Luv Visual Basic 2005 E.E. wrote:

I have been wondering how to do that too because i want to make a word program and i want a open/load and save dialogs in it. But i dont know how to make it save the text in a rich textbox and load it. I know how to open the dialog box though.

To save the text in a RichTextBox control and load it, the RichTextBox.SaveFile() and RichTextBox.LoadFile() methods need to be used.

1. Please check these threads for reference.

In my richtext box i need to load a ms word document file content

Loading into & Saving Text File from RichTextBox

If you save your word document as "Word 97-2003 & 6.0/95-RTF" it will save the file as an rtf file with a doc extension. This format will allow you to open the document in previous versions of word and in your rtb. Me.RichTextBox1.LoadFile("C:\TheDoc.doc", RichTextBoxStreamType.RichText)

2. Word Processing with an Extended Rich Text Box Control

This article and the sample application will use this extended version of the RTF control to demonstrate the following word processor related functions:

  • Opening Text, RTF, HTML, or other text files into a RTB control
  • Saving Text, RTF, HTML, or other text files from an RTB control
  • Implementation of the Page Setup dialog control
  • Implementation of the Print Preview dialog control
  • Implementation of the Print dialog control
  • Setting font properties on selected text or RTF within the RTB control
  • Searching for and highlighting text contained within the RTB control
  • Searching for and replacing text contained within the RTB control
  • Adding Indentation to sections of an RTB's content
  • Adding Bullets to sections of an RTB's content
  • Implementing Undo/Redo within an RTB
  • Implementing Select All, Cut, Copy, and Paste in an RTB control
  • Embedding Images into an RTB control
  • Setting page and font colors
  • Implementing Alignment options in an RTB control

Regards,

Martin