Read Data From An External Device Using MSComm Control ?

Nov 30, 2010

I am trying to read data from an external device using MSComm control but the problem is I am getting wrong data. I am recieving 1 byte data but the first three bits are wrong so anything greater than 31 sent from the external devices is recieved wrongly. eg. if I am sending 63(111111) from the device then the input from MSComm control gives me 159(10011111).Due to this reason I tried SerialPort from .Net framework and was surprised to see that it is working properly.


Connect The EPP (Encrypted Pin Pad ) Device To Computer By Using Mscomm Control?

Mar 14, 2012

Currently, i am trying to connect the EPP (Encrypted Pin Pad ) device to my computer by using mscomm control. May i know what are the possibility problems may cause the DSRHolding does not return to "True"?

View 3 Replies View Related

.net 4.0 - Read Data From An External Hardware Device?

Feb 1, 2012

I have developed a simple software using, now i want to receive some data from an external device,How to read a hardware transmitted data using, where hardware is attached to a USB port?"

View 1 Replies View Related

Add And Use An OnComEvent With MSComm Control

Mar 17, 2009

How can I add a MSComm control to a Form in VB2008? like in VB6... (with properties etz..)

Do I need to change some settings? or download the ocx?

And when it has been added, is it like in VB6 - just clicking twice on the control opens a private sub OnComEvent?

View 4 Replies View Related

Connect To External Device Using A Serial Port

May 25, 2010

I'm trying to connect to an external device using a serial port. I found a couple of tutorials with demo code and tried these. Unfortunately they all return the same gibberish unreadible result.[code]I'm sure my port settings are correct (I have the communication protocol of the device.)

View 20 Replies View Related

Holding A Key Down - Translate Input From An External Device Into Keypresses

May 26, 2009

im trying to make translate input from an external device into keypresses. when bit = 1 i want the key down, when bit = 0 i want it up unfortunately with sendkeys it just sends the same keystroke over and over again. ive googled for days without finding a good answer.

View 7 Replies View Related

Create Simple App Within Program To Send Timed Controls To External Device?

Mar 15, 2010

How can I create a simple application to send timed controls to an external device?

What I need is to create a very simple application that sends control signals or voltages out to an external device connected via serial perhaps. The external device will in turn trigger some electromechanical devices. There needs to be 24 independent controls each with a simple command equivalent to on or off.  What is important is being able to control the timings of the on and off on each control.[code]....

View 1 Replies View Related

Read Information That Sent By Device (pos)

Dec 13, 2010

im from iran.your site very fine. i have a question . in my country have vary device that send it information by phone line(example:fax,POS...) if me connect it to my computer modem and my computer modem connect to phone can i read information recived and sended.

View 3 Replies View Related

C# - Read Sms From Mobile Device With .net Application?

Mar 16, 2010

How can I read SMS from mobile with my .net application? i have a Nokia 5310 mobile phone. Can you tell me from where i can download Nokia SDK or source code or Nokia API etc?

I want to make a custom application which reads SMS and at the same time sends a response to the sender's mobile number.

View 1 Replies View Related

Read XML From A Device Through A Serial Port?

May 13, 2011

My current program can read in a continuous stream of data when initialized and I can send a command to retrieve the devices stored data, I also have within the same program code that will read an XML file and populate from controls.

I have two separate idea's right now that I'm trying to merge into one

I want to read in XML and populate my controls. I'm aware of delegate and Invoke but I'm having a hard time working them into my XML portion or the opposite "working my XML into my serial port class".

View 14 Replies View Related

Write And Read Bytes From Usb Device?

May 31, 2011

I am trying to write and read bytes from usb device.I have an array dout(8) of boolean say f,t,t,f,t,t,f,t representing switch states.I need to convert that to a variable DataOut as byte. 01101101 Later I read the usb device.This gives me a variable Data as byte 10110100 I need to convert that to an array DIn(10) of boolean t,f,t,t,f,t,f,f All my code attempts have failed.

View 2 Replies View Related

Need To Read Data For A Smart Device Application

Jun 22, 2010

I have an xml file stored on an web server and I need to read the data using for a smart device application.I also need the ability to select indvidual nodes of the xml file. It currently a simple file but will be expanded upon. [code] I need to access the name node to start with.

