Sythe.Org Forums     Register     FAQ     Members List     Calendar     Mark Forums Read    
 
Sythe.Org Forums  
   Runescape Gold

Sythe.org — A Virtual Goods Trading Hub

Make real cash! buying and selling in-game items.

We have a no-scam policy.

You can make thousands playing your favourite games here at Sythe.org.

Just sign up an account and follow the rules!


Take me to

Runescape Markets

Other Game Markets

Support Center

Register an Account

Close
RTB Writeln Function
Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 08-28-2011, 06:31 PM
Terrankiller's Avatar
Ex-Administrator
Ex-Administrator Visual Basic Programmers
 
Join Date: May 2005
Location: California
Posts: 1,262
Send a message via MSN to Terrankiller Send a message via Skype™ to Terrankiller
Default RTB Writeln Function

I am currently developing an open source IRC server and I am using a Rich Text Box control as a console to display data. This function will append the specified rtb using the specified text, font, font size, color, and style.

Code:
Public Sub Writeln(ByRef RTB As RichTextBox, ByVal sText As String, ByVal sFont As String, ByVal fSize As Integer, ByVal fColor As Color, ByVal fStyle As FontStyle)

   RTB.SelectionColor = fColor
   RTB.SelectionFont = New Font(sFont, fSize, fStyle)
   RTB.AppendText(sText & vbNewLine)

End Sub
An example use:

Code:
Writeln(RichTextBox1, "Hello World!", "Verdana", 8, Color.Red, 1)
Writeln(RichTextBox1, "This", "Verdana", 8, Color.Blue, 2)
Writeln(RichTextBox1, "is", "Verdana", 8, Color.Green, 3)
Writeln(RichTextBox1, "a", "Verdana", 8, Color.Orange, 4)
Writeln(RichTextBox1, "test!", "Verdana", 8, Color.Yellow, 5)
Picture of the example:

__________________
E PLURIBUS UNUM



Spam Forum: Where boys become men.


Last edited by Terrankiller : 09-06-2011 at 02:58 PM.
Reply With Quote
  #2  
Old 09-03-2011, 07:24 AM
Covey's Avatar
Creator of EliteSwitch
Ex-Moderator Visual Basic Programmers
 
Join Date: Sep 2005
Location: Fuckin' BAM!
Posts: 4,464
Default Re: RTB Writeln Function

Pretty smooth
Are you making a whole server or just a client?

And if you need a hand here and there just send a message my way or post here and i'll help. I don't mind a little project here and there to sharpen my dwindling skills
__________________
EliteSwitch v4 Source Code - http://sythe.org/showthread.php?t=1214654
Reply With Quote
  #3  
Old 09-03-2011, 08:53 AM
Darthatron's Avatar
Massive Troll
Ex-Moderator Visual Basic Programmers
 
Join Date: May 2006
Location: The internet.
Posts: 1,604
Send a message via MSN to Darthatron
Default Re: RTB Writeln Function

I'd be very interested to see the finished product. Really good idea with the Writeln function too. Keep it up.
__________________
I do not trade.
Always ask for a PM.
Reply With Quote
  #4  
Old 09-05-2011, 11:24 AM
Terrankiller's Avatar
Ex-Administrator
Ex-Administrator Visual Basic Programmers
 
Join Date: May 2005
Location: California
Posts: 1,262
Send a message via MSN to Terrankiller Send a message via Skype™ to Terrankiller
Default Re: RTB Writeln Function

I am developing a server and client. I am trying to figure out the best way to go about programming both using the .net socket library.
__________________
E PLURIBUS UNUM



Spam Forum: Where boys become men.

Reply With Quote
Reply



Cheap RS Gold Store  Runescape Gold

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

All times are GMT +1. The time now is 09:15 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.6.1