Alpha Posted April 23, 2009 Author Share Posted April 23, 2009 ~~![](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 More sharing options...
unnown Posted April 23, 2009 Share Posted April 23, 2009 txtChat.Caption = Text1.Text & ": " & txtMyTextBox.Text & vbnewline & txtChat.Captioni think Link to comment Share on other sites More sharing options...
Alpha Posted April 23, 2009 Author Share Posted April 23, 2009 Thanks Unnown, this'll help greatly. I'll tell if it worked.-AlphaEDIT: It worked! Thanks! Link to comment Share on other sites More sharing options...
Alpha Posted April 23, 2009 Author Share Posted April 23, 2009 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.-AlphaEDIT: 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 More sharing options...
Homicidal Monkey Posted April 24, 2009 Share Posted April 24, 2009 server just listens for connections and binds another socket to the incoming. Steal the socket server from TE 1.0 if you get lost. Link to comment Share on other sites More sharing options...
Alpha Posted April 24, 2009 Author Share Posted April 24, 2009 Umm.. More in-depth I guess?I get the binding sockets. But I don't have TE… they took it down from the main page.-Alpha Link to comment Share on other sites More sharing options...
vrage Posted April 24, 2009 Share Posted April 24, 2009 I could give you the source of a small chat app I made. Basic winsock, something of an IRC Link to comment Share on other sites More sharing options...
Alpha Posted April 24, 2009 Author Share Posted April 24, 2009 Sure, could you PM it to me?Thanks.-Alpha Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now