| | |
Please help me open a html document in a rich text box via the common dialog control
![]() |
•
•
Join Date: Sep 2007
Posts: 7
Reputation:
Solved Threads: 0
Please help me open a html document in a rich text box via the common dialog control
0
#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
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
Re: Please help me open a html document in a rich text box via the common dialog control
0
#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".
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.
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.
•
•
Join Date: Sep 2007
Posts: 7
Reputation:
Solved Threads: 0
Re: Please help me open a html document in a rich text box via the common dialog cont
0
#3 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".
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
•
•
Join Date: Sep 2007
Posts: 7
Reputation:
Solved Threads: 0
Re: Please help me open a html document in a rich text box via the common dialog cont
0
#4 Sep 19th, 2007
![]() |
Similar Threads
- asp .net & vb .net html rich text editor (ASP.NET)
- writing from bottom up in rich text box (VB.NET)
- Rich Text Box Code (HTML and CSS)
- Common Dialog (Visual Basic 4 / 5 / 6)
- FileOpen Dialog without using Common Dialog Control (Visual Basic 4 / 5 / 6)
- vb6/common dialog/access db (Visual Basic 4 / 5 / 6)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: How to use Mid in multiple Textboxes?
- Next Thread: readin from differnt records(.dbf) at atime
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age application basic beginner birth bmp calculator cd cells.find click client code college component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report save search sendbyte sites sort sql sql2008 sqlserver subroutine tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





