Making An Application Which Send Some Files To LPT Port?

Aug 19, 2010

making an application which send some files to LPT port.My Code is

Dim PortName As String
Dim pr As Process
Dim args As New ProcessStartInfo("cmd.exe")[code]....

look at the bold line.1st line Send a file to PORT and 2nd line deleting that file.I am execute this code in a loop.that means those 2 lines are executed in multiple times.As a reason of that,some times these 2 commands are not working properly. so that the file is not deleted. How can the commands are executed in proper way?

View 10 Replies


ADVERTISEMENT

Making Application Send Back Random Stuff

Feb 26, 2010

Iw ould like to know how to make it so every time you click on a button a different outcome can happen from the opens i gave the application.such as: when i click button 1.i will want it to either close the application or show a textbox but the outcome should be random out of the two.Like a dice if you get 1, 2, 3 the application will execute command "Me.close()" but if it rolls 4, 5, 6 it will execute the command "textbox1. show()"

View 1 Replies

Making An Application Which Can Send Recharge Amount By Using A Mobile Device

Mar 15, 2012

I am currently making an application which can send recharge amount by using a mobile device. (Nokia E71).

View 3 Replies

Making Application Send Message When Picture Background Is A Certain Color

Oct 7, 2011

It detects the color fine and the picture background changes to the color my mouse is pointing at, but when it changes to one of the colors its ment to send me a msg it doesn't..[code]

View 2 Replies

Making Application Send Message When Picture Background Is A Certain Color?

Dec 20, 2011

It detects the color fine and the picture background changes to the color my mouse is pointing at, but when it changes to one of the colors its ment to send me a msg it doesn't

Public Class Form1
Dim color As Integer
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles

[code].....

View 1 Replies

VS 2008 Application To Send E-mail - Trouble Making It Use Both Office 2010 And 2007?

Dec 14, 2010

I have written an application which uses the Outlook object library to send an e-mail with information from a textbox. I programmed this on Windows 7 and Office 2010, which was a mistake as most of the clients will be using Windows XP and Office 2007. I am getting an error when running the application on Windows XP/2007:

Could not load file or assembly 'Microsoft.Office.Interop.Outlook, Version=14.0.0.0 .... etc
I understand that this is because I have not loaded the Outlook 12.0 assemblies, however I am having trouble adding the assemblies on my Win7/2010 programming machine. I have downloaded the standalone Office 2007 PIAs however the Outlook 12.0 doesnt appear on the list, and when I try and add just the Office 12.0 I get an error.

is there a way to standardise and make the application work with both 2007 and 2010 outlook machines? I think it is possible, I have read some articles making the application choose the correct version, however cannot figure out how to.

View 4 Replies

Send A File To COM Port?

Jun 21, 2010

I just want to know is it possible to send a file to COM port and receive a file from COM port?

View 1 Replies

Send Data To A USB Port?

Jun 9, 2012

how to send data to a USB port.

View 1 Replies

Access And Send Data On USB PORT?

Nov 21, 2011

I am currently doing a program to control some device via usb port but i don't know how to interface the usb port using vb.net. i want to send data on a device to make it act like parallel port..

View 10 Replies

Send *.Hex File Via Serial Port To A MCU?

Sep 11, 2009

sending a hex file through serial port using vb.net? and i m not really sure the difference between sending data and sending a file, seems majority of the topics on the forum is about sending data via serial port.

View 2 Replies

Send And Receive Data Through USB Port?

Jan 24, 2008

I am trying to send and receive data through a USB port on my computer to an external microcontroller.

I built most of the code using the "serial class" but then i read that this would not work with a USB port.

How would I go about communicating with this USB port on my computer?

View 5 Replies

Send Keystrokes To A Serial Port?

Mar 11, 2010

I am trying to send a ctrl-x keystroke to COM2 and I ahve to code to open the port and read and write but when I tried to send Chr(Keys.ControlKey + Keys.X) it did not work

View 1 Replies

Using Chr$ To Send Data To The Serial Port?

Feb 18, 2011

I used this code in the pass with VB6 to send hex data over the serial port to a microcontroller.

MSComm1.Output = "C"
Send command ID
MSComm1.Output = Chr$("1") Send Command Parameter
MSComm1.Output = Chr$(CStr(240)) Send CR

I need to convert the code using VB2010, but Chr$ is not available, and anything I tried will not send the actual ascii code character......

View 10 Replies

.net - Send File FTP Over SSL With Custom Port Number

Sep 21, 2011

I want to upload and download a file to FTP over ssl with custom port number or FTP with implicit SSL. I am using .net ftpwebrequest & ftpwebresponse method for this. here is my code:

[Code]...

View 1 Replies

C# - Send And Receive A Tcp Message To A Specific IP/Port In .NET?

May 18, 2011

I'm trying to send a message to a specific IP/Port and receive a reply in an ASP.net website, i tried the method describd at the following link but it didn't work for me as you can see SocketException An attempt was made to access a socket in a way forbidden by its access permissions

View 1 Replies

Send A Control String From .NET To A Serial Port?

Aug 5, 2010

I am trying to send a control string from VB.NET to a serial port. I am using a pololu trex jr. on the receiving end of the serial port. I have attached a copy of my current code which compiles without errors, but fails to send data. I can tell that it is not sending data because I have a light on the control board connected to the port and it normally blinks when data is received. The program that came with the board drives it perfectly but does not serve the purpose I need it to. I am open to any suggestions as I eventually plan to write a class to contain the control routines.

View 12 Replies

