Capture Some Text Data Flowing In On COM1?

Nov 8, 2010

Just trying to capture some text data flowing in on COM1. The port opens but the data does not flow in. I have a textbox on the form and a SerialPort in the tray.

Public Class Form1
Private Sub IncomingData(ByVal sender As System.Object, ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) Handles SerialPort1.DataReceived

[code].....

View 4 Replies


ADVERTISEMENT

Crystal Report Flowing Text Around Image

Jun 20, 2011

the title says it all, i want to have() this layout in crystal reports: how to do this?

View 2 Replies

.net, Read 8 Bit Data From Serial Com1 Port?

Jun 25, 2010

I am trying to read data from serial com1 port. Now, I am not sure how to send. I found so many method to send but that are not so good and I cann't read any data. I am using VB.net 2005. Which is the best way and how can I read and send?

View 1 Replies

Read All Data From Serial Port (Com1 / RS232)

Nov 2, 2009

I am trying to make a program in vb 2005 to real all the data from a device connected on Serial Port (Com 1).i did this: [code]and this is how i want to reciveit.when i lounch the program i only receive first line "410001+00000001" and after that i get on the device rs232 error.

View 6 Replies

Send Some Data To Printer Through COM1, Label Printer's Ready Signal Led Will Be ON/OFF But It Does Not Print Anything Or Any Label?

Feb 8, 2007

I have a label printer (Argox 1000-x) and i want to print some datas on it. And this printer is connected to my computer via the COM1 port. I can open/write COM1. And when i send some data to printer through COM1, Label Printer's Ready Signal Led will be ON/OFF. But it does not print anything or any label..

View 5 Replies

Send Code Through COM1?

Apr 20, 2011

I try to write a application to make the communicate noise meter with PC, and following are my code[code]...

Why it does not work at all, and a sentence kept pop out in immediate window. "A first chance exception of type 'System.ArgumentOutOfRangeException' occurred in System.Windows.Forms.dllyvonne

View 7 Replies

VS 2008 : Using COM1 Over The Network?

Mar 26, 2012

I have written in VB.NET a POS application.I'm using one thermal printer connected to COM1,I create a bat file wit this command :

copy mydata.txt COM1:

I run this bat and printer is working fine.I've installed my application on a second computer in the network and I need to print from there to the same printer,but is located on another computer.So how I use COM1 over the network,I've seen that for LPT port can be used
NET USE command.

View 3 Replies

Writing String Value To Com1?

Nov 4, 2010

I am trying the following code using vb.net and have managed to capture the running application values via portmon... look likes below and connects with success:

QUESTION: What is the HyperTerminal Equivalent string value for this Keystroke Sequence: Ctrl-A Shift-V Ctrl-B 02 1234512345 Ctrl-C Ctrl-M The above works great using a windows HyperTerminal window and writes data to the device.

[Code]...

View 3 Replies

Generate Error Message When COM1 Is In Use

Jun 18, 2009

I have code that:

Private Sub RadioButton1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton1.CheckedChanged
If Serial.IsOpen = True Then

[Code]....

Opens a serial connection when a radiobutton is selected. My question is: How can I make a message pop up saying "COM Port in use" if the radio button is selected when the com port is in use by another application? Right now, the program just crashes.

View 4 Replies

Make Sure The COM1 Exists Before I Try To Open It?

Oct 20, 2010

In the developing environment the computers do not have com ports, but I am working on a project for a client who does. It is annoying that when I test the program on my computers I always get the error. "The port (COM1) does not exist"

I am catching the general exeption but the debugger stops there anyway. I can press "continue" and the program resumes but I would like to clean that up and not try to open the port if the computer does not have one.

vb.net
Try
SerialPort1.Open()

[Code].....

lblNoCOM1 just tells the user that there is no serial port and that the barcode scanner is not working.

View 6 Replies

Capture Text From A Datagrid Into My Application?

Sep 2, 2009

I have an app. (with out source code) that has some where about 20000 records in it. I want to extract all those records through my app. and save them somewhere (in vb.net ).

View 3 Replies

Capture Text From A Shell Command?

Jul 14, 2010

So the app that I am working on requires me to launch shell commands that output text into a command prompt window. I need to be able to capture that text into a string.

View 3 Replies

VS 2008 Capture MSN Text Message?

Jun 15, 2009

I had an idea for an MSN (Windows Live Messenger) "addin" today, which I thought was a great project for me to try.Basically, I want people to be able to type LaTeX code in their MSN conversations, and my application parses the LaTeX code and displays (probably in a separate window, but if possible inside the conversion window) the math formula.

I am probably not going to get it to send the image in the conversion window, but I will be happy if I can get it to display in a separate window.Basically, all I need for this to work is to capture the text that a user receives over MSN. If it contains a certain token (like "$$ ... $$") then I can try to parse the text between the dollar signs, and if it is valid LaTeX I can show an image of the result in a separate window.