View 2 Replies View Related

Read Files From An USB Mass Storage Device?

Sep 9, 2009

how to read files from an USB mass storage device. I have found plenty of posts regarding drive letter detecting and reading the files. It's OK, but what about a device, where no drive letter is assigned - e.g. my mobile phone is visible under "My Computer" as "Mobile Device". The same situation it with my MP3 player. It's visible under "My Computer" as "Sansa device". Please, could anybody help me? I need to enumerate USB devices, identify, which ones have a file system and finally, I need to read/write a file to the file system.

View 2 Replies View Related

VS 2005 Read Information From A Device Through COM Port

Sep 27, 2010

I'm trying to read information from a device through COM Port.. Sometimes I receive information like:


how I can change that? or detect it so whenever the program receives that type of info it ignores it?

View 2 Replies View Related

Open A Communications Port And Read Data From A Wired Usb Device?

May 16, 2011

I know how to open a communications port and read data from a  wired usb device.

How can I open a communications port to read data from a wireless bluetooth device?

View 5 Replies View Related

Read Text From External Elements?

Jun 30, 2009

I like to read text from another application's buttons, labels and textboxes with the help of "SendMessage". I've tried so many different code examples, but nothing worked. Maybe somebody of you has a small VB.Net-Example on your harddrive and explain it a bit to me.

View 1 Replies View Related

Read 2 Connection Strings From External File?

Sep 9, 2011

I have a situation where I have a program that uses two connection strings. This program will be used on multiple web servers on multiple domains and the only difference for any of them is the two connection strings.What would be the best solution to read in these connection strings from a file separate from my actual .vb code?

Ideally I want to be able to drop the .vb and the connection string file into its own folder on any number of websites and not update anything else (for example add any connections to the web.config or anything) than the external file containing the connection strings, I assume something like xml would suffice?

View 2 Replies View Related

Read Text From An External Applications Textbox?

Sep 27, 2011

I am trying to extend some features of a external programm that is not able to use plugins or something. So I have to write my own app that reads the text from a textbox from this external application and trigger some own actions.

By using the FindWindow API in user32.dll I allready catched up the handle for the external application. But now I am kind of stuck. By using Spy++ from the Visual Studio Tools I got the information that the class name from the control I would like to read from is "", but there are several of them. Additionally every time the external app starts it creates a new control id for the textbox I want to read.

View 2 Replies View Related

[vb2008] Read The Text Of An External Messagebox

Dec 25, 2010

with the hwnd = FindWindow(Nothing, "MsgBox Title")put in a Timer_Elapsed event i can get the Hwnd of a MessageBox launched from an external application. starting from the Hwnd there is way to get the text ot this message box?

View 5 Replies View Related

Control Ip Relay Device From Internet

Apr 25, 2012

i wrote some code to control an ip device, i made in windows forms application , silverlight and, they all work on the local network , but won't work from internet web server, i have the router forwarding to local device ip and port,

i get this error:
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 226.45.306.158:4999

here's the code used

Private Function SendRelayCommandTest(ByVal e As String) As String
'SendTextToIP("setstate,1:" & thePort & "," & TheState)
'Dim IPHostCC1 As String = ""


View 1 Replies View Related

Create A Remote Control Device?

Aug 1, 2009

How would i create a remote control device so i could access any pc with this software and view there screens, share files, etc.

View 2 Replies View Related

Select Recording Control Device?

Oct 13, 2008

I want to select either "Wave" or "What U Hear" or "Microphone" or "Analog Mix" (LineIn) in the Windows Recording Control applet, i.e. as if I clicked the applicable "Select" checkbox.

I got this VB6 code on the Net (not sure where) and tried to convert it to VB2008. It is very near to correct I think, but the last part does not work.

View 1 Replies View Related

MS VS(vb) '08 Express Include External Files For Read/write Access?

Dec 2, 2009

I am using Visual Basic 2008 Express Edition. Some of the programs I am writing make extensive use of External files (saved games,  data, item lists, etc.) I could use an easy way to get these files to ride allong during deployment (cd mostly). adding them to the resources works for some static pictures, but custom structures into lists of info to read and write from are beond that features abilities, same with the settings feature. I have found in other help referance to "MageUI.exe" so is downloading a .net SDK my solution or is there a better trick I can use?

