Results 1 to 9 of 9

Thread: [2005] Emoticon in VB.net

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2007
    Posts
    39

    [2005] Emoticon in VB.net

    How would i be able to pull images out of a imagelist and replace them with things such as "" in a vb text box?

  2. #2
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: [2005] Emoticon in VB.net

    You might be able to do that using a RichTextBox, but not with an ordinary textbox.
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  3. #3

    Thread Starter
    Member
    Join Date
    Apr 2007
    Posts
    39

    Re: [2005] Emoticon in VB.net

    how do i make a rich text box

  4. #4
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: [2005] Emoticon in VB.net

    RichTextBox is simply a control in your toolbox. Just like the regular Textbox is.

  5. #5
    Hyperactive Member
    Join Date
    Dec 2006
    Location
    Ubuntu Haters Club
    Posts
    405

    Re: [2005] Emoticon in VB.net

    In case of a chat program I would use a WebBrowser control so that you can append HTML, ie. Whatever you like!

    » Twitter: @rudi_visser : Website: www.rudiv.se «

    If Apple fixes security flaws, they are heralded as proactive. If Microsoft fixes a security flaw, they finally got around to fixing their buggy OS.

  6. #6

    Thread Starter
    Member
    Join Date
    Apr 2007
    Posts
    39

    Re: [2005] Emoticon in VB.net

    How can i Input into web browser

  7. #7
    Hyperactive Member
    Join Date
    Dec 2006
    Location
    Ubuntu Haters Club
    Posts
    405

    Re: [2005] Emoticon in VB.net

    I will find the code when I get back home for you.
    » Twitter: @rudi_visser : Website: www.rudiv.se «

    If Apple fixes security flaws, they are heralded as proactive. If Microsoft fixes a security flaw, they finally got around to fixing their buggy OS.

  8. #8
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: [2005] Emoticon in VB.net

    The documenttext property will let you set the html of the displayed document.
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  9. #9
    Hyperactive Member
    Join Date
    Dec 2006
    Location
    Ubuntu Haters Club
    Posts
    405

    Re: [2005] Emoticon in VB.net

    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:
    Code:
    <br /><b>username</b> {time sent/received}: message
    But maybe that's just me
    » Twitter: @rudi_visser : Website: www.rudiv.se «

    If Apple fixes security flaws, they are heralded as proactive. If Microsoft fixes a security flaw, they finally got around to fixing their buggy OS.

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