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
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
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.
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?
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
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!
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:
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.
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:
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.
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?
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
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?
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.
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.
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)
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...
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?
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.
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]...