How To Scan For Connections On A Certain Port

Dec 17, 2010

I'm using a TcpListener and TcpClient to search for a connection on a certain port,and display a message when a connection is made, but i do not know how to do this. My code so far:

Dim port As Integer = 81
Dim serverSocket As New TcpListener(port)
Dim clientSocket As TcpClient
Dim c As Integer
Dim ic As Integer

[Code]..

View 1 Replies


ADVERTISEMENT

Serial Port Barcode Scanner Delegate Sub Firing Twice Per Barcode Scan?

Aug 2, 2010

I am using Richard L. Grier's Enhanced Serial Port dll to read input from a serial port barcode scanner I notice that the datareceived event fires only once per barcode scan, but the delegate sub fires twice per barcode scan. Once for 1st half of Barcode , 2nd for 2nd part of barcode This makes it hard to capture the full barcode so it can be passed to routines in my vb.net 2008 windows application In Richard's example 'Test Enhanced Port' program he sends it to a textbox using .selectedtext and it works fine Richards Delegate code ......................

Public Delegate Sub DisplayData(ByVal Buffer As String)
'This delegate routine marshals receive data from the receive thread context DataReceived to the Windows Form STAThread context
Private Shared Sub Display(ByVal Buffer As String)

[code]....

I am trying to set a variable to the full barcode to pass to routines, instead of writing to a textbox but am not having any success

View 8 Replies

.Net SQLClient Connections And SQL Server - Active Connections Reflect Even Though All Closed?

Jul 19, 2011

Using VB.Net and SQL Server 2008 R2: I have recently had a database that using sp_who2 reflects a connection ".Net SqlClient Data Provider" is still active even though the .Net application has closed and disposed of all connections.

[Code]...

View 1 Replies

Read The Data From Barcode Weight Scales By Serial Port And TcpIp Port?

Nov 27, 2010

I'm mohammed from Oman ,I'm visual studio.net programmer How I can Read the Data From Barcode Weight scales By Serial port and TcpIp port

View 7 Replies

Get FullName From Available Serial Port (Com Port) From Device Manager In Windows Form With .net?

Jul 25, 2011

I have a Windows form.in windows form have a combo box that give me a list of available port serial with it code (Dim ports As String() =SerialPort.GetPortNames())for example( Com1,Com8,Com15,...).but I want to give me fullname of serial port in device manager for example in dvice manager is these (Comunication Port(COM1) - Printer Port(LPT1) And USB Serial Port(COM8)).how to Get it?

View 2 Replies

Detect The Address And Port Number Of The Parallel Port In Computer?

Jun 9, 2010

I would like to detect the Address and Port number of the Parallel Port in computer.

View 4 Replies

The Given Port Name Does Not Start With COM/com Or Does Not Resolve To A Valid Serial Port?

Aug 2, 2011

If I uninstall the COM1 and reboot, it works. If I shut down (power off) and restart, I get the message below. If I uninstall then click on Scan for Hardware Changes,The given port name does not start with COM/com or does not resolve to a valid serial port. Parameter name:portName

View 8 Replies

Communications :: .net MSComm Port USB 4 Port Relay?

Oct 20, 2011

I am trying to get my 4 port USB relay board to work in VB.net using the COM PORT. I found some code from a poster who has the 16 port USB relay version. When trying his code i can only get it to turn on relays 1-3 all at the same time. The product can be found here: USB 4 port relay

"01+//" - Relay 1 is switched ON
"01-//" - Relay 1 is switched OFF
"02+//" - Relay 2 is switched ON
"02-//" - Relay 2 is switched OFF

[code].....

So i am confused as to how to separate each relay out with that code above and just be able to turn on any number 1-4 relay on or off independently from each other!

View 1 Replies

How To Scan With WIA

Jan 11, 2010

How Do I scan with WIA using VB.NET?

View 4 Replies

MSComm Port USB 4 Port Relay

Oct 20, 2011

I am trying to get my 4 port USB relay board to work in VB.net using the COM PORT. I found some code from a poster who has the 16 port USB relay version. When trying his code i can only get it to turn on relays 1-3 all at the same time. The product can be found here: USB 4 port relay I was following what the guy in the post was doing to turn his on:

[Code]...

View 6 Replies

Scan A Certain Area Of A PDF Or Tif?

Mar 6, 2012

I'm looking for a way to scan a certain area of a PDF or Tif,

and extract the OCR regonizied text which will help me rename these documents I have.

What tools or libaries can I use in .NET to make a quick short program to rename

TIF or PDF files into their appropriate name coming from a portion of text that is on each file.

View 2 Replies

Scan For Hardware Changes?

Jan 31, 2010

i'm trying to "Scan for hardware changes" programatically and all I can find so far is: [URL]

I'm not sure how to use it in a vb.net app though. this is for Windows 7 functionality and i'm not sure how to set up the API calls

there's this: [URL] but it doesn't tell you how to implement it

View 8 Replies

Scan Through Application?

Dec 15, 2011

I have a requirement from my vendor to scan an image through my application. Then this image should appear in the picture box given on the same page. Also I want to read it as bit stream.

View 3 Replies

Trying To Scan Images ?

Jan 4, 2010

I am trying to scan images in VB.NET. I searched this site for almost an hour and found questions, but little in the way of answers, but some redirection which did not resolve the issue.