So, I probably don't even need an actual MSN plugin / addin, if I can just get the received text by some other means.

1. some basic Windows Live Messenger add-in programming examples / tutorials? I've never done this before, and have no clue how to do it... VB/C# are both fine.

2. how to retrieve the text that you receive using either an addin, or some sort of windows API ?

So I'm looking for either an addin, or, if possible, a completely separate application that basically monitors each and every window and sees if it's from MSN, and then retrieves the received text...

View 1 Replies

VS 2008 Capture Text From Chatprogram?

Mar 28, 2010

Using Winspy++ I've figured the structure of this program is as following

Main Window = BRWindowClass
Children of BRWindowClass =
MDiclient

[Code]....

View 2 Replies

.net :: Using POST Or SESSION To Capture Data?

Mar 31, 2010

I'm currently working on web application using VB in ASP.NET.Right now I have 1 page with panels that we are using to show/hide depending on the flow. When the user first comes in, he/she is presented with a gridview containing a list of clients. Then the user, clicks a link from a row and is presented a form where he/she can update the clients' info.Originally, I had a HYPERLINKFIELD that put the clientId in the url, then I'd grab the url and do the code appropriately

<asp:HyperLinkField Text='<%$ Resources:Resource, ManageClient %>' DataNavigateUrlFields="CLIENT_ID" DataNavigateUrlFormatString="~/clients/manage.aspx?clientId={0}" />

[code]....

View 2 Replies

Capture Data From A Database To A Label?

Jun 21, 2010

I have a problem trying to capture data from a database to a label. I am trying to display a list of values from my database when i press a button.

This is my code for my database
[ CODE]Dim strDBFileName As String
strDBFileName = "My DocumentsCDRecord.sdf"
If File.Exists(strDBFileName) Then

[Code]......

View 1 Replies

How To Capture System Data At Exception

Sep 23, 2009

Is there an easy way for me to capture some system data when I except? Particular memory information. I have a service that has been running fine for years, but lately it keeps having System.OutOfMemory exceptions being thrown at random. I want to determine what memory the system is actually using then if possible to see if I am really out of memory.

View 4 Replies

COM1 Serial Port On Thin Client

Apr 19, 2011

I'm currently developing an application on Visual Basic (2010) which requires the use of a Thin Client's serial port. I have already activated the port mapping, and tested the communication (successfully) with PuTTY. How ever when trying to use my software y receive a message The selected port name is invalid, or it is not a serial port.I have already made some successful tests with a common PC with positive results.

View 6 Replies

Send Command To Device Connected To COM1?

Feb 3, 2012

I want to send a simple command, such as "v20" followed by a carriage control character, to a heating/cooling block connected to a desktop computer running Windows XP. I am able to get the commands to work within a terminal emulator. I want to compile a simple program that will be executed by software used to control a liquid handling robot.I've looked at the how to send strings to serial ports in visual basic page and modified that code ever so slightly to send the data that I want. However, it does not work and my heating/cooling block is not changing temperatures.

Here's what I have written:

Sub SendSerialData(ByVal data As String)
data = "n65"
' Send strings to a serial port.

[code]....

View 3 Replies

Capture Keyboard Input With Text Boxes?

Jul 13, 2011

I was a professional software designer using VB6. Now that I've converted to VB2005 years later, use, with pages of unrelated information. With VB6 I could use Left$, Mid$, etc to parse keyboard input into a string. For example in the KeyPress event of a name box I could use

Case "A" To "Z"
CFName$ = Left$(CFNameBox.Text, CFNameBox.SelStart) + Key$ + Mid$(CFNameBox.Text, CFNameBox.SelStart + CFNameBox.SelLength + 1)

When converting a program from VB6 to VB2005 the software changed the line to

CFName = VB.Left(CFNameBox.Text, CFNameBox.SelectionStart) & Key & Mid(CFNameBox.Text, CFNameBox.SelectionStart + CFNameBox.SelectionLength + 1)

When writing another program I used the VB.Left(), etc, but it gives me an error. So, the question is, what is the correct way to capture keyboard input from text boxes and construct strings?

View 13 Replies

DirectSound Reading Data From Capture Buffer?

Jul 13, 2011

where I'm going wrong with my circular DirectSound Capture buffer here? If I just capture sound into a big non-circular buffer it works fine, but with a 1 second (44100 bytes) buffer and a 100ms timer to poll the read position it goes haywire. No error messages, just long blocks of zeros with short bursts of valid data. calculation of the number of bytes to read and/or the read position.

Here is the code. gBuffer is defined elsewhere as a big byte array. In this example I am just trying to copy the captured sound data from the small temporary byte array (tempBuffer) into the big gBuffer byte array. Obviously this must be done so that every byte is read and copied into the byte array with no gaps or duplication of values. Timer1 is set to 100mS:

