473,396 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Problem with using VB6 control in VB2005 (0/1)

I've got a print control written in VB6 that I use for easy printing
reports in VB2005. It works great except for one thing. When I display
the print options dialog, the VB6 OptionButton controls appear black
(see attached pictures).

Has anyone else encountered this problem or know how to fix it?
Mar 4 '07 #1
5 1491
Kevin,

I don't know the problem, but I assume that they did not make this for
nothing.

http://msdn2.microsoft.com/en-us/vbasic/aa701261.aspx

success

Cor

"Kevin" <ke****@cfl.rr.comschreef in bericht
news:83********************************@4ax.com...
I've got a print control written in VB6 that I use for easy printing
reports in VB2005. It works great except for one thing. When I display
the print options dialog, the VB6 OptionButton controls appear black
(see attached pictures).

Has anyone else encountered this problem or know how to fix it?

Mar 4 '07 #2
"Kevin" <ke****@cfl.rr.comschrieb:
I've got a print control written in VB6 that I use for easy printing
reports in VB2005. It works great except for one thing. When I display
the print options dialog, the VB6 OptionButton controls appear black
(see attached pictures).
There is a bug in VB6' forms which will cause the background of themed
option buttons to be drawn in black. You can either fix it by putting the
option button onto a picturebox or disable Windows XP Visual Styles for the
application.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Mar 4 '07 #3
My control does a whole lot more than that, but thanks for the reply
just the same.

On Sun, 4 Mar 2007 05:40:26 +0100, "Cor Ligthert [MVP]"
<no************@planet.nlwrote:
>Kevin,

I don't know the problem, but I assume that they did not make this for
nothing.

http://msdn2.microsoft.com/en-us/vbasic/aa701261.aspx

success

Cor

"Kevin" <ke****@cfl.rr.comschreef in bericht
news:83********************************@4ax.com.. .
>I've got a print control written in VB6 that I use for easy printing
reports in VB2005. It works great except for one thing. When I display
the print options dialog, the VB6 OptionButton controls appear black
(see attached pictures).

Has anyone else encountered this problem or know how to fix it?
Mar 4 '07 #4
Thanks! I'll give the picturebox option a try.
On Sun, 4 Mar 2007 13:30:23 +0100, "Herfried K. Wagner [MVP]"
<hi***************@gmx.atwrote:
>"Kevin" <ke****@cfl.rr.comschrieb:
>I've got a print control written in VB6 that I use for easy printing
reports in VB2005. It works great except for one thing. When I display
the print options dialog, the VB6 OptionButton controls appear black
(see attached pictures).

There is a bug in VB6' forms which will cause the background of themed
option buttons to be drawn in black. You can either fix it by putting the
option button onto a picturebox or disable Windows XP Visual Styles for the
application.
Mar 4 '07 #5
Works perfectly. Thanks.
On Sun, 4 Mar 2007 13:30:23 +0100, "Herfried K. Wagner [MVP]"
<hi***************@gmx.atwrote:
>"Kevin" <ke****@cfl.rr.comschrieb:
>I've got a print control written in VB6 that I use for easy printing
reports in VB2005. It works great except for one thing. When I display
the print options dialog, the VB6 OptionButton controls appear black
(see attached pictures).

There is a bug in VB6' forms which will cause the background of themed
option buttons to be drawn in black. You can either fix it by putting the
option button onto a picturebox or disable Windows XP Visual Styles for the
application.
Mar 5 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Galen Somerville | last post by:
My original program was targetted to Win98 when 800 x 600 was popular. Now converted to VB2005 pro and minimum will be 1024 x 768. I know about the autoresizing at run time but I want the form...
4
by: Galen Somerville | last post by:
I have a real timing problem. This involves getting data from a USB device via an ActiveX dll and drawing trace lines on the screen via a UserControl. The USB device sends six sets of pixel info...
4
by: gene kelley | last post by:
I had a VB6 app that used a third party ListView control to simply display various recordsets. The control had a VirtualMode which I used for this display. Now in VB2005, I want to do the same...
3
by: Jerry Spence1 | last post by:
I have the following code (copied from the web somewhere) which I am using to upload some files: Dim Filename As String = Dir(OutBox) Do Dim request As FtpWebRequest =...
2
by: johni58 | last post by:
I have several VB6 applications that I am rewriting in VB2005 Express. I used invisible control arrays to place labels over snapshots on a thumbnail screen. Choosing one of the thumbs would open the...
53
by: Hexman | last post by:
Hello All, I'd like your comments on the code below. The sub does exactly what I want it to do but I don't feel that it is solid as all. It seems like I'm using some VB6 code, .Net2003 code,...
27
by: Phil | last post by:
I thought it would be nice to display some animated GIFs on some of my forms. I put a PictureBox control on a form, and loaded my GIF file in. It animates, but not properly. It seems very jerky and...
4
by: David | last post by:
I'm using the AxSHDocVw.WebBrowser control to download data from a webpage at work (it's an internal page on my company's intranet). The page produces a runtime error after a while and the...
3
by: John Dann | last post by:
We've got a VB2005 program written some time back that we're trying to do some maintenance on still from within VB2005 but now running on a Vista Business PC (which I think may be relevant to the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.