Solved

bold part of string (vb.net)

Posted on 2011-02-24
8
1,387 Views
Last Modified: 2012-06-21
sMsgbody = "Attached are the grade reports.  These papers must be completed and returned to this email address by 3/05/2000." & vbCrLf & vbCrLf & _
                   "Please close all open apps before opening the attachments." & vbCrLf & vbCrLf & vbCrLf & vbCrLf  & vbLf & vbLf & vbLf & vbLf & "Laundry and Equipment"

In the text, Id like to bold "Laundry and Equipment"
Is it possible?
Im using wiindows forms

0
Comment
Question by:zachvaldez
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 34971591
where is this sMsgbody used? If you render it in a label, there is no way. If you render it in a HTML container, you can use <b>...</b> (but then you will have to replace your vbCRLF with <br />).
0
 
LVL 3

Expert Comment

by:4runnerfun
ID: 34971630
Also, if it is a label, you could create two separate labels, having the first part of your message go into the first label, and the "Laundry and Equipment" portion going into the second label, having the font of the second label as bold.
0
 

Author Comment

by:zachvaldez
ID: 34972145
it is rendered in the body of the email..
0
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 
LVL 70

Accepted Solution

by:
Éric Moreau earned 150 total points
ID: 34972688
then you can use the html tags <b>...</b> and <br />

also check http://www.emoreau.com/Entries/Articles/2007/09/Using-SystemNetMail.aspx
0
 

Author Comment

by:zachvaldez
ID: 34975202
Just to clarify .Is a regular email document sent thru Groupwise consider an Html document?
0
 
LVL 12

Assisted Solution

by:Mohamed Abowarda
Mohamed Abowarda earned 100 total points
ID: 34979158
You need to set the MIME Content-Type to text/html NOT text/plain, then you can send the email normally and use <strong>Bold text goes here...</strong>
0
 

Author Comment

by:zachvaldez
ID: 34980244
Interesting! "You need to set the MIME Content-Type to text/html NOT text/plain"
How do I set it?


0
 
LVL 12

Expert Comment

by:Mohamed Abowarda
ID: 35083697
You can set MIME Content-Type by changing the email header
http://en.wikipedia.org/wiki/MIME
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question