Dim McaptureBuffer As CaptureBuffer
Dim MiLastReadPos As Integer
Dim MiBufferOffset As Integer

[Code].....

View 2 Replies

Communicate With A Device Via COM1. Sending A Command In The HEX Format?

Jul 27, 2009

I use visual basic. net, I would like to communicate with a device via COM1. Sending a command in the HEX format for example 02 00 05 15 ... and take the device to respond in HEX format. these commands I found on the Internet.

Private Sub Button1_Click () Handles Button1.Click

MSComm1.CommPort = 1 'Use the COM1 serial port
MSComm1.Settings = "4800, N, 8.1"[code].....

I bol pioneer of this program looking at Google, but I was never clear. meetings drgač this would be doing, but the service not to a significant'd be best if someone had already written CODO. better, but also that we already sent someone made programs

View 2 Replies

Read Barcode Using A Scanner Through A Serial Input(com1)

May 10, 2010

I'm trying to read barcode using a scanner through a serial input(com1). Below you will see the code I'm working with, when I scan the barcode the code goes through the datareceived event and doesnt add the read barcode to the listbox. However when I use hyperterminal and scan the barcode it reads and displays the barcode.

[Code]....

View 4 Replies

Automatically Capture The Text Displayed On HyperTerminal Using A Dos Command?

Jun 25, 2009

Is there any way to automatically capture the text displayed on HyperTerminal using a dos command or using visual basic without having to go to the program and click on Transfer|Capture?

View 3 Replies

Leave Event Used With TextChanged To Capture New IPAddress Text Value?

Dec 15, 2010

I have a TextBox control being used to capture an IPAddress from the user.I want to be able to allow them to change that IPAddres at which point the new value will be utilized by the appropriate .NET socket class to ping that new address.What other event is used with TextChanged to indicate that the user is done making changes to the TextBox. The Leave Event?

View 3 Replies

Capture When The User Pastes Some Text From The Windows Clipboard?

Mar 26, 2012

I am trying to capture when the user pastes some text from the windows clipboard. At the moment, I don't care about files or images. Here is the base code that I am using.

[Code]...

View 5 Replies

Capture Data Before A Postback (User Control Within A Repeater)

May 9, 2012

I have several UserControls in an ASP:Repeater. They are 'Add to basket' User Controls with a text input for quantity and a button to add the item to the basket.

My problem is the value is being reset to 1 whenever I enter a value into the quantity text box. I think this is happening because the containing page reinitialised the repeater (which holds the UserControls) and the quantity is one again before the UserControl's click event is fired.

how to capture the value in the textbox before the Postback occurs, I am happy to stick this data in a session for now.

I am thinking I need something along the lines of PreLoad? But that didn't work for me

View 1 Replies

How To Capture Data Of A Scale (mettler - Toledo 8530)

Aug 15, 2011

ok the scale is a truck scale connected to a terminal (cougar 8530) that was connected before via Rs232 now the pcs doesn't have a serial port so someone attach a usb adapter to it the thing is i cant capture any data from it. im an developing a small program that can capture the weight of the truck (trucks are weight with the product and then re-weight with out it so they can find how much the product or products weight) so any ideas? suggestions?

View 1 Replies

Pasting A Bitmap Data On Clipboard From Screen Capture

Nov 29, 2011

There is Bitmap data on the clipboard from a screen capture. If I paste it into a RichTextBox it works OK. That is, if I remove the first two lines below.

Dim clipboardDataO As DataObject = CType(Clipboard.GetDataObject(), DataObject)
Clipboard.SetDataObject(clipboardDataO)
RichTextBoxTxt.Paste(DataFormats.GetFormat(DataFormats.Bitmap))

However, If I capture the clipboard data and restore it before I paste I no longer get my bitmap displayed in the box. My problem is, in the real situation I need to use the clipboard before I paste which is why I save it and restore it above.

1) Do you know why restoring doesn't appear to work here?
2) I can't paste before the save/restore. Is there something else I can do?

View 1 Replies

Possible To Use Exclamation System Event To Validate Data Capture?

Aug 23, 2010

In a Windows XP Pro environment, my system uses a mainframe emulator in a window in which a scanning application is running. The data populating the mainframe app comes from various instruments, scales, barcode scanners, etc.. The data inputs are captured by a winwedge type RS232 data aquisition software.

When all the data is processed correctly, the mainframe application sends an "operation completed" message and creates an exclamation system event associated with a specific sound to inform the user.

My goal is to create a MS Access application that would use the Exclamation system event to validate writing the barcode that was just read to a database without further querying the mainframe, creating a local database. I only want to write the barcode when the mainframe application completed and therefore played the sound.

View 5 Replies







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