Re: [Gambas-user] make Label background from Database field

2009-10-17 Thread Vassilis A. Kanatas
Thank you Doriano, I tested the code that you proposed and got the following error: "Type mismatch: wanted Label, got PictureBox instead" at line: For each alabel in Form1.Children (inside SUB change_bgcolor(...)) I have put all 100 Labels on Form1 above from the picture that I placed on the Fo

[Gambas-user] How to sent a line line to a lp1 printer and form to lp0 printer directly.

2009-09-25 Thread Vassilis A. Kanatas
Yees!!! Gracia Doriano, Ευχαριστώ Demosthenes Merci Benoit It is done! Doriano had right I had to add the lp group to the user Vassilis. I also had to put DIM hPrinter AS File !!! After that the correct code for printing 1 line each time is the following: PUBLIC SUB