snakemaster
Programmer
I've placed two rich textbox controls and one button on a form. What I want to achieve is that when I click the button, the 2nd textbox will display the HTML code for the rich textbox 1.
Something like: richtextbox2.text = ConvertToHTML(RichTextBox1.Text)
ConvertToHtml is a function that searches for an international character and replaces it with the proper HTML code.
But as soon as I pass the text property to this ConvertToHTML, VB replaces some international (in this case Croatian) characters into question marks. What do I have to do in order for VB to pass a string that represents the exact same content as the textbox?
Something like: richtextbox2.text = ConvertToHTML(RichTextBox1.Text)
ConvertToHtml is a function that searches for an international character and replaces it with the proper HTML code.
But as soon as I pass the text property to this ConvertToHTML, VB replaces some international (in this case Croatian) characters into question marks. What do I have to do in order for VB to pass a string that represents the exact same content as the textbox?