???Code:Dim full As String = curdate + " " + username = ": " + post
Code:Dim full As String = String.Format("{0} {1}: {2}", curdate,username,post)
ok i am editing blubbs shoutbox for my needs
i edited a part of the code and on the chatbox it returns FALSE
this is my code
Code:Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load '0 = Username, 1 = Post, 2 = Email, 3 = Date, 4 = Time DisableCloseButton(Me.Handle) For Each s As String In ShoutBox.GetAllEntrys("|") Dim x() As String = Split(s, "|") Dim username As String = x(0) Dim post As String = x(1) Dim curdate As String = x(3) Dim curtime As String = x(4) Dim full As String = curdate + " " + username = ": " + post 'curdate + username =": " + post lvMain.Items.Add(full) Next End Sub
How can i have chat box return like this unstead of the default way?
would i have to change the split so it would look like this?
Code:Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load '0 = Username, 1 = Post, 2 = Email, 3 = Date, 4 = Time DisableCloseButton(Me.Handle) For Each s As String In ShoutBox.GetAllEntrys("|") Dim x() As String = Split(s, "|") Dim username As String = x(1) Dim post As String = x(2) Dim curdate As String = x(0) Dim full As String = curdate + " " + username = ": " + post 'curdate + username =": " + post lvMain.Items.Add(full) Next End Sub
Thanks Jason for the color Syntax, IT's Epic
Last edited by cosconub; 01-25-2011 at 07:45 PM.
~Mohandas GandhiA man is but the product of his thoughts what he thinks, he becomes.
~ ImmortalA Genius is nothing with out an idea, An idea is always an idea even without a genius.
???Code:Dim full As String = curdate + " " + username = ": " + post
Code:Dim full As String = String.Format("{0} {1}: {2}", curdate,username,post)