Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Communications > colouring part of "dataarrival " text


Reply
 
Thread Tools Display Modes
  #1  
Old 04-05-2004, 12:58 AM
jamus jamus is offline
Newcomer
 
Join Date: Apr 2004
Posts: 1
Unhappy colouring part of "dataarrival " text


hi i was just wondering if someone could help me. what i want to be able to do is when the client/ server TCP application recieves a message i want to check the message for a special commmand like "/red" before the message and i want it to automatically change the colour of that message recieved to Red. if someone could please please help me i would be very appreciative. thanx alot in advance
Reply With Quote
  #2  
Old 04-05-2004, 01:01 AM
an5w3r's Avatar
an5w3r an5w3r is offline
Senior Contributor
 
Join Date: Jan 2004
Location: Romania
Posts: 1,342
Default

I suggest you using a richtextbox... search for example on this forum... you'll find a lot...

here's a quick one:

Code:
frmChannel.txtChannel.SelColor = vbRed
frmChannel.txtChannel.SelText = frmChannel.txtChannel.SelText & vbCrLf & "* " & unick & " has quit."
__________________
Fully customizable and easy to use .NET WPF charting library http://www.SoftwareGFX.com
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Reading Text Files and Progress Bar Ashon General 13 05-05-2004 10:55 AM
Text Box Text Color Eric Taddei General 3 09-09-2003 11:37 PM
colouring listview text ( individual letters ) Csharp API 2 04-06-2003 04:06 AM
Text Compare Function cballe General 1 05-24-2002 03:23 AM
Someone Help Me With My Message Boxes Please!! Tajiri17 General 12 03-02-2002 11:29 AM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->