VS 2008 Looping Through All Webcam Sources

Jul 2, 2010

I'm using this code to get the preview window

Dim iHeight As Integer = picCapture.Height
Dim iWidth As Integer = picCapture.Width
'
' Open Preview window in picturebox

[Code]....

As you can see, I have 2 sources. Would it be possible to not show the preview window, but instead loop through all the sources?

That would be in a timer, so like each 10 seconds a pictures is made from each source.

View 1 Replies


ADVERTISEMENT

ComboBox - Looping Through Binding Sources

Dec 3, 2009

I can loop through comboboxes likes:
for i=0 to 5
directcast(me.controls ("combobox" & i.tostring), combobox).items.add ("Hello")
next

However, if I do the same thing with binding sources:
for i=0 to 5
directcast(me.controls ("bindingsource" & i.tostring), bindingsource).movenext()
next

It errors me saying that you can't cast binding source as a control or something (they aren't of the same type). How do I loop through binding sources?

View 13 Replies

Taking Pictures With Webcam Via Webcam Button?

Mar 28, 2012

I have a logitech webcam that I use to take pictures of customers to submit to a server/database. Utilizing AVICAP32.DLL calls, I was able to modify my VB.NET program to take these pictures via a button in my program.

My question is, it would me more convenient to my intended users to click the webcam button, instead of clicking on the button in my program.

Is this possible to do in VB.NET? and how can I do this?

If this is not possible to do with my logitech webcam than is there a Microsoft Webcam that can do this?

View 1 Replies

VS 2008 Chosing The Webcam If There Is More Than One?

Nov 23, 2009

I am developing a webcam application using vb.net. i want to display the number of webcam that is connect to the PC into a form and the user can be able to select from the list...let me how i can do this? i manage to steam the webcam video into the form..

View 6 Replies

VS 2008 - Imagebox And Webcam Capture ?

Sep 15, 2010

After a long while I started a project in VB.Net. I am making a security cam application for my own room. What I have done so far is capturing image from webcam (15 fps) to a imagebox and copying a still image from that imagebox to another in an intervall I have decided. Afterwards my code saves the image with a date and time as jpg. The code for capturing image I have found in this forum (iCam). My problem is (by the way I am an amateur programmer ) that the first imagebox (for realtime image capture) is not being showed (I dont want to see it). But if it is not active then all still images (saved as jpg) are all black. I think it is a drawing issue. I think imagebox is not being drawn (because it is not visible (actually the form is not visible)) and that is why still images are black. But I really don't know how to fix it? The class for capturing still images is very useful but only works with an imagebox.