Send And Receive Data From A Serial Port?

Jul 8, 2011

I have created a program to send and receive data from a serial port, some of the data needs to be stored in certain strings for a export to excel. However the data takes while to to send be sent back. So in order to get the right information in the right strings I have to put pauses in my code. I have added a timer to my form:

On my timer's tick event I have the following code:

Public Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
iTick = iTick + 1
End Sub

View 3 Replies

Send AT Commands To Router Network Port?

Aug 9, 2010

How can i send AT commands to my router network port?

View 6 Replies

Send Data : String Through Serial Port?

Mar 11, 2010

i knew Serial ports are a type of computer interface that complies with the RS-232 standard. They are 9-pin connectors that relay information, incoming or outgoing, one byte at a time. Each byte is broken up into a series of eight bits, hence the term serial port.And I want to write a program chatting through Serial Port.

View 3 Replies

Send String Through Serial Port To Arudino?

Apr 18, 2012

im very new to visual basic. as in i just started 2 days ago. Currently i have a little program written up that has a couple of radio buttons and then a submit button. when you select a radio button and click the submit button, a little message box with pop up and say "you selected such and such"

Well now im trying to make something that will send a string to arduino through the usb cable. Basically it will use the same set up as stated above but instead of a pop up message it will just send the string through the port. for example Radiobutton1 - when selected and submit button pressed will send "1" (no quotes) through the serial port Radiobutton2 - when select and submitted will send "1" and then maybe "3"

and so on and so. Some radio buttons will only send 1 string through them and some may send multiple. Now, i dont need help with arduino, i have that already set up to wait for the strings to come through the com port. just need to figure out how to do it in VB.

View 1 Replies

VB 2010 Send Hex Values Across The Serial Port

Jul 18, 2011

I want to send hex values across the serial port. I know, I know, your thinking not this again. But what I need to do does not seem to be addressed, or I am some how missing it when I search around.

[Code]...

View 2 Replies

VS 2008 Serial Port Can't Get To Send Strings

Dec 8, 2010

I've set up two computers, with a null modem serial cable. When trying the connection in two Realterm windows it works ok to send strings.I'm trying to write a simple project that sends the timestring over the same port.One button sends the timestring. I've created one other sub "AppendLabel" that just updates a label.text so I can see what's happening.[code]

View 8 Replies

Keyboard Making It Send An ENTER?

May 8, 2009

Ok i have used

My.Computer.Keyboard.SendKeys(TextBox1.Text)to send the letters i want my program to send but i need it to press enter after i think it will use something like this

My.Computer.Keyboard.SendKeys(TextBox1.Text & Send.Enter) or something.

View 2 Replies

Communications :: Send 8-10 Character Strings From The PC Serial Port?

Dec 1, 2011

I have quite a bit of VB6 experience but now am trying to create my first VB.Net project. The project is very simple - it just needs to send 8-10 character strings from the PC serial port. The problem I'm seeing is that VB.Net is always sending out a 0x0A character after each 'WriteLine' call. Using VB6 it was necessary to manually send out any End Of Line characters. My application requires that no extra EOL characters be sent after the string.

View 2 Replies

Send Byte,signal,string Or Puls Usb Port?

Feb 14, 2010

How can i send byte/signal/puls usb port?i want to this

View 3 Replies

Send Data On Serial Port And Detecte It In Same Program?

Feb 24, 2011

I am supposed to make a software for data logging via serial port but the hardware is expected to be delayed and iam required to continue with the programming of the software. What i need is that by some mechanism i want to send data on serial port (COM port) and after delay of some mili seconds i want to detect that data. I actually want to do this because i want to create environment like my software i intercepting COM port and on receiving data it captures the data values on port and record them to database. I have done most the work, the only thing left which i want is as above how i will send data on COM port (this was to actually to be done by hardware) and detect it in my program (same program from which data was sent). Please guide from where should i start.

View 3 Replies

Send XML Commands In Vb To Get Data Received Over A Serial Port

May 5, 2011

How do I send XML commands in vb to get data received over a serial Port?

I know the commands I'm just not sure how to send them.

View 2 Replies

Use A Textbox To Send Binary Data To Serial Port

Sep 1, 2009

I am currently sending data via a serial port to an AVR microcontroller. I've tried searching the forums here first but haven't found any posts that specifically deal with what I'm trying to do. Here's some additional information that might help before proceeding:

Sendbox = textbox
ReceiveBox = listbox
ReceiveChk = checkbox

I currently have it setup so I enter hex data in Sendbox, click the button, it sends the data to the AVR micro via the serial port, which gets repeated back through the serial port and receives the hex data in the ReceiveBox. I want to be able to setup something similar so I am able to input data into a textbox as binary and have it sent to the AVR that way.

I realize it will send the same data whether I enter it in hex or binary form. I just want the option of being able to send it in either form.

Below is my code.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SendButton.Click
SerialPort1.Open()

[Code]....

View 1 Replies

Serial Port Communications - AT Commands - Send And Receive Data

Apr 12, 2009

I have a USB modem that can detect caller ID and can detect dialled digits when special AT commands activated, How to send and receive data. The sent data will be the AT command such as AT+VCID-1 to activate the caller ID, the received data will be caller ID information and the digits dialed. I'm new to prgramming and using Visual Basic 2008 Express.

View 8 Replies

Send Data / Signal To H-Bridge Then To DC Motor Using Parallel Port In Program?

Jan 21, 2012

How will I send data or signal to H-Bridge then to DC Motor using parallel port in vb.net?

View 2 Replies







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