Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Trying to make a chat application, but some issues


Alpha
 Share

Recommended Posts

~~![](http://i592.photobucket.com/albums/tt9/Steve_Alpha/untitled-2.png?t=1240518020)

The code I have is:~~

> ~~Private Sub Command1_Click()
> If txtMyTextBox.Text = vbNullString Then
> Call MsgBox("Please type something.")
> Else
> txtChat.Caption = Text1.Text & ": " & txtMyTextBox.Text + txtChat.Caption
> txtMyTextBox.Text = vbNullString
> End If
> End Sub
>
> Private Sub txtChat_GotFocus()
>     On Error Resume Next
>
>     frmMirage.txtMyTextBox.SetFocus
> End Sub~~

~~Didn't do any Winsock yet, but will in a bit. Read the picture for my problem.

EDIT: txtMyTextBox is a text box, txtChat is a label. Command1 is Submit,
Text1 is a text box for your nickname, etc.~~

New question: http://www.touchofdeathforums.com/smf/index.php?topic=43187.msg433659#msg433659

-Alpha
Link to comment
Share on other sites

Second question.. I'm having a bit of trouble with the text appearing on other people's computers. I do the correct code, I think, but it doesn't work.

Do I have to add a Winsock or something?

By the way somehow it didn't save when I added the code, if I do it again I'll see.

-Alpha

EDIT: I added the Winsock.. Got its settings to connect to my IP and port 1234… now how do I make the server.. sort of a noob at Winsock I know.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...