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


ADVERTISEMENT

VS 2008 Network App - Send Message Or Network Package To Some Of The Clients In The Network

Aug 18, 2009

Here is my idea so far: I have a bunch of computers connected in a local network. One of them is a MySQL server, one will have a vb.NET program wich will act as a "second server" and the rest will be different clients. What I want to do is that the "second server" will send out some kind of message or network package to some of the clients in the network, and they will execute a code based on what message it is, or what kind of package it is. I'll give you a simple example:

[Code]...

View 6 Replies

VS 2008 My.Computer.Network.Ping() Cannot See Network Under Windows 7

Nov 18, 2011

I have a .NET 2.0 *.dll that calls My.Computer.Network.Ping(). The *.dll is then run out of an *.exe via AppDomain.CreateDomain() and Invoke(). The problem is that this works just fine under Windows XP but under Windows 7, I get an exception saying that no network connection is available. I tried the Ping() call out of a small console application under Windows 7 and it works just fine.

[Code]....

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

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

.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

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

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

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

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

VS 2008 : How To Do A Database A Network

Mar 14, 2010

how to do a database a network? in a library system, when the student searches a book in a datagridview then, when they borrow books, they click the borrow then it borrows. Then it would reflect the students name and the book that the student borrowed in the librarian form. how is that?

View 1 Replies

VS 2008 App That Gets The Names Of The Network PC's

Jun 22, 2009

I have this app that gets the names of the network PC's. I want to ping each PC to see if they are accessible. This is the code I use to ping:

vb.net
Private Sub tryPing()
Dim aPing As Ping

[Code].....

Would it be better to ping each computer on a different thread? (If yes, how can I do this?)

View 14 Replies

List All Computers On The Network With 2008?

Apr 11, 2010

I wonder how do I list all computers on the network with vb 2008?I know to do in vb6 I have no more sense in vb 2008.

View 2 Replies

VS 2008 - Possible To Get Network Users Local IP?

Jul 9, 2011

Is it possible to get all my network users' local IPs using VB 2008?

View 6 Replies

VS 2008 : Get The View Of Another Machine On The Network?

May 24, 2010

Get the view of another machine on the network, or window of another application in my application (like I could see e.g.: Sage on a e.g.: browser in my application).This would be a great improvement for the users that use some applications on our server computer, at the moment we use remote windows connections but we don't want to allow the server as with full permission for some users.

View 5 Replies

VS 2008 : Make A Bridge Network Using VB?

Mar 20, 2010

My school block my website and i want to make a Bridge Network like "Freegate" It have "Server" and "Client"using my pc to be the server at home and the pc in the school are clients Than it will contact to the server, and any data will go throw the Server and go out!

View 1 Replies

VS 2008 : Sending Commands Across A Network?

May 1, 2010

What I need to be able to do is send a command across a specific network port (eg. 2124) to a specific ip address. I already have writen the recieving code (for the iPhone os) and accepts commands like:

filefound("Name of file",filetype,size)

All this is to be sent in plain text and once received the iPhone will then send a command like:

nextfile()

View 1 Replies

VS 2008 Application On Shared Network

Jul 28, 2009

I have a VB2008 application that runs off a server. Users connect to the application via shortcut.

[code...]

For what it's worth, the application is targeting .NET 2.0 Framework on both the development side and package install side.

The illustration below is more for my sake than yours, but should help me explain the problem.


User A and B work just fine, but when User C and User D attempt to use the program via shortcut9(same as User A and B) the error below is displayed.

[code...]

what I can do to allow User C and D to use the application?

View 11 Replies

VS 2008 Computer.Network.DownloadFile()?

Dec 10, 2011

My.Computer.Network.DownloadFile("http://MyDomain.info/MyFile.zip", SaveFileDialog)Hi, the above don't work, what i need is for it to popup a savedialog for the user to browser for a location to download the file

View 4 Replies

