2
Answers

Format to currency on print page

Photo of mike Delvotti

mike Delvotti

12y
1.8k
1

Is there a way i can format to a curruncy figure on print page? my subtotal field is output to a number format as ("F2") and i need it like this to save in that format to the DB.

However, I would like it to print to a page as format ("c"), i.e. can i convert my code below to pass the text field 'subtotalTextBox' as ToString("c")

using e.Graphics.DrawString(subtotalTextBox.Text, font,

(Font font = new Font("Arial", 10))SystemBrushes.WindowText, e.PageBounds.X + 687, 940);

Answers (2)

0
Photo of Ramesh Palanivel
NA 9.5k 138.6k 8y
Hi Santosh,
 
Try this links, It may help you!..
 
https://www.codeproject.com/Tips/607801/SimpleplusChatplusprogramplusinplusC
 
http://www.c-sharpcorner.com/UploadFile/97ec13/how-to-make-a-chat-application-in-C-Sharp/