I am working in a machine vision project.In my project i am using camera for print inspection.
In my application i am using one picturebox for displaying a image on screen and two buttons.In two buttons one button for live display and another for fullscreen.With the livedisplay button I am displaying image in picturebox in a while loop. in the same time while process in while loop i have to press fullscreen button. but I can’t press fullscreen button because while the loop is running it doesn’t allow me to push any of the buttons of the form. (The loop is a while) Why is this happening? How can I click this button while the loop is running?
I am working in a machine vision project.In my project i am using camera
Share
One solution can be rather than running a while loop; use a timer with some interval and on timer tick update the image in picture box. You can start the timer when user clicks on Liveupdate button. You can keep the interval very low(e.g. 100ms) so that your updates will give feeling of being LIVE. This will give some interval in between two updates when application can take input for other user action like other button click.