(I really tried to understand the code. Especially the function, which copies a still image from 15 fps webcam output to a imagebox (which is used to save image as jpg file). But there are objects like: IntPtr, Hdc (getHdc, releaseHdc) and BitBlt. I really don't know anything about those objects.)

Code of iCam:

Option Explicit On
Option Strict On

Public Class iCam
#Region "Api/constants"

[CODE]...

I get realtime images with: iCam.initcam(me.picturebox1.handle.int32) and copy with: picturebox2.image= iCam.copyimage(picturebox1,New RectangleF(0, 0, Me.picturebox1.Width, Me.picturebox1.Height))

View 1 Replies

VS 2008 Capture Image Using Webcam?

Jun 21, 2010

I'm developing an application and it needs a facility to take photo of the customer using the webcam.

View 6 Replies

VS 2008 How To Check If Webcam Is Installed

Aug 23, 2009

i want to make a webcam capture program but i want a msgbox to display if webcam is not found.

View 1 Replies

VS 2008 Make A Webcam Input?

Jul 14, 2010

Is it posseble to make a webcam input?I dont have a webcam, but i have some orc and simular programs that requires a webcam (I cant change the programs to take another input)I was thinking on that i maby culd make a "fake" webcam input that was playing a movie file.

View 1 Replies

VS 2008 Stream Video From Webcam?

Apr 4, 2009

I am interested in streaming video from a webcam on one PC to another PC. Could this be done without streaming to a server. Could this be achieved by streaming using P2P?

View 4 Replies

VS 2008 Webcam With No User Input?

Dec 28, 2009

ive been steaming on this one for quite some time. Ive got a program that relies on remote control of the computer, and i need to be able to take a webcam image without the user having to press buttons etc. So far, ive gotten to the point where i can find my webcam, and with the help of a button, start a preview, then take the picture and save it as a jpeg.Problem is, when you press the button to start the preview, another dialog box shows up (not related to my code) prompting me to select a video source..Im confused kus it seems as though the list i find on form_load does nothing at all if when i press the button it prompts me with the same list.Well you can infer from this that i cannot use the btnstart_click(sender, e) on form_load because it opens a dialog that wont close until i press ok, and i already tried to sendkeys enter, it didnt work.anyone have any idea how i can either alter my code, or make new code to take a web cam image, and save it with no user input?

[code]...

View 2 Replies

WebCam Microhone Control VB 2008

Nov 24, 2011

Work now since some time on the task to control the microphone of a USB connected Webcam using Vb2008. The required function is simply to switch it on (full level)and switch it off (low level). I used the corresponding API's mixerline, mixerlineControl, mixerlineControlDetails etc but I could not get the microphone reacting somehow. I am able to handle all my Video usable also available code from the forums, but I could not find an applicable code I could modify for this microphone application.

View 6 Replies

VS 2008 Code For Capture Picture From Usb Webcam?

Dec 16, 2010

showing script for make a snapshot from an usb webcam?

View 4 Replies

VS 2008 Webcam Image Capture With Directshow?

May 16, 2011

I need to capture a picture from webcam for a project... But there seems to be no easy code available... Also am not able to find any working code for it... saw a codeproject code, but couldnt get it to work..

View 5 Replies

Webcam Interfacing Using Express Edition 2008?

Jan 14, 2010

i m working on a project which involves webcam interfacing .i need it interface a webcam using visual basic express edition 2008, collect the images and use it for further processing..

View 6 Replies

VS 2008 Looping In Datagridview?

Oct 15, 2011

Mine is a windows app. containing forms named BOM nd BOMSelected..There is datagridview in BOM which contains checkbox column.. When the user selects checkbox, the selected rows should be seen in the datagridview of other form, SelectedBom..

[Code]...

View 39 Replies

VS 2008 Looping Through An Object?

Dec 15, 2009

I have been using the following code for quite some time to list the property values of an object:

Dim instance As New Configuration
Dim propValue As Object
For Each pi As System.Reflection.PropertyInfo In instance.GetType.GetProperties()

[Code].....

Works great but we've gotten alot of properties at this point and could use them in alphabetical order.

View 3 Replies

VS 2008 Looping Through Checkboxes

Apr 20, 2009

looping through check boxes.. checkbox1, checkbox2, checkbox3...... Error in the code ocheck = "CheckBox" & Str(t) as "Run time errors may occur when converting 'string' to 'Microsoft.office.interop.word.checkbox'." Dim No_Checkboxes As Integer, ocheck As CheckBox

[Code]...

View 7 Replies

VS 2008 Looping With Textboxs

Sep 8, 2009

I would like to know how to loop with textboxs. For example. I would set the text to "Hello" And the loop will send this...

-"Hello1"
-"Hello2"
-"Hello3"

I have tried many looping techniques but they all used listboxs and even modifying them I could not get it to work correctly.

View 3 Replies

VS 2008 - Looping Structures For Class

Dec 14, 2009

I have this Visual Basic class I'm taking online. At this point in the section all I'm supposed to know about are Do, Do While, Do Until, Exit Do, Continue Do, and For Next loops. So try not to go off in a fancy super-coder direction. And everything is (preferably) made through Console Applications on VBE 2008

Problem 1:
Write a program that evaluates the factorials of the integers from 1 to 10 using an appropriate data type. (factorials are... factorial of 1 is 1, factorial of 5 is 120, or 1*2*3*4*5=120)

Problem 2:
Make a diamond - 1 asterisk at the top, 9 asterisks at it's widest - using only nested For...Next statements to print the asterisks AND spaces, minimizing use of output statements.

View 4 Replies

VS 2008 DataReader Error In Looping

Mar 29, 2009

[code]I am facing difficulty in coding when intRow loop for the 2nd round. Error message "There is already an open DataReader associated with this Command which must be closed " appear in the above red highlight vb.net code.

View 6 Replies

VS 2008 Looping For Files In Directory?

Jul 12, 2010

I have some code that should update my listbox with files in a directory i have this code put in a timer:

[Code]...

View 10 Replies

VS 2008 Looping Sending Loopy?

Apr 21, 2009

Have this Uni question; which after 20 minutes of frustration I'm sending it to the brain trust (you might be interested).Write a program that, when a button is pressed, checks the contents of a textbox. If the textbox does not contain a number, the program informs the user of this and does nothing more. Once a number has been entered, the program will do something trivial such as displaying double the number in a message box.Notice that this can be done without explicit looping,even though the user might repeatedly enter non-numbers. Because it is an event-driven program, each iteration is started when the user clicks the button. The looping is driven by the user, not by a looping statement.

View 5 Replies

VS 2008 Looping Through All Rows In A Datagrid?

Jan 11, 2011

Im trying to loop through all rows in a datagrid and enter a calculation in the field in the next column (first column is already populated with appliance names). The code below works but only on the first row. Can someone be good enough to point out my error? For Each row As DataGridViewRow In DataGridView1.Rows

If DataGridView1.Rows(s).Cells(0).Value = "" Then
DataGridView1.Rows(s).Cells(1).Value = "0"
Else
DataGridView1.Rows(s).Cells(1).Value = dtDLopt.Compute("SUM(Measurement)", "Appliance = '" & DataGridView1.Rows(s).Cells(0).Value & "'")
End If
Next row

View 3 Replies

VS 2008 Looping Through Controls On Win Form?

Feb 11, 2012

i have a winform and i have about 30 labels and 30 picture boxes on it. What i would like to do is fill each label and picturebox with a value and image from a backend database. I could have easily done this in vb6 using control struture , for eg.

for x = 1 to 30
picturebox(x).image = value from database
label(x).caption = value from database

[code]....

View 3 Replies

VS 2008 / Looping Through Textboxes, Outputting To String ?

Feb 21, 2010

I have a number of textboxes in my program, and a few other controls with text in them.I want to loop through a select number of textboxes (1-10 in this case, for testing), and output their combined data into a string.Here is what I created, with the help of someone on this forum earlier.[code].....

View 4 Replies

VS 2008 : Looping Regex Match Collection?

Jan 3, 2010

I have my regex setup, which works prefectly:

vb.net
Dim testStr As String = "<option value=""18621335"">graham23s</option>"
Dim rx As New Regex("<option value=""(d+)"">(.+?)</option>")

[code]....

When i put it into my own application i have done:

vb.net
Dim stringSource As New Regex("<optionvalue=""(d+)"">(.+?)</option>", RegexOptions.IgnoreCase Or RegexOptions.Singleline)
Dim stringMatches As MatchCollection = stringSource.Matches(stringCle

[code]....

what i am having trouble with is getting the values while in the foreach loop.

View 3 Replies

VS 2008 : Looping Through All Directory's On The Hard Drive?

Oct 6, 2010

i have this piece of

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim strFileSize As String = ""
Dim di As New IO.DirectoryInfo("C:")

[code]....

and it works just fine. However, saying that, i need to find a way to loop through ALL the directory's on the "c" drive and not just the main folder.

View 5 Replies

VS 2008 Looping Through The Contents Of A ListView Control

Jul 3, 2011

I'd like to go through all the items of a ListView control in order to ... well execute some code. I suppose I have to use the "For i=1 to ..." statement , but I am not familiar at all with this control. As I said , I'd like to check all of the items (the elements in the first column) and for each of them that has "Yes" on the third column , I would like to run the rest of the code .

View 9 Replies

VS 2008 See If Checkboc Is Checked When Looping Through Controls?

Jul 29, 2010

I am looping through all controls on my form and for all checkboxes, I want to see if they are checked. I cannot get the Checked property when doing this. Am I doing something wrong?

[code]...

View 2 Replies

VS 2008 Set Looping And Progress Bars And Hotkeys?

Sep 12, 2009

Ive been trying to work with looping code and get messeges like this.

[Code]...

But that is not important this moment... How would I set a code too use the progress bar? So As it loops at a certain rate {Lets say 1000 (1 sec)} It would show the progress. Currently using it to 1 - 50. (Note: The rate is not important as I know how to set that) EDITEDITEDIT: Thanks for the info so far, But regarding my other thread about hotkeys that I marked "Resolved"

[Code]...

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved