ClassicThunder
Programmer
Hey I'm pretty new to C++ and these forums but I've been playing around with the Window Form Apps making a small text editor.
Anyways I've gotten the text in my textbox to change color but I can't get the color to change when I print. Below is the line that controls the graphics in my print handlers.
I've been trying to find a way to make change this bit of code "Brushes::Black" so that I can just plug my global font color variable in.
Thanks for any help!
Anyways I've gotten the text in my textbox to change color but I can't get the color to change when I print. Below is the line that controls the graphics in my print handlers.
Code:
pe->Graphics->DrawString(line, TextFont, /*Need to change color*/ Brushes::Black, leftMargin, yPos, new StringFormat());
I've been trying to find a way to make change this bit of code "Brushes::Black" so that I can just plug my global font color variable in.
Thanks for any help!