I have a program and it recives messages from more than one person. How would I make it so each message pops up in a new form and like messages from the same user go in the same window.

Here is some code for the message reciveing
VB Code:
  1. Private Sub Message(strName As String, strMsg As String)
  2. Dim frm As Form
  3. Dim blnExist As Boolean
  4.  
  5. For Each frm In Forms
  6.     If UCase(frm.Caption) = UCase(strName) Then
  7.         blnExist = True
  8.         Exit For
  9.     End If
  10. Next frm
  11.  
  12. If blnExist = False Then
  13. Dim newfrm As New Form2
  14. newfrm.Caption = strName
  15. newfrm.Tag = strName
  16. newfrm.Text1.Text = newfrm.Text1.Text & strName & " - " & strMsg & vbNewLine
  17. newfrm.Show (vbNormal)
  18. End If
  19.  
  20. If blnExist = True Then
  21. If newfrm.Tag = strName Then
  22. newfrm.Text1.Text = newfrm.Text1.Text & strName & " - " & strMsg & vbNewLine
  23. End If
  24. End If
  25.  
  26. End Sub

That makes it so the new messages show in a new window and everything but only the first message works. Ill try to explain it better if that doesnt make sense.