May 8, 2017 at 10:07am UTC
I need help in making this code which was writen i VB, into C++ in windows Forms Application.
This is the following code:
private: System::Void printDocument1_PrintPage(System::Object^ sender, System::Drawing::Printing::PrintPageEventArgs^ e) {
e->Graphics->DrawString("Inköpslista", New Font("Ariel", 12, FontStyle->Regular, GraphicsUnit->Pixel), Brushes->Black, 25, 25);
e->Graphics->DrawString("___________", New Font("Ariel", 12, FontStyle->Regular, GraphicsUnit->Pixel), Brushes->Black, 25, 25);
e->Graphics->DrawString(listBox1->Items, New Font("Ariel", 12, FontStyle->Regular, GraphicsUnit->Pixel), Brushes->Black, 25, 25);
How do you change it to work in C++ windows forms application?
}
Last edited on May 8, 2017 at 11:52am UTC
May 8, 2017 at 1:58pm UTC
I tested your code but I cannot print all the items on after the other in a document-page?
What do I do to make this shoppinglist with its items work properly?!
Last edited on May 8, 2017 at 1:59pm UTC