VS 2008 Chat Program Regarding Richtextbox/autoscroll?
Aug 27, 2009i 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 Repliesi 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 Repliesi 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 Repliesi 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 RepliesI 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)".
do this??& can I make a Main server like this?
View 1 RepliesMy Question i want to jazz the text up by alowing the user to change there own font color but i dont know how send the dont and then recostruct it on the other clients end Eg Me: Im Pink You: im red and The usernames are diffrent then the text YOUR NAME is Blue And Other Users Are Green how would i send the font for every user and then display the text in the text box on the otther clients heres the code i use to send text
Code:
SendData("CHAT|" & txtSend.Text)
heres the code i use to set the font
Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
ColorDialog1.ShowDialog()
txtSend.ForeColor = ColorDialog1.Color
End Sub
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]...
Multi-User Chat Program (Server & Client) with Main Server?
View 1 RepliesChat in vb.net using lan connection
View 2 RepliesVoice Chat program in vb.net
View 1 RepliesI 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 RepliesI 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 RepliesI 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 RepliesI 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 RepliesOkay 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 RepliesThe following code works perfectly to allow moving a control on a form at run-time. However, when AutoScroll is set to True on Form1, and you drag Button1 past the right and/or bottom bounds of the form, it goes haywire. I really need someway to smoothing control the autoscroll so that as you scroll the control off the form, the scrollbars smoothly appear.
[Code]...
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]....
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 RepliesFrom 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 RepliesI 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] .....
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 RepliesHow 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]
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 Replies1) 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.
I am currently making a DOS type thing, called the Terminal Client, in visual basic 2008 express. I have 2 textboxes, one is a big multiline textbox for where all the command stuff goes. Then I have a second textbox at the bottom thats not multiline, and thats just for typing commands. I want to make the big multiline one scroll down as you put more and more commands into it.Something like this (which ive already tried):
textbox1.selectionstart = textbox1.text
textbox1.selectionlength = 0
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].....................
I have a multiline textbox that while a file is read in some data is echo'ed out onto the textbox. Is is possible to programatically scroll the object down to the bottom? Changing everything over to a combobox and then changing the selected index would essentially do what I want, but the user needs to select/copy a bunch of lines.
View 5 RepliesI am using a panel control in vb.net (2010) to build a timeline of images. These are very small images (320x180) and I am running into a limit of 240. While the panel does not complain when I add more - it will only scroll to the 240th one.[code]...
I am counting on some of the built-in functionality of the panel in autoscroll mode (being able to bring any of the thumbnails into view), etc. I am certainly not averse to purchasing a third party control for this. I really need to be able to display 1000 or more thumbnails!
I have a Panel set to Auto Scroll and a Picture Box inside of the Panel that's set to Auto Size. I can use the scroll bars, but why wont my mouse wheel scroll the panel up and down?
View 4 RepliesI have a program that will keep adding info to a richtextbox, I want to to autoscroll to the end
this is what I have vb.net Private Sub RichTextBox2_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RichTextBox2.TextChanged RichTextBox2.SelectionStart = RichTextBox2.Text.Length - 1 RichTextBox2.ScrollToCaret()
Return
End Sub
the problem is that it will go back to the beginning of the richtextbox2 then it will go to the end and it keeps jumping like that. If there a "smoother" way to do this? So it wont keep jumping back and forth?