Yep Robby, my mistake, thanx for pointing it out.
Hello Gopi, u gotta apply the Common Dialog selection to the text.
Use the following code for Bold, Italic, Underline & FontColor...
VB Code:
Private Sub Command1_Click() Text1.FontBold = True Text1.FontItalic = True Text1.FontUnderline = True Text1.ForeColor = vbGreen End Sub
For applying Common Dialog values, use this code...
VB Code:
Private Sub Command2_Click() With CommonDialog1 .Flags = cdlCFScreenFonts .ShowFont Text2.FontBold = .FontBold Text2.FontItalic = .FontItalic Text2.FontUnderline = .FontUnderline Text2.Font = .FontName Text2.FontSize = .FontSize End With End Sub
Happy coding...![]()




, thanx for pointing it out.
Reply With Quote