R
RickDee
I really can't understand on how to use CreateGraphics. Even though I have
follow what is shown in many sites, I can't get it working at all.
For example.
I have textbox name textbox1. I create a method as shown below :
public void DrawTextBox()
{
Graphics g = textBox1.CreateGraphics();
g.DrawString("Hello", new Fonr("Verdana", 8), new SolidBrush(Color.Red),
0, 0);
}
Then in the Window application, I call this method. But the text box just do
not want to display anything.
What is going on ?? What is the thing that I don't understand actually ?
Thanks
Regards
follow what is shown in many sites, I can't get it working at all.
For example.
I have textbox name textbox1. I create a method as shown below :
public void DrawTextBox()
{
Graphics g = textBox1.CreateGraphics();
g.DrawString("Hello", new Fonr("Verdana", 8), new SolidBrush(Color.Red),
0, 0);
}
Then in the Window application, I call this method. But the text box just do
not want to display anything.
What is going on ?? What is the thing that I don't understand actually ?
Thanks
Regards