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.

[Code]...

View 4 Replies


ADVERTISEMENT

VS 2008 Creating Dynamic SerialPort Controls

May 31, 2009

I need to create some serial port controlls manually. My program reads through a config file, and it if comes across an entry called COMPORT then I need to create a contol to talk to this port. The entries in the ini file might be

COMPORT=COM1
COMPORT=COM3
COMPORT=COM7

So here is my problem! I'd like to create the variable control name with part of the com port number, so I can always refer back to it.
EG.

Dim strVar as sring = "COM1"
Dim CName+strVar As New System.IO.Ports.SerialPort

View 1 Replies

Searching By Date In .net2005?

Jul 13, 2009

i am writing a query to select all records that are in a month retrieving records from MS Access 2007 in VB.net 2005 select * from Table1 where DatePart(DateInterval.Month,dateReceived)"&comboBox1.SelectedIndex&"' "

but i am getting an error, can u tell me how to solve

View 2 Replies

Add Calculations And 2 Dimentional Array - .net2005?

Apr 6, 2011

got a project from college to create a program for a car company that will provide quote for the loan the client requires to purchase a car. I've created a file which adds,deletes,edits,views all, and a administration section. I need to add the calculations to actually work the quote out. Can either use a case construct or an 2 dimensional array but don't know how i'll do it. Using console application by the way.

[Code]...

View 3 Replies

.net2005 Using Windows Application Can Be Uplod In Webhosting?

Jan 12, 2009

i just want to know if i use windows application in vbnet2005, will it be uploaded for web hosting?
if not, what kind of programming language do i have to use, which i can upload for web hosting? because i'm developing an online system.

View 2 Replies

Connecting .net2005 Windows Apllication Form With The MS Sql?

May 31, 2010

i m connecting vb.net2005 windows apllication form with the MS Sql server 2005 (which is coming with .net framework) and i m getting problem to verify the user Private Sub signin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles signin.Click

[Code]...

View 3 Replies

Connection String For .net2005 And Sql Server 2000?

Jan 21, 2009

connection string for vb.net2005 and sql server 2000

View 1 Replies

Copy All Files From One Folder To Another In .net2005 Using System.io?

Feb 24, 2007

i am working in asp.net/vb.net I have to copy all files from a folder to another folder through coding using system.io the files should be copied in the new folder with their existing names

View 2 Replies

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

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 VB.net? here's the simple interface in VB6..

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

[code]....

View 4 Replies

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

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()

[code].....

View 3 Replies

Make IDD Field Rearrange It Self Automaticlly From 1 To Last Number Delete Record(s) Using Sql2005 In .net2005 ?

Jul 14, 2011

Iam using sql2005 database in vb.net2005

my table's name = tab1
I have 3 fields
1- ID = auto number =primery key
2- IDD = number
3- name = text

now if I add 10 names in the table from (1-10) =1,2,3,4,5,6,7,8,9 ,10

then if I delete name number 6 the IDD field will rearrange it self from( 1-9)=1,2,3,4,5,6,7,8,9 instead of 1,2,3,4,5,7,8,9,10

View 9 Replies

Make IDD Field Renumber It Self Automatically From 1 To Last Number When Delete Record(s) Using Sql2005 In .net2005?

Jul 8, 2011

Iam using sql2005 database in vb.net2005

my table,s name = tab1

I have 3 fields

1- ID = auto number =primery key

2- IDD = number

3- name = text

now if I add 10 names in the table from (1-10) =123456789 10 then I deleted name number 6 the IDD field will renumber it self from( 1-9)=123456789 instead of 1234578910 so in reports and queries the names will appear numberd from 1 to last number with out missing numbers in the middle of numbering I use in MS-Access code which does this perfactly

Public Sub RowOrder()
Dim db As DAO.Database
Set db = CurrentDb

[code]....

View 1 Replies

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

MSCOMM Error After Instllation In Client Machine

Jul 5, 2011

i am using MSComm control in my Vb.net Application ...it 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

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

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

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.

View 3 Replies

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

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

Feb 19, 2009

Iam working with VB.net. I have used MsComm6.0 control in VB.net. 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

[Code]....

View 4 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

Get Caller ID From Serialport

Apr 23, 2011

I am trying to read caller id from a internal modem. modem is caller id enable and it works in hyper terminal. but when i try from vb.net it only shows 'RING'. here is my full code

[Code]...

View 4 Replies

No Timeout For Serialport?

Dec 16, 2011

I am using VB 2005 and need to trap a serial port timeout. I use a standard try/catch block, but if no characters arrive the code still hangs at the ReadByte call. Here is the code:

Try
SerialPort.ReadTimeout = 200
' read timeout of 200 mSecs
thisByte = SerialPort.ReadByte()

[code]....

View 5 Replies

USB SerialPort Oddities .Net 4.0?

Jul 12, 2011

Recently while trying to help someone with an issue using USB SerialPort's I discovered sometheing interesting when the ports Handshake was set to RequestToSend. My setup COMx <---> BreakOutBox <---> COMy COMx and COMy are on the same PC. The breakout box is used to create a null modem, pins 2 & 3 crossed, pin 20 to pin 6.When the handshake was set to RequestToSend every Write resulted in Carrier Detect and Ring being raised. Is this just my adapter or are all USB SerialPorts like this?Serial Port Random Microsoft® Community Contributor 2011

View 2 Replies

VS 2008 PDA SerialPort?

Jun 23, 2010

I have wrote this program (for PDA), to connect a PDA to the PC via RS232.It only works half way.

If I send anything from the pda to the pc, I receive data correctly.If I send anything from the pc, then the pda hangs up.Can anybody tell me what I'm doing wrong?

Also, how do I make sure the port on PDA is closed when quitting the application?

[Code]...

View 1 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

Asp.net - Serialport Communication .net 4.0 From A Webpage?

Sep 23, 2011

Looking for serial port communication using ASP.NET 4.0. I have a cardwriter/reader from IDTECH which talks through a comport. Is there any way to accomplish with .net through the web.

I read things but most of the topics on speaking about .net 2.0 and I was not sure if they created something to handle this in .net 4.0

View 2 Replies

Bug In Serialport Control When Using E - 8 - 2 Parameters?

Jun 16, 2011

We have been debugging a problem with serial communications with an embedded device on 115200 baud, Even parity, 8 databits and 2 stopbits. The problem: a lot of extra 0x00 are sometimes received from the serialport.

1) We build a real basic sample program that only handles the data exchange. It was completely build according the serial-port-vb.doc from msdn. It was build in vb.net 2010. So this was the most basic setup possible on the PC side. This simple tool clearly shows the datareceived event spitting out extra bytes.

2) We used a scope to look at the hardware bits/levels. No problems / differences seen between good and bad messages. No extra bytes visible that the serialport event send to our programm.

3) We tapped the serial communication and received no wrong data on the tapping system but still on the .net tool. Again the serialport datareceived event gave us many extra 0x00 bytes.

So our only possible conclusion is that there is a problem in the serialport component from .net. My question: Are there any know issues? Can I get in contact with a microsoft engineer?

View 9 Replies

Check When Serialport Is REALLY Connected?

Mar 16, 2009

I want to send some data through a serialport (USB) permanently and got a problem once the USB interface crashes. Sometimes it just happens, but if I ask the PC "serialport2.isopen ()" I will get a TRUE, even though the USB cable was uplugged. How can I check if a connection is still available. CDHolding wasnt working either. I am using VB 2008 Express

View 7 Replies







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