473,569 Members | 2,698 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

dennis, ken tucker.this code will

this code will worked. i can connected to any servers...but how do i
added method called doColor from usercontrol to module

Sub DisplayMessage( ByVal rtb As RichTextBox, ByVal sText As String,
Optional ByVal Colour As String = "")
rtb.SelectionSt art = rtb.Text.Length
rtb.SelectedTex t = sText <=== i needed to call doColor..but
how?
rtb.ScrollToCar et()
End Sub

thsi

Nov 21 '05 #1
2 1005
"Supra" <su*****@rogers .com> schrieb:
this code will worked. i can connected to any servers...but how do i
added method called doColor from usercontrol to module


Please stay in the original thread instead of opening new threads for
replies. Thank you for your cooperation!

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #2
Hi,

RichTextBox1.Te xt = "Green"

RichTextBox1.Hi deSelection = False

RichTextBox1.Se lect(0, 5)

RichTextBox1.Se lectionColor = Color.Green

RichTextBox1.Se lectionLength = 0

RichTextBox1.Ap pendText(vbCrLf )

RichTextBox1.Se lectionStart = RichTextBox1.Te xt.Length

RichTextBox1.Se lectionColor = Color.Red

RichTextBox1.Se lectedText = "RED" & vbCrLf

RichTextBox1.Se lectionStart = RichTextBox1.Te xt.Length

RichTextBox1.Se lectionColor = Color.Blue

RichTextBox1.Se lectedText = "BLUE" & vbCrLf

Ken

---------------------------

"Supra" <su*****@rogers .com> wrote in message news:Oo******** ******@TK2MSFTN GP09.phx.gbl...
this code will worked. i can connected to any servers...but how do i added method called doColor from usercontrol to module

Sub DisplayMessage( ByVal rtb As RichTextBox, ByVal sText As String, Optional ByVal Colour As String = "")
rtb.SelectionSt art = rtb.Text.Length
rtb.SelectedTex t = sText <=== i needed to call doColor..but how?
rtb.ScrollToCar et()
End Sub

thsi

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1657
by: Robin Tucker | last post by:
I have a DLL that hands me an HGLOBAL handle to a blob of memory containing a WAV file (don't ask what the app is!). I figured I could play it with winmm.dll PlaySound or sndPlaySound (deprecated?). But how? Any ideas?
7
1194
by: Supra | last post by:
hi ken tucker, how will i do in vb.net? in vb6 i have no problem. i have rewritten in vb.net but i got white blank form. i am doing irc chat project similar mirc chat. in vb6 class module (not module module) Public varNewChannel as Collection Public Property Get NewChannel () as Collection Set NewChannel = varNewChannel
2
1210
by: Supra | last post by:
I had problem in irc chat. first server from UNDERNET i had crashed and some other servers had no plobem such as DALNET, WEBMASTER, EFFNET, CHATNET, etc. why? Undernet do not sent server name plus NOTICE AUTH... this what i see on debug window... in undernet if i send MOTD again i will get crash again. but in dalnet i never get crash again...
12
1109
by: Bernie Yaeger | last post by:
I asked two fairly simple questions, or so I thought, but have received no ideas at all. 1. What is the control that MS uses in Outlook Express that contains attachments? It appears to be a multicolumn listbox but the # of columns is somehow fixed and it contains icons as well as text. 2. When I add a main menu to a child form in an mdi...
0
7612
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8122
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7673
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7970
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6284
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5513
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3640
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
937
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.