Is there anyway to write files for wordpad? User underline, font color variation and font size, bold etc. Even maybe add a picture. Through vb code, and when they open that file you can see it like normal.
Printable View
Is there anyway to write files for wordpad? User underline, font color variation and font size, bold etc. Even maybe add a picture. Through vb code, and when they open that file you can see it like normal.
YOu could try using Richtextbox control, since you can make word documents and rtf's with it. I'm not sure how you make a picture but open a document with it and look at the RTFtext property of the control and find out what code you need to add pictures. To save and open files is just a method in the control.
If i wanted to write the "USERNAME:" in a doc, with the font size 13 and bold, how would i do that?
Nothing hard:
Code:With RichTextBox1
.SelText = "USERNAME:"
.Font.Bold = True
.Font.Size = 13
End With
Is this still ligit to do in vb 3.0, I get a error over the . in seltext.......it high lights it.
With RichTextBox1
.SelText = "USERNAME:"
.Font.Bold = True
.Font.Size = 13
End With
expected statement
I'm not sure if you can get richtextboxes work in vb3, but i'm almost sure you can't use with. Try this instead:
Code:RichTextBox1.SelText = "USERNAME:"
RichTextBox1.Font.Bold = True
RichTextBox1.Font.Size = 13