How to Load .Rtf file in Vb6

Hello guys, this is a sample tutorial on how to load or integrate a .RTF file on your VB6
program, all you have to do is to Add a Components named Microsoft Rich Textbox
Control 6.0(SP6), like shown at the image below




















just marked checked the square box the click Apply






















just drag Rich Text box control on your form, like shown above

and the simple and basic code will look like this

Private Sub Form_Load()
    RichTextBox1.LoadFile "E:\Projects\Thesis Backup\
    SPC_Payroll System thesis final\help me.rtf", rtfRTF
End Sub

Note: Make sure that you can specified the correct Path or the folder Directory of
your .RTF file, to avoid hassle and  errors on your side.

at this code i placed the code on the Form_Load event,but its up to you where do you
want to placed it.

Happy Coding ^_^
The Hardest Thing to Do is to Do Nothing ^_^
These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Furl
  • Reddit
  • Spurl
  • StumbleUpon
  • Technorati

Leave a comment

Copyright @ Codes-47.Blogspot.Com. Powered by Blogger.