[2008] Chat Program With Emoticons?

Jan 11, 2009

I have made a GUI for my chat program and I'm going to finish the server stuff later. I am using Emoticons ( ) in both ASCII form and picture form. The ASCII ones work perfectly. I have taken the picture ones and put their pictures on buttons so their click event copies and pastes the picture to the rich text box I'm using for text input, but when i hit the submit button, it doesn't copy the picture.I'm using this code to copy the image from the buttons:

Clipboard.Clear()
Clipboard.SetImage(Me.btnSmi.Image)
Me.rtbIn.Paste()

ive tried making it so it copies the picture from the rich text box but that didnt work. i tried declaring a global variable (imgEmo as image) and the setting the variable = to what ever emoticon button is pushed at the time (click event) and using the following code in the submit button's click event:

Clipboard.Clear()
Clipboard.SetImage(imgEmo)
Me.rtbChat.Paste()

This is the code for my submit button:

rtbChat.Text += ((txtIn.Text + (" --") + (TimeOfDay)))

As a side problem, how do i make it so that every time i hit the submit button it starts a new line and formats the comment like this:

James says: (what ever the message is) --(TimeOfDay)
Kristie says: (What ever her message is) --(TimeOfDay)

I understand that for her answer to be there i need a server and all sorts of other code but i am not interested in that yet. I just need that format.

(Name) says: (string) --(Time)
(Name) says: (string) --(Time)

The name is coming from a separate form, the login form, and it is displayed in the top of my main form as "-- Welcome (Name)". i used the text changes event of the main form to then close the login form. I tried using this line of

'This was a global
Dim strNom As String = Login.txtUrn.Text
'in the submit button's click event
rtbChat.Text += ((strUrn) + ("says: ") + (rtbIn.Text) + (" --") + (TimeOfDay))
strUrn = strNom

This did nothing, in the chat box it returned "says: (message) --(TimeOfDay)".

View 17 Replies


ADVERTISEMENT

Make A Program VS 2008 Chat

Jul 14, 2010

i wanne make a program (a client and a Server) oke you run the server and get a window you enter your ip and the name of your Chat server and type a password, than you click start server and the server windows goes down, you give the ip and the name from the server on a friend and he gots a client he types your ip in a window and the name of the server, he connects and we can chat

View 2 Replies

VS 2008 Make A Chat Program Using Ftp?

Oct 30, 2009

i wanted to try make a chat program using ftp, im not sure how it will work, i imagined some txt documents in the ftp using winsock etc.

View 4 Replies

VS 2008 Chat Program Regarding Richtextbox/autoscroll?

Aug 27, 2009

i want to make the rich box to auto scroll down when the richtextbox is filed so that i dont need to manuel scroll down evry time a new message come in!

View 7 Replies

VS 2008 Multi-User Chat Program In VB2008?

Aug 8, 2009

do this??& can I make a Main server like this?

View 1 Replies

VS 2008 Turn Winsock Chat System Into A Multi-client Chat System?

Mar 25, 2011

i have made a client and server chat system in VB 2008 with winsock,it's a one to one chat and works perfect fine, but do anyone know how to turn it into a multi-client chat system? Code in below: Here is the code for the server:

[Code]...

View 3 Replies

VS 2008 Multi-User Chat Program (Server & Client) With Main Server?

Aug 10, 2009

Multi-User Chat Program (Server & Client) with Main Server?

View 1 Replies

Add Emoticons In A Text Box?

Feb 16, 2010

does anyone know how can i add emoticons in a text box?

View 7 Replies

Emoticons For Textbox Not .gif?

Apr 11, 2011

how can i get emoticons in to a TextBox?

View 38 Replies

Auto Scroll + More Emoticons?

Apr 11, 2011

how can i let RTB autoscroll? and how can i add more than 1 smiley/emotican with this script?

Dim myImage As New Bitmap("C:smile.gif")
'~~~ Check if the RichTextBox has a smiley symbol ":)"
Do While rtbClient.Text.IndexOf(":)") > -1[code].....

View 6 Replies

Chat In Program Using Lan Connection?

Mar 18, 2009

Chat in vb.net using lan connection

View 2 Replies

Voice Chat Program In .net?

Mar 18, 2009

Voice Chat program in vb.net

View 1 Replies

Chat Server / Listener Program

Dec 16, 2010

I am trying to write a program that has a server/listener program and then 2 client programs, the 2 client programs are supposed to be able to chat with each other. Can anyone point me in the right direction on this?

View 4 Replies

Create Chat Application On A LAN With Program?

Feb 9, 2011

I have chose to create a text/voice/draw chat application. So far, I have gotten as far as creating a server application and a client application which can be run multiple times on the same mahine allowing each instance to communicate with on another.[code]...

View 5 Replies

Getting A Local Network Chat Program?

Aug 26, 2011

I need a program that can send and receive msgs to everyone that's on that program and on that network, then is there a way to add chat rooms to the program 2. I looked all around the Internet and MSDN and found a lot of results but non worked property.

View 6 Replies

Make Internet Chat Program?

Jan 13, 2011

I wanna make a chat program over the internet NOT OVER LAN i found alot of examples but it's all about LAN networks chatting but i want a chat program for the internet chat

View 3 Replies

