473,796 Members | 2,494 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Format the text of a richtextbox with vb6

8 New Member
hi,i'm in a big prob!
i'm sending e-mail with the ocx ansmpt,and the body text is a richboxtext.
Now,the point is,the host receive my e-mails but the text of my e-mail is different because it's not formatted like the original i've sent...

for example,i'm sendind:

How are you doing?
i'm fine

and you?

BUT THEY RECEIVE:

how are you doing?i'm fine and you?

The text is contain in a richtextbox....

i'm using:

.bodytext=richt extbox


Could you hel me please??
Dec 5 '06 #1
3 5615
Killer42
8,435 Recognized Expert Expert
Can you check what line break characters are in your text? You may need to modify them. How did the text get into the richtextbox? Typed by the user?
Dec 5 '06 #2
padhuwork
30 New Member
hi,i'm in a big prob!
i'm sending e-mail with the ocx ansmpt,and the body text is a richboxtext.
Now,the point is,the host receive my e-mails but the text of my e-mail is different because it's not formatted like the original i've sent...

for example,i'm sendind:

How are you doing?
i'm fine

and you?

BUT THEY RECEIVE:

how are you doing?i'm fine and you?

The text is contain in a richtextbox....

i'm using:

.bodytext=richt extbox


Could you hel me please??
Before sending out the email, format your richtextbox text content and add "vbCrLf" necessary. this can for sure appear the same format in which you are sending
Dec 5 '06 #3
bero81
8 New Member
Before sending out the email, format your richtextbox text content and add "vbCrLf" necessary. this can for sure appear the same format in which you are sending
Could you write it down the code for format the contain of the richtextbox???

Please...help me


Thanks a lot
Dec 6 '06 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
2058
by: CNU | last post by:
Hi, I have a richtextbox control that displays some xml data either by loading from a file or by copy-paste in plaintext format. So, it is displayed without any formatting or indentation. Now, I want to display it in a more readable fashion. So, I want to provide an option like "Format Whole Document" (like the one in VS .NET). Is there any way to do this? Regards.
2
658
by: Juan | last post by:
I`m inserting strings in a rich text control using the AppendText method, I would like to change certain parts of the string so, for example, a certain word appears bold and red when inserted. Is it possible using this control? Thanks, Juan.
4
15918
by: Du | last post by:
I want to format the text within my richtextbox. However I have large amount of text to change, simply using richtextbox.select and format is not pratical. How do I change text format using control characters (ie rtf format string) ??? I only need a few formating string; font-weight, font-size, color, and font face
10
11664
by: D Steward | last post by:
I can't seem to add a newline (/n) to get a richtextbox control to display text on successive lines. The text that I type is overwritten. How do I remedy this My example richTextBox->Multiline = true richTextBox->Text = S"First line /n" richTextBox->Text = S"Second line" Thanks
11
1421
by: Noozer | last post by:
I have the following Subs defined to place text into a richtextbox with a specific font and colour, depending on context. Occasionally, the font just doesn't get applied and the text appears in the default style and not the one I've defined in the variables... 'Send incoming text to the display. Private Sub DisplayIn(ByVal text As String) rtbDisplay.SelectionColor = uInColor rtbDisplay.SelectionFont = uInStyle...
4
6513
by: AWesner | last post by:
For readability sake I’m going to first state that: LF = Line Feed CHR(10) CR = Carriage Return CHR(13) Since Rich Text Format is a standard formalized by Microsoft Corporation I get to ask them why they decided that RTF format needed to start writing LF instead of the CRLF that you see in implemented in non formatted text such as seen via notepad. Nor can I find any history on why the decision was made. Was it forgotten and just left...
6
13325
by: garyusenet | last post by:
Hi i have a messagebox like so. MessageBox.Show(mystring); I would like to highlight each occurance of the word "and" in the messagebox. How do I tell the messagebox to highlight each occurance of the word and, in the string mystring that it is displaying? Thanks,
1
1963
by: Rasko | last post by:
when i try to insert kind of text to my richtextbox from web (copy/paste) i can do it but after i wanted to update i can't do it . there is an errormessage appears (Input string was not in a correct format.). Dim urun As String = Replace(TBox4.Text, "'", """") d.CommandText = String.Format("update etic_urunler set etic_urun ='" & urun & "' where id=1")
7
1953
by: Tom | last post by:
Hi all, I am looking for a smart way to assure a file is indeed a text file within a C# method and not binary. For example: Will "thisMysteryFile.dat" be legible if opened in a RichTextBox ... or is it a binary file? I have searched various methods in the string class and am having no luck.
0
9683
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9529
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10457
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10231
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10013
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7550
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5576
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4119
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3733
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.