User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Visual Basic 4 / 5 / 6 section within the Software Development category of DaniWeb, a massive community of 456,485 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,786 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums
Views: 3020 | Replies: 3
Reply
Join Date: Sep 2007
Posts: 7
Reputation: dandonia is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
dandonia dandonia is offline Offline
Newbie Poster

Question Please help me open a html document in a rich text box via the common dialog control

  #1  
Sep 17th, 2007
Hi guys this is my first post on here so im sorry if its not done properly its just i have spent several hours trying to solve this problem already and I am starting to get very frustrated.

Basically I have create a basic HTML editor using visual basic 6, I have everything working with exception to opening a html file back into my Rich Text Box. I have saved to the file using showsave and am wanting to open the file using showopen. I have got the showopen code in place and it is picking up the correct file, I know this because it will let me use the filetitle as the caption of my form - my probelm is it will not copy the content back from the html file to the RTB.

I have tried many things and am getting so frustrated pleases help
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2007
Location: KSA
Posts: 147
Reputation: kb.net is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 26
kb.net's Avatar
kb.net kb.net is offline Offline
Junior Poster

Re: Please help me open a html document in a rich text box via the common dialog control

  #2  
Sep 17th, 2007
Hi,

I don't know what IDE you are using but if VB You can't use the richtext control to display an html file?? and even if you used the .filename property you will get the html source of the file instead of the content. An OLE object will not work even. You will need to use a webbrowser
through adding the component "
Microsoft Internet Controls". And then call the file using the Navigate function ex: Me.WebBrowser1.Navigate "c:\temp.htm".
It is never about the number of languages you know, you either have the logic of programming or you don't ...

Some of the codes I post are collected from different sites during the past couple of years, so I would like to thank them for their help and for enabling me to help.
Reply With Quote  
Join Date: Sep 2007
Posts: 7
Reputation: dandonia is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
dandonia dandonia is offline Offline
Newbie Poster

Re: Please help me open a html document in a rich text box via the common dialog cont

  #3  
Sep 17th, 2007
Originally Posted by kb.net View Post
Hi,

I don't know what IDE you are using but if VB You can't use the richtext control to display an html file?? and even if you used the .filename property you will get the html source of the file instead of the content. An OLE object will not work even. You will need to use a webbrowser
through adding the component "
Microsoft Internet Controls". And then call the file using the Navigate function ex: Me.WebBrowser1.Navigate "c:\temp.htm".


I appreciate the reply, maybe i was not fully clear of my problem let me try again.

I have constructed a simple html editor / wysiwyg program that allows the user to preview their work in a web browser. I have already coded the browser part and the code that generates the html and the wysiwyg part. I have also managed to save the file from the editor to a .html file.

I know this is working because i can open the file using firefox and preview it. My problem comes when trying to load the source code back from that file to the program. I figured because the source code is already displayed/created in a rich text box on my source tab (similar to dreamweaver) then i should be able to take the source from the html file and load it back into the RTB to edit. I am using visual basic 6 - Sorry if my post didnt make much sense earlier I had been looking for hours and was almost sick of trying. I hope this one made more sense
Reply With Quote  
Join Date: Sep 2007
Posts: 7
Reputation: dandonia is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
dandonia dandonia is offline Offline
Newbie Poster

Re: Please help me open a html document in a rich text box via the common dialog cont

  #4  
Sep 19th, 2007
no takers then?
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Visual Basic 4 / 5 / 6 Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum

All times are GMT -4. The time now is 3:03 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC