Originally posted by faisalkm what about the color problem?. When I set the background or foreground color to black, I can't see the text.
The foreground color is the text color, so if you have the background color = black then try setting the foreground color (text color) = white or any other color other than black.
Realistically, setting the foreground and background colours, and checking for same isn't a problem of the control - it really relies on the user to fix that one. You can set a label foreground and background colour the same.
The MouseEnter and MouseExit code was a little off (if you moved the mouse into the control while it was updating the display the updating would be frozen) so here is (once again) hopefully the final update.
I found a bug in your control. I added it to a new project, and tried to make it go from top to bottom, bottom to top, and right to left. It always goes back to left to right. Other than that, I think this is an excellent control. Keep up the good work.
I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
Posts
1,457
Nice control!
Your control is very cool, but the idea is already used:
I got bored and added some new features to this thing and also wrapped up everything in a setup file. Would somebody please test the setup file and everything else and let me know if everything works. Upon running the setup file the ocx is installed in the Win/System folder (jmprgrs.ocx) and a sample project is installed to C:\PBTest, run the project in that folder to test the project. One more thing I also left the VB5 runtime files out of the setup file so you must already have them in order to test and use the control. Thanks in advance!
For some reason unbeknownst to me everytime you try to click on link to a file geocities returns a 403 Forbidden error. So if anybody has tried to download the file you have to right click on it and select Save Target As in order to download it.
Here is the source, now I should really get some good feedback. Keep in mind that when I first started this I wasn't planning on releasing the source so it is only commented as much as I needed it to be.
DaoK: Did you have any problems with the installation, and what is your Operating System and Version of VB?
I downloaded and it installed perfectly on my machine. It has Win98SE with VB 6.0 Professional. The only problem I had was when I tried to include it in a test project of my own, I got confused because I had an older version of it, so there were two Jon Mooty's Advanced Progress Bars. I had to dig through the system folder and remove the old one. Other than that, it installed flawlessly, and it works like a champ. Good job.