I have develop a chatroom in vb6 with smilleys.
let say the smileys are in a rich textbox in winsock chat.
i want them to move or be shaking in the rich textbox as i see in yahoo or msn chatrooms
thanks
:confused::mad::confused::rolleyes:
Printable View
I have develop a chatroom in vb6 with smilleys.
let say the smileys are in a rich textbox in winsock chat.
i want them to move or be shaking in the rich textbox as i see in yahoo or msn chatrooms
thanks
:confused::mad::confused::rolleyes:
Welcome to VBForums.com :wave:
I think animated GIFs might not work in RichTextBox... But, by using a WebBrowser control, animated GIFs can be displayed.....
You could however "fake" animation by having the image in the RTB changed using a timer X times per second.
If you want to keep it simple, webbrowser's the way to go, as mentioned.
If you want it to be more professional while being simple, stick with your RTB and be aware of its limitations and the possibility that some might not be overcomeable.
If you want the chat to be even more professional while not going through the hassle of making your own control, you could consider making a frame and putting elements into it manually, but then you'd have to mess about with location of each element (label, image, etc)...it'd give the most polished result but it wouldn't allow copy/pasting from the text which both the RTB and the webbrowser will do. The frame method is something I plan to play about with sometime in the near future myself, although if I don't I'll be using webbrowser for the chat rather than a RTB.
I'd try going into custom controls for handling this, but I'm not the kind of person you'd want to ask for that kind of professionalism with programming :-)
thz.
can you suggest any webbrowser that can help
:wave::wave::wave:
Project>Components (or CTRL+T, or right click on toolbox)...
When dialog comes up, select Microsoft Internet Controls, put check in box, and hit okay.
This is the WebBrowser (WebBrowser1 or WB in code examples) and with a search of this forum, and/or codebank you should find as many examples as you need to make it sit up and beg for more... :)
Good Luck
:):D:bigyello::wave::lol: Now that was funny...
It was indeed. Thanks for that mate. :)