How would i be able to pull images out of a imagelist and replace them with things such as ":)" in a vb text box?
Printable View
How would i be able to pull images out of a imagelist and replace them with things such as ":)" in a vb text box?
You might be able to do that using a RichTextBox, but not with an ordinary textbox.
how do i make a rich text box
RichTextBox is simply a control in your toolbox. Just like the regular Textbox is.
In case of a chat program I would use a WebBrowser control so that you can append HTML, ie. Whatever you like!
:afrog:
How can i Input into web browser
I will find the code when I get back home for you.
The documenttext property will let you set the html of the displayed document.
That's what I was looking for, good point.
Alex, simply append each new message on a new line (<br />) and put whatever you like in it. A few simple string replacements should do the trick (ie. replace whatever you want with HTML code).
My preferred format would be for each message:
But maybe that's just me ;)Code:<br /><b>username</b> {time sent/received}: message