Hi,
Ive got a string consisting of several database fields, I want to put the string into a control and I want part of the string to be BOLD.....
Anyone on how to accomplish this?
Thanx
Printable View
Hi,
Ive got a string consisting of several database fields, I want to put the string into a control and I want part of the string to be BOLD.....
Anyone on how to accomplish this?
Thanx
what control do u want to use ?
RichTextBox ?
No Im using an external calender control.........
is this control have BOLD property ?
if it have , how could u use it ?
but , if u want to manipulate string , u can use VB Function like MID,LEFT,RIGHT,INSTR
The control DOES have a bold property but I only want part of the string to be bold, Im looling for a Ucase type of command.......
But I think its simple not possible
Code:Mid(string, start[, length])
Dim MyString, FirstWord, LastWord, MidWords
MyString = "Mid Function Demo" ' Create text string.
FirstWord = Mid(MyString, 1, 3) ' Returns "Mid".
LastWord = Mid(MyString, 14, 4) ' Returns "Demo".
MidWords = Mid(MyString, 5) ' Returns "Function Demo".
OK,
what part is bold??
could u show me ur code ?
vlcText2 = Trim(vlxClient.Fields("familyname")) & " " & Trim(vlxClient.Fields("firstnaam"))
wdvCalender.DateText(vllDate) = vlcText2
thats my code and I need this part to be bold:
Trim(vlxClient.Fields("familyname"))
Try Beachbums example from this post, It may be a
work around for you.
http://www.vbforums.com/showthread.p...highlight=bold
________
Katyl
It would depend on the calendar control. You can't give a string properties like bold. A string is just a bit of data. If the control lets you bold part of its display, then that's up to the control. We can't really advise you on specific, non-common controls.