View 2 Replies View Related

Modify A Program To Control A Usb Relay Device

Mar 30, 2010

We are trying to modify a program to control a usb relay device. Essentially what the program originally does is give you a series of check boxes that you check to make the relay fire. We tried to modify the code so that the box is checked after 5 seconds using a counter and an if statement. It works, but only partially, what happens is the check box shows a check, but the even that is normally triggered does not happen. [code]

View 4 Replies View Related

Control App With Wireless Device Like Hp Slate Or Dell Streak

Apr 22, 2010

Example On my pc I have one application and on a tablet, running on 7, I have the other app. I want to control buttons in the app on my pc from the tablet device app. How to do this?


View 1 Replies View Related

Make Program Feel If Any Device / Usb Device Plugged Into Computer Or Unplugged

May 5, 2010

how can i make my program feel if any device or usb device plugged into the computer or unplugged.url...

View 3 Replies View Related

Windows Cannot Load The Device Driver For This Hardware Because There Is A Duplicate Device Already Running In The System (Code 42)

Nov 13, 2009

A Problem in accessing a device from VB Windows cannot load the device driver for this hardware because there is a duplicate device already running in the system. (Code 42) This error is because i am using 2 devices of the same company which has the mass usb storage on it and when i install one of the device the other hides. So one is detected the Other is not. It also give a error called designed dragnonacally something...

View 2 Replies View Related

External Program Control?

Jun 29, 2009

I am using VB 2005. I am trying to open an external program, make it invisible, and then control it. It is fine if the external program shows up in the Windows Task Manager, but I don't want anything showing up in the Windows taskbar. I already know how to open the program I want to use. For that I am using:

System.Diagnostics.Process.Start("C:Program FilesSomeProgram.exe")


View 12 Replies View Related

VS 2008 Control External Program

Aug 4, 2011

i have an external program, i got his and w.e else is needed.... i want to know how do i tick a checkbox from my program. to this external software. to tick this checkbox and then the checkbox will do what it supposed to do, and not just change the gui to ticked without doing a thing,

View 2 Replies View Related

Dc Motor Using Mscomm

Jan 28, 2010

how do i control 1 dc motor using the mscomm activex and the rs232 (serial)port ? how to change the direction of the motor using code ?if possible give me the full walk through

View 13 Replies View Related

MSComm Command In .net?

May 20, 2011

i'm confusing on the MSComm command..coz in .Net, it wasn't declared. as an example for a simple interface, how should i convert this to here's the simple interface in VB6..

Dim sData As String    
Dim lHighByte As Long  
Dim lLowByte As Long   


View 4 Replies View Related

Get External Application Control Handle (hWnd) And Name?

Feb 3, 2011

i can't find to another application controls handle and name. i searched to samples but i can't understand. How i write to API's for this.

i'm working to API declare and the some API functions. And i've got a right Main hWnd. But i can't get controls hWnd (button, textbox etc..).. ?

Example : FindWindowEx, AccessibleObjectFromPoint, AccessibleObjectFromEvent, AccessibleObjectFromWindow..

View 1 Replies View Related

Way To Used Program6 Control Combobox On External Application

May 2, 2012

I have some issue can't control combobox on external application since used .Net Application

View 4 Replies View Related

Database - Referencing A Control Programmatically With External Source

Jan 30, 2010

I have a MS Access database set up, with a Period field that has either values 1, 2, 3, 4 or 5. I retrieve these values using a database connection and I would like to reference a particular control based on what period was grabbed from the database.

Here's example code, pseudo of course.

TextBox(dr(3)).Text = dr(0)

dr(3) contains the period, and dr(0) contains the content I would like to put into the text box. I have these text boxes on my form: TextBox1, TextBox2, TextBox3, TextBox4 and TextBox5.

So if dr(3) contained 2 then I would want to reference TextBox2.

View 1 Replies View Related

Prevent WebBrowser Control Open External Browser

Apr 14, 2012

