Y
[Yosi]
I trying to print my App form by printDocument,
i trying to draw the text box, but i don't know how to
draw the the text in the right alignment.
// print edit box control contents
if (Controls.GetType() == this.textBox1.GetType())
{
TextBox theText = (TextBox)Controls;
g.DrawString(theText.Text, theText.Font, Brushes.Black,
theText.Bounds.Left*scalex, theText.Bounds.Top * scaley,
new StringFormat());
}
the result of this is. the text print in left align how
to to make it to be on the right align
i trying to draw the text box, but i don't know how to
draw the the text in the right alignment.
// print edit box control contents
if (Controls.GetType() == this.textBox1.GetType())
{
TextBox theText = (TextBox)Controls;
g.DrawString(theText.Text, theText.Font, Brushes.Black,
theText.Bounds.Left*scalex, theText.Bounds.Top * scaley,
new StringFormat());
}
the result of this is. the text print in left align how
to to make it to be on the right align