Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

Chat bubble

Hello HF,
I'am making my own messenger based on xmpp (ejabberd).
Can anyone know how to make chat message bubble like whatsapp or other social messengers.

Maybe i think its gonna done by using UserControl but when i use

UserControl and a Label control in UC. First problem is Label is Uneditable. So, i cant select word to copy. And also Label doesn't have any special feature to show Emoji. And its not auto resize system with message length.

Please if anyone know about this, Pleaseeeee reply me.

Thanks a lot 👍
You can easily make your own label and make a picture/GFX of a chat bubble.
i don't know much about GDI :(


And how to use emoji picture in Label.


[Image: FhToP.jpg]

like this but want insert Emoji also.
It is all going to be done through GDI like Orka said. There is really no other way around it.
I think it's doable in WPF.
(Dec 2, 2017 12:32 PM)Owl Wrote:  Fortunately it already exists. https://hackforums.net/showthread.php?tid=3928552 Emojis may be harder, I know richtextbox supports images so you may want to combine them.
Not completely but its help alot..thank you bro. 🤝


But i want insert emoji also.. If you know how to insert emoji in RichTextBox please tell me that method also.
(Dec 2, 2017 04:30 PM)v.e.n.o.m Wrote:  

But i want insert emoji also.. If you know how to insert emoji in RichTextBox please tell me that method also.

I found an example, but it is in C#. You can convert it over to VB.NET if you understand both languages.

Otherwise, it might help guide you.

https://stackoverflow.com/questions/1630...ichtextbox
(Dec 2, 2017 06:00 PM)CoderEX Wrote:  I found an example, but it is in C#. You can convert it over to VB.NET if you understand both languages.

Otherwise, it might help guide you.

https://stackoverflow.com/questions/1630...ichtextbox

  🤝 Thanks for your valueable post. But didn't work.   😟
Somebody already made the code for this on stackoverflow, check google.

After some searching: https://stackoverflow.com/questions/2459...pplication
[Image: Syr3DlV.png]
(Dec 4, 2017 08:35 PM)gigajew Wrote:  Somebody already made the code for this on stackoverflow, check google.

After some searching: https://stackoverflow.com/questions/2459...pplication

Yes sir, i was tried that method. But its have few problems. Like auto width, height increament.  Short mesage displayd correctly but when i put a lil'bit long message then bubble cannot show that correctly. 😟
(Dec 2, 2017 12:32 PM)Effexion Wrote:  Cabin in the Woods was an awful film.

Yes it was, but its one of those "so bad its good" type of films, and I think they aimed for that as well.
(Dec 5, 2017 08:55 AM)Ninja Wrote:  Yes it was, but its one of those "so bad its good" type of films, and I think they aimed for that as well.

I agree, I was pretty hyped to watch it for a week and I was disappointed (sorta) after watching it.
The simplest way I can think of is to create your own user control.
Use a graphics path to draw lines and curves until you're satisfied with the shape. That's all a chat bubble is really, curves and lines.
Paint your text and use a bit of math to determine the size that the bubble should be.

Lucky for you I'm bored, and I'm going to give this a shot.

The simplest way I can think of is to create your own user control.
Use a graphics path to draw lines and curves until you're satisfied with the shape. That's all a chat bubble is really, curves and lines.
Paint your text and use a bit of math to determine the size that the bubble should be.

Lucky for you I'm bored, and I'm going to give this a shot.




Update:

[Image: 4bx4VeA.png]

Spoiler (Click to View)

It's in C# but you can easily convert it... I'll leave the dynamic sizing up to you. 🤝
I was pretty bored too, heres a control I came up with:

Pastebin (Click to View)

[Image: 80da791c3da18378a7c544b84882dd2f.png]

All it really is, is a rounded rectangle with text.
Woah ! Thats what i said. Its an awesome work VmX5 . But have few issues. I don't know that is my problem or coding. First i see your screenshot. You re-arrange chat bubble in good format. Receiver's message on left side with Control color (not sure) and Sender's message on right size in Dodgerblue color i think. But when i try. See what happens.

[Image: c9xTVtW.png]

BTW, Thank you very much for this awesome work. I really like your work bro.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Java] by indeedm8Dec 1, 2016 08:53 PM 5 294 Dec 1, 2016 08:53 PM
Last Post: AlpBox
[.NET] by FlzdudenFeb 3, 2016 04:32 AM 15 486 Feb 3, 2016 04:32 AM
Last Post: +Haze
[C] by maderaNov 7, 2015 12:41 PM 6 197 Nov 7, 2015 12:41 PM
Last Post: 0xDEAD10CC