I have a windows form that have 5 webbrowser control. I also have serveral links of URLs and each webbrowser will open them. My problem is that after all links already opened, when I close my windows forms, sometimes my application suddenly open my default browser automatically and open url that on my URL list. I already tried to make all webbrowser to navigate to "about:blank"to make sure there are not loading any webpage before I close my application but the problem is still occur. This has given me a headache since this problem is not always occur when I close my application.

View 6 Replies View Related

Controls - MSComm From VB6 And SerialPort From .NET2005?

Jun 4, 2009

I have a problem with this two controls. I have a software in VB6 which send a command to hardware in ASCII type: 170 - head, 3 - numb. of command, CRC.


View 4 Replies View Related

Receiving Data With MScomm From Modem?

Jul 1, 2009

I am making aproject in vb6 with MScomm. Computer A connected with a device on serial port. I can receive the data from serial port in a text box. Computer A can also dial cmputer B to make connection. But it is unable to send data on modem or computer B is unable to receive data from modem.Here is the code for sending and receiving computers1- Computer A

Option Explicit
'button to open data port to receive from device
Private Sub cmdOpen_Click()


View 3 Replies View Related

Irc Server - Computers - Able To Control Them Remotely Without Using External Dekstop Management ?

Jan 6, 2009

At my house we got 6 computers and 5 laptops. Not I want to be able to control them remotely without using external dekstop management or something else. So i can control when my kids can use the computer or not

So I came up with the idea of creating an irc server that listens to commands that I type from my main computer. The commands are no problem for me to program but the irc server itself looks pretty hard. I've been looking on google but cant find a good source to learn it. some other ideas than using irc protocol?

View 1 Replies View Related

Get A Copy Of Code Which Used To Get MSCOMM To Connect To Robot

Feb 16, 2009

Can i please get a copy of the code which you used to get the MSCOMM to connect to the robot and send single bytes of information? Having loads of errors with my code.Working on a similar project but using the mind-storm nxt kit.?

View 4 Replies View Related

MSCOMM Error After Instllation In Client Machine

Jul 5, 2011

i am using MSComm control in my Application working gud in my system.but after creating the installation file if i install the projest in other system mean it not working it showing come runtime error System.Runtime.InteropServices.COMException (0x80040112): Creating an instance of the COM component with CLSID This is the run time exception i am getting?

View 2 Replies View Related

Sending And Receiving Data To RS232/MSComm A VB6.0 App?

Sep 14, 2009

I am developing an application which is pretty much a replacement of a hyperterminal.  I am trying to send commands to the serial port using MSComm in VB6.0 When I type in on the hyperterminal h003128 I get a response OK.  Or when I type in i003 it displays back some values.

What I am trying to figure out how do I send the h003128 via VB6.  I believe I've undertood how to send data to the port.  It seems I am not getting the correct formate. This wont work.. the formate iAAADDD where i = i AAA = 003 and DDD = 128 MSComm1.Output "i003128"

View 3 Replies View Related

VS 2005 Use MSCOMM For Monitoring Serial Ports For Voltage Change?

Jul 22, 2009

I'm wondering how I could monitor a serial port for a voltage change or contact closure and have an event triggered when there is a detection.

View 1 Replies View Related - Read One User Control Label Text In Another Use Control?

Apr 23, 2012

I am using two user controls in my web application. I want to read a Label text from a user control via another user control. How can i read it?

View 3 Replies View Related

Reading And Writing Files On External Hard Drive, Code To Ensure SQL Or Data Read/write Execution In Case Of Periodic Drive Reconnect?

Dec 18, 2010

The drive is connected via USB and the problem I'm having is that, periodically, while my code is executing, the usb drive seems to disconnect and reconnect. (Nothing to do with the program, but the drive itself).I want to find a way to prevent these temporary drive reconnects from interrupting my code. IE, i want to insure that whatever read or write that is requested is actually executed even in the case of a temporary drive interruption.

View 1 Replies View Related

MSComm Installation - Creating An Instance Of The Com Component With CLSID - IClass Factory Failed

Feb 19, 2009

Iam working with I have used MsComm6.0 control in It is working properly on my machine.But when i installs in a system in which .net is not installed it is giving an error


View 4 Replies View Related