Results 1 to 8 of 8

Thread: How to make smileys move

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2010
    Location
    Obuasi
    Posts
    151

    Wink How to make smileys move

    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


  2. #2
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: How to make smileys move

    Welcome to VBForums.com

    I think animated GIFs might not work in RichTextBox... But, by using a WebBrowser control, animated GIFs can be displayed.....

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  3. #3
    PowerPoster
    Join Date
    May 2006
    Location
    Location, location!
    Posts
    2,673

    Re: How to make smileys move

    Quote Originally Posted by akhileshbc View Post
    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 :-)
    Well, everyone else has been doing it :-)
    Loading a file into memory QUICKLY - Using SendKeys - HyperLabel - A highly customisable label replacement - Using resource files/DLLs with VB - Adding GZip to your projects
    Expect more to come in future
    If I have helped you, RATE ME! :-)

    I love helping noobs with their VB problems (probably because, as an amateur programmer, I am only slightly better at VB than them :-)) but if you SERIOUSLY want to get help for free from a community such as VBForums, you have to first have a grounding (basic knowledge) in VB6, otherwise you're way too much work to help...You've got to give a little if you want to get help from us, in other words!

    And we DON'T do your homework. If your tutor doesn't teach you enough to help you make the project without his or her help, FIND A BETTER TUTOR or try reading books on programming! We are happy to help with minor things regarding the project, but you have to understand the rest of it if you want our help to be useful.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Jan 2010
    Location
    Obuasi
    Posts
    151

    Re: How to make smileys move

    thz.
    can you suggest any webbrowser that can help

  5. #5
    Frenzied Member
    Join Date
    Mar 2009
    Posts
    1,182

    Re: How to make smileys move

    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
    Option Explicit should not be an Option!

  6. #6
    PowerPoster
    Join Date
    May 2006
    Location
    Location, location!
    Posts
    2,673

    Re: How to make smileys move

    Quote Originally Posted by vb5prgrmr View Post
    make it sit up and beg for more...
    It might just be personal experience, but the only begging I ever see with webbrowser is me begging the damn thing to do what I want it to, then crying with rage as it decides not to listen :-P
    Well, everyone else has been doing it :-)
    Loading a file into memory QUICKLY - Using SendKeys - HyperLabel - A highly customisable label replacement - Using resource files/DLLs with VB - Adding GZip to your projects
    Expect more to come in future
    If I have helped you, RATE ME! :-)

    I love helping noobs with their VB problems (probably because, as an amateur programmer, I am only slightly better at VB than them :-)) but if you SERIOUSLY want to get help for free from a community such as VBForums, you have to first have a grounding (basic knowledge) in VB6, otherwise you're way too much work to help...You've got to give a little if you want to get help from us, in other words!

    And we DON'T do your homework. If your tutor doesn't teach you enough to help you make the project without his or her help, FIND A BETTER TUTOR or try reading books on programming! We are happy to help with minor things regarding the project, but you have to understand the rest of it if you want our help to be useful.

  7. #7
    Frenzied Member
    Join Date
    Mar 2009
    Posts
    1,182

    Talking Re: How to make smileys move

    Now that was funny...
    Option Explicit should not be an Option!

  8. #8
    Hyperactive Member
    Join Date
    Jun 2007
    Posts
    280

    Re: How to make smileys move

    It was indeed. Thanks for that mate.
    Slower than a crippled Vista
    More buggy than a fresh XP install
    Look! Down the road, some 50 miles behind the drunken snail.
    It's Ubuntu!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width