Form printing problem in VB6

Posted on 2009-12-28
Last Modified: 2013-12-26
I have developed one VB6 application. In my application there is a form which back color is &H80000005& (nearer to white) and controls back color is also &H80000005&. I want to print this form using print method. The print method, print form correcly but some times it prints form with some controls having black back color. For more idea please review attached image. In image controls marked in red recteguler have same back color as other controls.
Is this problem is related to OS environment or depends on color pattern used by printer?

How can I short out this problem?
Question by:aplusexpert
    LVL 7

    Expert Comment

    Are the controls on the right checkboxes? I would do a thorough check of the properties,  I would also copy and paste from the left side, to the right side replacing what you have.
    LVL 14

    Accepted Solution

    If the controls on the right side are labels, set their background to transparent (I'm away from my VB6 PC right now, but I'm sure you'll find the property I'm speaking of...its default is Opaque. Set it to Transparent).
    LVL 7

    Author Comment

    Hi, Thanks for you response.
    We worked out on your suggestion. The controls appeared in image all are checkboxes having same backcolor and other properties. Sorry but I can't findout transparent property value for my checkboxes.

    LVL 44

    Assisted Solution

    "transparent" is not the property name, it is the value of the backstyle property

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
    Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
    Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
    Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now