I don't have my web cam right now but I have had the same problem. I can't remember whether I was able to solve it or not. Do something for me and let me know what happens. Start you app and allow it to take snap shots (do not minimize it). Now while you are looking at the images in picWebCam manually move your Form away and see if the images move with your Form or do they stay at the same position.
Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.
You appear to be a noob if you can't figure out the problem - I had problems very similar to yours and now that I found my old application I see that I got it to work but I had to dig into the code and search the net until I finally got it solved.
If you are going to call names to those who try to help you then good luck with your problem.
Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.
I am sorry i didn't call you noob. Actually i got angry coz my whole project is pending for this problem. and i wrote my problem in this forum today morning with the hope that when evening i come home i might find some solutions but when i check the forum there was no reply and only you replyed but i didn't get what you said. so i thought that there is not so many expert in this forum.
Please if you have a solution then give me coz my project is standing still because of it.
@ufo: You've been around the Forum for nearly a year so you should have caught on the the fact that there are many experts here and also understand the etiquette of the Forums in general.
All contributors help when they have the time / inclination / knowledge to do so.
One factor that affects whether I personally look at / respond to a Thread is the Title. That way I can see whether the problem falls within my knowledge / experience. Yours just looks like a 'challenge' designed to illicit speedy responses rather than an informative summary of the problem; I tend to ignore such Threads.
I also sometimes look at other posts by the OP in order to guage their level of knowledge and experience which would affect how I might respond (BTW looking at some of yours they seem to fall within the 'dodgy' category and whilst not necessarily against the Rules may not be within the 'spirit' of the Forums (you may like to take a look at the Rules here: http://www.vbforums.com/misc.php?do=showrules)
Your problem, I suspect, originates from a lack of design. I guess you had an idea, started to code and then got stuck on something you hadn't thought of. Had you, in the early stages, thought of exactly what you wanted to do, you may have realised that you didn't know how to do it and performed some research; that way you wouldn't have ended up being 'held up' at the latter stages of implementation leading to desperate calls for help.
Obviously, whether JM can / will help is up to them.
Two days from the post and still nobody provided any solution!
Every body comes and teach me some manners and goes without providing any help.
My whole project is standing still
OK, here is a project I worked on last year but haven't done anything to it since then. I see where I made a note at the top of the Form about correcting the minimized problem. I either misplaced my cam or I loaned it out to someone but I don't have one now so I can't test this application to see if it really works so I can't guarantee anything. I have another similar project somewhere in my archives that I haven't been able to find and it too had same problem. I remember with one of the two, not sure which one, that if I moved the Form manually (mouse on titlebar) that the Form would move around the screen but the image from the cam didn't move; it stayed in it's original position which later I discovered that when this occurs that the image from the cam is not really pasted into the picturebox but is captured on the window screen and that you could not copy it if the application was minized or another object was on top of the cam application. I seem to think it was the other program and not the one in the zip file but it has been quite awhile so I really don't know for sure. All you can do it to try it and see what happens.
Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.
OK, here is a project I worked on last year but haven't done anything to it since then. I see where I made a note at the top of the Form about correcting the minimized problem. I either misplaced my cam or I loaned it out to someone but I don't have one now so I can't test this application to see if it really works so I can't guarantee anything. I have another similar project somewhere in my archives that I haven't been able to find and it too had same problem. I remember with one of the two, not sure which one, that if I moved the Form manually (mouse on titlebar) that the Form would move around the screen but the image from the cam didn't move; it stayed in it's original position which later I discovered that when this occurs that the image from the cam is not really pasted into the picturebox but is captured on the window screen and that you could not copy it if the application was minized or another object was on top of the cam application. I seem to think it was the other program and not the one in the zip file but it has been quite awhile so I really don't know for sure. All you can do it to try it and see what happens.
Not working in my computer. the saved pictures are blank??????
Everybody knows how to capture the webcam in a picturebox and then save a preview in a bmp file.
No everyone does not know how to do this, In fact most programmers never bother much with BMPs or Webcams
Minimize or overlap the capture window and then try to capture a snapshoot!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
So why not just make sure the picture is in the foreground when you execute the capture code?
Sounds simple enough if you already know how to capture the image.
I tried my best but couldn't find a solution. Any one who think he knows vb6 better can test his skills and solve this annoying problem?
Really has nothing to do with how well someone does or does not know VB6 but rather how much they have worked with image capture and if they have ever tried to design an app to capture an image from a web cam then do a screen shot of a window that is not totally visible.
To me it sounds like your design is wrong to start with and would be the reason you have ran into an issue.
If I were to do such a project I would start by using VB.Net.
It may have something to do with SaveJPG function. There is a thread around here about 2 - 3 weeks ago that someone posted, not sure, but I think it was found out that SaveJPG does not work on all versions of Windows and/or VB. I'm 99.9% sure that application worked on my PC (until I find my cam I can't test it for proof). I'm using XP-SP2 and VB6.
Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.
I just had a quick look on my pc yesturday jms project webcam worked (when click command record twice) but my pictures were blank also i saw it was saving as date.jpg & Chr(0) i am not on pc or else i would test but you think that chr is making file display blank because ot does not save .jpg but saves .jpg & chr(0)
I'm 99.9% sure that application worked on my PC (until I find my cam I can't test it for proof). I'm using XP-SP2 and VB6.
You don't have to have a webcam to make or test such projects. I also don't have a webcam( i have one in my brother's pc) but i use virtual webcam which works great. Here is the link VirtualWebCam
PS: I don't need to save the image in jpg. BMP is ok for me.
one trick to this is momentarily bringing the window to the front, take the catcure and hide / send it to the back. this would not be noticeable as it would happen within seconds. i onces face a similar problem when doing screen capture
Programming is all about good logic. Spend more time here
You don't have to have a webcam to make or test such projects. I also don't have a webcam( i have one in my brother's pc) but i use virtual webcam which works great. Here is the link VirtualWebCam
PS: I don't need to save the image in jpg. BMP is ok for me.
OK, I downloaded it and it's installed. Now what?
Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.
You have a webcam now
From objects add a moving flag so you can now that camera is working or not. now you check your vb code it will show the virtual camera working with a moving flag.
When I run the VB app the ManyCam shows in the picturebox but I don't see where it is doing anything. All the pictures are blank. There is no motion at all just a black screen.
Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.
When I run the VB app the ManyCam shows in the picturebox but I don't see where it is doing anything. All the pictures are blank. There is no motion at all just a black screen.
In ManyCam Software add some motion pictures to your virtual camera, like in Objects there are some flags with motion you can add. So you always knows the camers is on