Click here to Skip to main content
15,897,704 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionVB.NET Pin
monika_vasvani12-May-08 23:43
monika_vasvani12-May-08 23:43 
AnswerRe: VB.NET Pin
Christian Graus13-May-08 0:03
protectorChristian Graus13-May-08 0:03 
AnswerRe: VB.NET Pin
jhoga13-May-08 3:07
jhoga13-May-08 3:07 
QuestionVBA Help, just a quicky [modified] Pin
harveyhanson12-May-08 22:50
harveyhanson12-May-08 22:50 
AnswerRe: VBA Help, just a quicky Pin
ChandraRam13-May-08 2:46
ChandraRam13-May-08 2:46 
QuestionEvents handling Pin
Chaitanya kumar CVSS12-May-08 22:11
Chaitanya kumar CVSS12-May-08 22:11 
AnswerRe: Events handling Pin
Christian Graus12-May-08 22:27
protectorChristian Graus12-May-08 22:27 
Questionwebcam motion detector (frame comparison help) Pin
mark duatin12-May-08 19:40
mark duatin12-May-08 19:40 
i have managed to create a program which connects to a cam and also copies a frame to another picture box. the problem now is how to compare the two picturebox QUICKLY...... in my code i had included a formula that was used in vb6. but now cannot be used cause of the picturebox.poin(x,y) was removed in vb.net which makes it harder to convert...

this was in vb 6.0
Private Function Different(ByVal a As Long, ByVal b As Long) As Boolean<br />
'Checks different of two colors<br />
ar = a Mod 256: a = a \ 256<br />
ag = a Mod 256: a = a \ 256<br />
ab = a Mod 256: a = a \ 256<br />
<br />
br = b Mod 256: b = b \ 256<br />
bg = b Mod 256: b = b \ 256<br />
bb = b Mod 256: b = b \ 256<br />
sense = 255 - Text1.Text * 5<br />
<br />
Different = (Sqr((ar - br) * (ar - br) + (ag - bg) * (ag - bg) + (ab - bb) * (ab - bb)) > sense) 'formula for counting different<br />
End Function<br />
<br />
Private Sub Timer1_Timer()<br />
'getting picture from camera<br />
SendMessage mCapHwnd, GET_FRAME, 0, 0<br />
SendMessage mCapHwnd, COPY, 0, 0<br />
Picture1.Picture = Clipboard.GetData: Clipboard.Clear<br />
<br />
<br />
stepp = 3 'Grid dense<br />
<br />
Dim qan, qann As Long<br />
qan = 0<br />
qann = 0<br />
<br />
For i = 1 To Picture1.Width / Screen.TwipsPerPixelX Step stepp<br />
For j = 1 To Picture1.Height / Screen.TwipsPerPixelY Step stepp<br />
<br />
If Different(Picture1.Point(i * stepp * Screen.TwipsPerPixelX, j * stepp * Screen.TwipsPerPixelY), Picture2.Point(Screen.TwipsPerPixelX * i * stepp, j * stepp * Screen.TwipsPerPixelY)) Then<br />
Picture1.Circle (i * stepp * Screen.TwipsPerPixelX, Screen.TwipsPerPixelY * j * stepp), 1, RGB(255, 0, 0)<br />
qann = qann + 1<br />
End If<br />
<br />
Next<br />
Next<br />
Label1.Caption = Int(qann * 100 / 910) & "%" 'Counting motion in percents<br />
ProgressBar1.Value = Int(qann * 100 / 910)<br />
End Sub<br />
<br />
i need to convert this in vb.net



here is the link of my vb.net code
http://rapidshare.com/files/114521447/EyetxtV1.rar.html[^]

please anyone please help me
AnswerRe: webcam motion detector (frame comparison help) Pin
Christian Graus12-May-08 23:13
protectorChristian Graus12-May-08 23:13 
GeneralRe: webcam motion detector (frame comparison help) Pin
mark duatin13-May-08 20:28
mark duatin13-May-08 20:28 
QuestionHow can i connect vb.net with MS acess database? Pin
VeeKeyBee12-May-08 18:15
VeeKeyBee12-May-08 18:15 
AnswerRe: How can i connect vb.net with MS acess database? Pin
Christian Graus12-May-08 19:06
protectorChristian Graus12-May-08 19:06 
AnswerRe: How can i connect vb.net with MS acess database? Pin
Shawinder Sekhon12-May-08 19:06
Shawinder Sekhon12-May-08 19:06 
AnswerRe: How can i connect vb.net with MS acess database? Pin
Ashfield12-May-08 21:39
Ashfield12-May-08 21:39 
Questionsuggestion for avoid freeze in my application Pin
shee_dee8612-May-08 17:02
shee_dee8612-May-08 17:02 
AnswerRe: suggestion for avoid freeze in my application Pin
Christian Graus12-May-08 17:28
protectorChristian Graus12-May-08 17:28 
QuestionFix for slow VB6 object disposal Pin
supercat912-May-08 16:36
supercat912-May-08 16:36 
Questionsending email Pin
asha_s12-May-08 8:56
asha_s12-May-08 8:56 
AnswerRe: sending email Pin
Tim Carmichael12-May-08 9:11
Tim Carmichael12-May-08 9:11 
AnswerRe: sending email Pin
The ANZAC12-May-08 13:14
The ANZAC12-May-08 13:14 
QuestionScanning a web page Pin
David Loring12-May-08 3:04
David Loring12-May-08 3:04 
AnswerRe: Scanning a web page Pin
ScottM112-May-08 3:34
ScottM112-May-08 3:34 
AnswerRe: Scanning a web page Pin
KaptinKrunch12-May-08 10:39
KaptinKrunch12-May-08 10:39 
Questionhow to communicate a control at design time and compile time with compiler in vb.net Pin
Solanki Rajat12-May-08 0:38
Solanki Rajat12-May-08 0:38 
AnswerRe: how to communicate a control at design time and compile time with compiler in vb.net Pin
Dave Kreskowiak12-May-08 5:17
mveDave Kreskowiak12-May-08 5:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.