How can I show html code in vb6?

Seniordemie X

New member
Hi!

I`m becoming crazy!!! I need to show a html code in a textbox of Visual Basic 6 and I don´t know how can I do it. This is mi code;

Dim strenlace As String

strenlace = VACIO
strenlace = strenlace & "<div style='font-family:Courier New; font-size:x-small;'><b>Para confirmar la recepción de este correo, por favor, haga click sobre el siguiente enlace:"
strenlace = strenlace & "<br><br>"
strenlace = strenlace & "<br><br>"
strenlace = strenlace & "<br><br>"

txtBody.Text = strenlace
Yes, I need it because I have more text than that. And I want to show it because the client want to change the default data in the textbox for another he want.
OK, I have the Rich Textbox. Now, how can I show html inside it?
 
The text control, as you have dicovered, will literally show the text string as listed. It is not an HTML parser or renderer.

There are two possible options. One is to add an Internet Explorer control to your toolbox and to use it on the form. Then you can have it display HTML.

Alternatively, do you really need to use HTML? If you are just trying to set a bit of text to display that specific message in that specific font then why not just drop a label on the form and set its properties to suit?
 
Back
Top