VS 2008 Fulltrust For Network Application?

Feb 8, 2011

On the earlier version of VB.net 2003, I could run a wizard to give full trust to a .Net application on the network. With VB.net 2008, there is no longer a wizard to do this. I did some Googling and most of the references I find refer to using Caspol for .Net 2.0. That doesn't seem to be an option .net 3.5 (I can't find Caspol in the framework folder). Does anyone know how to do this for VB.net 2008?

View 2 Replies

VS 2008 Game Network Tracker?

Aug 25, 2009

I want to create for a game an external program that can give advice about what to do but I have no idea where to start.First off all I am not an unexpericend programmer but simply never did something like this before.Its about the game called PoxNora, this is some kind of advanced chess with so called 'runes' that can level, you can upgrade and collect.

The game send data to the client while you are playing. This data(is what i expect) contains information about what you are playing and what your opponent is playing. I know there are programs(forgot the names and cant find them that fast anymore ) that can listen to proccesses and detect network packages(wich is usually done for cheating in a lot of games). I want to do the same for this game and then let the program give advice.

Example of advice even when you dont know the game.I have 2 so called 'runes' and the enemy has 1. I want my program to calculate if it is better to attack firstly with one unit, maybe it causes debuffs, and then with the other one to maximize the damage output.

However it will take some time to create a program like this I really want to make it. I can create all those calculations myself but have no idea where to start with the network part.

View 3 Replies

VS 2008 Network & User Security?

Oct 18, 2011

i need advise regarding user security on the network i am unable explain my need , because it won't visualize much hence i attached the graphical representation here kindly find it

View 2 Replies

VS 2008 Simple Network Client

Jun 19, 2011

I've written an app that gets an integer value every 500 ms from a MCU over usb. Works great. I want to get that same value over TCP/IP. Programming the MCU is no problem The problem is in VB.Net. I've read a bunch of sites and they seem to be overkill to what I want and just don't work for VS 2008. I just want to get that value and then manipulate it. I've tried the 'system.Net.Sockets' import and dimmed a 'New TcpClient', but one of the sites said to call the tcpClient.connect method and that doesn't come up in intellisense. Can someone help me just connect to a server with known IP address and Port, and read the integer 'x' every 500 ms?

View 8 Replies

.net - Using A FileStream On A Network When The Network Drops?

Mar 26, 2012

I am writing some code as part of a framework for opening a file.The file is of custom type and should not be opened by more than one instance of my application. To stop multiple file opening I use a filestream to create a lock file and then keep said filestream open. This seems to work in preventing another instance of my application from opening the file ( as it will fail in recreating the lock stream in the files open code ) but if the file is on a network share and the network drops then the original application also can not access the file any more.The code to get the lock stream is as follows:

Try
' We need to keep this stream alive to prevent other applications gaining access to the lock
mLockStream = New FileStream(mLockPath, FileMode.CreateNew, FileAccess.Write, FileShare.None)[code]....

In this I create the lock stream the first time round and then if another application tries to create it, it throws an exception and stops them from getting any further. This is kind of how it needs to work, unfortunately as I said, if this is done across a network and then the network connection is dropped for some reason then I can not delete the lock stream as I get an IOException telling me a process cannot access the file as it is open in another process ( which shouldn't be happening I don't think).

View 1 Replies

C# - Reflection And Permissions Work Over Network - .net 2008

Nov 16, 2009

I have various projects that use reflection to access and invoke private or internal members in some of the framework classes. These projects all work fine on my machine (running visual basic express 2008), but are they guaranteed to work on another machine, or, say, over a network? I've had a look at Reflection-Permission, but I'm not sure if I need that granting to me or if I grant it to my project!

View 3 Replies

VB 2008 Search Network For Printers IP Addresses

Jun 12, 2011

i am trying to find a code that will do a search and find the ip address of any printer on the network with a ip address?

View 1 Replies







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