I downloaded the example here [URL] which has 7 projects doing a whole bunch of things. I do not have the scanner attached to my PC. Nor can I run any of these examples which do way more than I am trying to do. Then I went here [URL], found the VB version on planetsourcecode, but it will not run. I tried to duplicate what it does, but I couldn't get either of these line to be recognized:

Imports TwainGui.vb.TwainLib
Imports TwainGUI.vb.GdiPlusLib

I understand that the differences between .NET and VB are huge, but what I fail to understand is why no one has been able to post an example of how to scan? My company is not willing to purchase any 3rd party tools and my boss believes it can be done through the api, which some posts seem to imply but fail to show how.

View 24 Replies

Communications :: Serial Port - Run Program, "Access To The Port 'COM1' Is Denied"?

Oct 15, 2008

Im having problem with the Serial Port. When i run my program, "Access to the port 'COM1' is denied". What does that mean? Im not sure whats happening because theres no error in my code. Someone suggest me to use 'COM2'. Which is also the same result. I have a microcontroller, programmed and run it. And i need to capture the data onto my vb, which is on a multiline textbox. How to i do that?Just to double check my code?

[code]...

View 1 Replies

Add A Progressbar To The Scan Button?

Mar 7, 2012

is there a way to add a progressbar to the scan button?i watched tons of videos and i cant figure it out

Using FB As New FolderBrowserDialog
If FB.ShowDialog = Windows.Forms.DialogResult.OK Then
For Each Ext As String In ListBox1.Items

[Code].....

View 1 Replies

Code To Scan Drive?

Jul 14, 2009

I want to write code in vb.net to scan drive.

View 2 Replies

Pixel Scan In AxShockwaveFlash1?

Mar 9, 2009

Using this Pixels Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

[Code]...

This will scan the whole screen for my specified colors. How can I make it scan the AxShockwaveFlash only?

View 8 Replies

Scan Directory For Files?

Nov 23, 2011

I am working on a small music player software that runs from the thumbdrive and does not need to be installed. The problem is that when ever i scan the directory for files, it will not scan unless I am running it on a computer that has previously compiled the code. Regardless of whether visual studio is installed or not. Below is the rountine for the scan that is not working. It seems to stop at the 'ForEach ti in hi.getfiles'.

UserInput.Close()
Dim Found As String = ""
Dim C As String = My.Computer.FileSystem.SpecialDirectories.MyMusic
Dim Directory As String = My.Computer.FileSystem.CurrentDirectory

[code]....

View 13 Replies

Scan Documents By Using VB Application?

Nov 29, 2010

I need to add scan option in VB application which i am developing.

How can i, Can anybody giveme detail code for this.

View 3 Replies

Scan Files For Viruses?

Jan 3, 2011

My program allows users to upload some files so other users can download it. Is there a way that I can scan the files for virus upon upload/download within the program? How can I go about this?

EDIT: Actually is there a way for the program to use the installed Virus program located on the users computer?

View 2 Replies

Scan The Document Through Our Web Application?

Aug 10, 2009

Now i'm working in an one softwarec concern.. now my TL gave one new concepy.., ie.., scan the document through our web application only. But i don't have any idea about that scannre.

View 1 Replies

Scan Whole C: Drive Using Getdirectory()?

Jan 30, 2011

i want to scan my whole C: drive using getdirectory(). but i got access denied when i reach some system file. how can i skip all that file to let my code run well.

View 1 Replies

Scan Windows For Pixel?

Jan 23, 2012

I have this idea in my mind, that I can activate a window, and then scan that window for a pixel at certain coordinates.

Is it possible to do this in vb.net?

Something like:

If.GetPixel(X,Y,COLOR,) = True Then
MsgBox (Pixel Found)
Else
Loop Until Error = False

I know that won't work, but that's my idea.

View 3 Replies

VS 2008 Scan A Picture Box?

Jun 11, 2012

how I can scan a image I loaded in my picture box for a certain pixel (say red)

View 4 Replies

Antivirus Scan Speed Optimization?

Oct 30, 2009

I have been developing an antivirus using vb.net. The virus scanner works fine but I was thinking of ways to optimize the scanning speed (because large files take forever)

View 3 Replies

Can Build Application To Scan Without EZTwain

Apr 24, 2012

Can I build software to scan document or photo without EZTwain library on VB.NET ? because Twain library make scan in another window also I can't put multiple choice for the input format...

View 1 Replies

Image Processing - Scan Pictures

Aug 15, 2009

imagine i have an image of an whole family, but then i crop just one face, to use, now i have the photo of the whole family, and the photo of a face, which is part of the big photo. what i want is an app that can scan the big image, looking for the small image, and then return if it found it, and the rectangle where the small pictures, fits, in the big picture. any ideas?

View 3 Replies

Scan Computer For Certain File Extensions?

Mar 19, 2009

Basically, I want to be able to say: here, I want to be able to chose my drive (in this case C:) and i want to be able to get the following extentions: .txt. Also i want it to list ALL .txt files in the C drive in either a textbox or listbox.

View 1 Replies

Scan File In Directory And Sub-directories?

Feb 19, 2011

I want to be able to scan a folder and its sub directories for all the files that exist in it. the results are then fed into a list box or any similar control[code]...

View 2 Replies







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