VS 2010 Create Lan Chat Program?

Jan 25, 2011

Okay so i am dreadfully bored in my Visual basic class at school and thought it would be fun to write a lan chat program for all of my class mates to use. So I was wondering what would be the best way to go about it. I have read up on Winsock but i can't tell if it even exists for Vb 10 or if it is usable if none of our computers cant talk over the internet. If winsock is not a viable option then what would be an alternative.

View 6 Replies

VS 2010 Receiving Chat From A Java Chat Server?

Aug 20, 2011

So, in another related post, i got the chat to send to a java server, cool.Now, it's a matter of sending it back to VB.on the server side of things, (in java), I am using the following

JAVA
public static void sendback(String what2send) throws IOException {
ObjectOutputStream oos = new ObjectOutputStream(mySocket.getOutputStream());

[code]....

View 7 Replies

Create A Chat Program And Use Winsock To Connect?

May 18, 2010

if i create a chat program and use winsock to connect me and my friend would my friend have to download MSWINSCK.OCX to run the application?

View 2 Replies

Make A Chat Program Work On All Computers?

Mar 14, 2010

From all the chat applications I successfully made each and every one of them required me to port forward my router so that the data can be received. Now my question is how can I make my chat program work on computers that have routers with most of the ports blocked, how do traditional chat programs do it? Perhaps The chat program intercepts packets then sends it to a known port such as 80?

View 17 Replies

TCP / IP Chat Program - System Socket Class?

Jul 15, 2009

I wrote a server for a tcp/ip chat program using the system.net.sockets class. When I run the program and the client tries to connect to it, there's an error and it won't work. I am positive that the issue isn't with the client, as I have made a connection with the client before.

Imports System.Net
Imports System.Net.Sockets
Imports System.IO
Public Class Form1
Dim server As New TcpListener(IPAddress.Any, 60)
Dim client As New TcpClient
[Code] .....

View 16 Replies

.net Windows Forms Chat Server Program With Sockets?

Jun 21, 2010

I'm developing chat program. I have database on my webhosting where I store rooms and memebrship tables... I created the client, but I still cant do the server side of the program. It must be in win forms app.(I use .Net 3.5)Every tutorialSample of server side is for Console app. Client code is very close to this(if somebody need it): LINK

View 1 Replies

Chat Program - Target Machine Actively Refused Connection

Jun 4, 2011

How to make a chat program. Well I just copied code in and the program worked. I can send a message to the server and it sends it back just fine. But I can only send a message once. If I try to send another message I get an error and it says this "A first chance exception of type 'System.Net.Sockets.SocketException' occurred in System.dll" then it "No connection could be made because the target machine actively refused it 127.0.0.1:500".
Here is the link to the tutorial and code: [URL]

View 1 Replies

Make A Multi-User CHat Program In Espress Edition?

Aug 8, 2011

How do I make a Multi User CHat Program in Visual Basic Express Edition? I kind of want it like (Server) and then everybody whos a client connects to the server.

View 3 Replies

2010 - Chat Program - LogIn - Read File For Username And Password?

Nov 22, 2010

1) I have a chat Program.

2) To access the Chat Program one has to put in ones Username and password in a Login Form.

3) TextBox1 = Username TextBox2 = Password

4) One clicks the "Log In" button.

5) HERE is the problem. I do not know how to check if the specific username and the password are correct. I have a file called "Users.dat". In there every valid Username(marked with a *) and it's Password(marked with a #) is contained e.g.*Username#Password.

I want my "Log In" program to check if the Username matches one of the usernames and if the username is found in the file, if the password provided is the same as the one standing behind the Username in the file.

6) If both the Username and Password are valid, the Chat Programs shows up.

View 4 Replies

Communications :: Chat Program - Debug LAN Messenger - Computer Actively Refused The Connection On IP/Port" And Then Crashes

Jan 17, 2009

I have a simple chat program i have made, it works but with a few errors.

1st if it can't find the physical pc it is trying to connect to it crashes.

2nd if it finds the physical server but not the program (server) running it says "the computer actively refused the connection on IP/Port" and then crashes.

Code for connect button:

IP = txtboxip.Text
Port = txtboxport.Text

[CODE].....................

View 11 Replies

Chat Over Internet VB 2008?

Mar 31, 2010

I built a chat program using Socket (winsock2005dll) but it did not work well on internet, I've heard that using system.net is more powerful

View 1 Replies

VS 2008 Add A Chat Nudge

Apr 11, 2009

Im trying to add a chat nudge,I have a server that basiclys just broad cast it and sends it to who ever is connected

View 10 Replies

Multi User Chat .net 2008?

Apr 9, 2009

[URL].. Unfortunately that is for i think it was 2003. Most likely it wont update and still work. along with that would it be possible to have users be able to private messege each other, create their own user rooms, and add admin features such as kick, ban, look up ip and such?[URL].. as my login system. its been modified so that the connection string wasnt hard coded.

View 1 Replies

VS 2008 - Disconnecting From Chat Server

Mar 31, 2009

I've been attempting to create a Chat client/server for a while and I found some good tutorials for Visual Basic Express 2008. But I would like my client to be able to disconnect and have the server acknowledge the fact (and send the same message that it does when someone connects) that a client disconnected.
[Code]

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved