Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

rich text format

Status
Not open for further replies.

brew2

Programmer
Joined
Apr 29, 2007
Messages
21
Location
US
this works in vb6 but as a newbie to vb2005 I am at loss to convert

Code:
If rtfText.SelBold = True Then
     rtfText.SelBold = False
     Call BoldStatus(False)
Else
     rtfText.SelBold = True
     Call BoldStatus(True)
End If
Also, after the font dialog box is opened (.showdialog)
Code:
fdgLetters.ShowDialog()
rtfText.SelFontName = cdlText.FontName  'how to set font?
rtfText.SelFontSize = cdlText.FontSize  'How to set font size?
Thanks for the help.
 
Found some examples which should work. thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top