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


ADVERTISEMENT

Send A Message To Another Computer Screen In Network Using Visual Studio 2008?

Jun 11, 2011

how to send a message to another computer in my companys network using visual studio 2008...I would like to be able to list all the computer names on the network and select certain ones and send them a message that would pop up on their screen

View 3 Replies

Send Message To Another Computer Using LAN Or Network?

Oct 20, 2010

to do a program that can send a message in other computerthru LaN or Computer NetworkExample im in Server and i will send it is \PC-01here is the picture i design it but i don't know the code

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

Cannot Connect To Network To Send Data Through Message Board

Nov 2, 2009

I have this codes here whereby my objective is to develop a writing network applications of programming, a means of sending data to a message board(messaging system). My problem is I couldn't connect it to the server's IP address and port num to send a data through a message board. However I could only display at Form2 txtReceive.
Text = HexConvert.Data_Asc_Hex(sData),

Whereby this code could only convert whatever data(txtSend) that is being typed in, could then convert hex decimal into a textbox(txtReceive). The final result that I would want to achieve is to be able to display the at the textbox(txtReceive) is the <"message protocol"> & <"hex message that is being typed"> & <"parity bit"> into the txtReceive box.

Form form 1, my codes are....
Imports System.Net.Sockets
Imports System.IO
Public Class Form1
Const portNo As Integer = 1234
Dim client As TcpClient
[Code] .....

View 2 Replies

2 Clients Connected Via Server / Network Code Causes Slowdown Of Picturebox Movement

Aug 10, 2011

I have 2 clients connected via a server program.When 1 client hits an arrow key, a picturebox moves on client1 and on client2.Before adding this network functionality, the picturebox on client1 moved fast with each click.Now, there is a delay of like 2-3 seconds.I know the code isn't optimal, but i'm not a networking wizard.What i'm doing is when pressing a key on client 1, it passes a text to a textbox in client 2 which then has the picturebox move in client 2 depending on the text.The slowdown occurs on client 1, which is odd because the picturebox isn't directly connected to the network code.[code]

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

How To Send Network Msg In .net

Jul 14, 2011

I have an application where i have to schedule some msg to my network users and as per the sheduler msg should be popup on their machine on local network.

View 3 Replies

Transfer Files From One Computer In One Network To Another Computer With A Totally Different Network

Jun 22, 2011

I have a problem I want to make a server and client where the server is password protected and will make the client display files/folders in a designated folder which will be in the server's current directory and the client will ask what IP and password to connect to and if the password is correct is allows the client to access the files/folders in that folder in C.D. of the server and the client can download any file within the folder by clicking a button, yet don't even know where to start.

View 7 Replies

Broadcast A Message To Applications Through The Network?

Apr 29, 2009

I have a program running in many machines in a network. The program reads a Sql database, and there's a table showing one table in a DataGridView in each computer from the same DB stored on the server. The same table in all the computers. What I want to do is, every time one computer changes something in the table, to update every table in all the computers.

Every program writes an entry in the database to know that they are connected to the DB. So any program can know who the other computers are.

How can all the computers know that there was a change in the table? (the idea is the get the changes quickly)

View 2 Replies

How To Send Commands Over A Network

May 26, 2010

I have never programmed a network program before and would like to learn at my own pace. Also I am not asking anyone to write this complete program for me, just bits of code to help me write a complete program. (though if you do code it all I won't complain.) I already tried using internet tutorials but none of them seem to work.I am trying to program a simple form with 4 buttons, and 2 users.The first button is a connectivity button. "Green" for connected, "Red" for not.The second button is a "Connect" Button which will connect to another computer with this program installed/active. (I want it as simple as possible)and the next 2 buttons switch between "1" and "0" depending on user input(Default "0"). the first button is the local user button and the second is the remote user button. When the local user clicks the local button then what he/she changes it to will be displayed at the remote site. The same thing will happen with the remote user.

I know how to place all the buttons where they belong, and to change the local text, but I have no Idea how to connect to a remote program or to pass messages between the two users. Can anyone suggest some Simple code to do this. (something that I will be able to learn and use to make more complex code later on.)

View 2 Replies

Send An Image Over The Network?

May 1, 2009

I was wondering if there is an easy and fast way to send an image (or files in general) which is small, as in around 30KB, over the network using VB .NET. the most i was able to do at one point is to read the image (or file) as text, then send each character over the network, but it took way too much time for the file to get sent, and then translated from text to file once again on the other side. I don't know much about network programming, because i just started learning about the subject.

View 3 Replies

Send Files Across Network?

Jul 13, 2010

I have a xml file I want to send to a ubuntu server. I have created the xml file using a data table.

Before I was using the following to save on the current machine in the application folder. However, the customer has changed and now wants to store it on a remote network ubuntu server on the network.

What is the best way to send files across the network? Is it possible to send files from a windows machine to a ubuntu server machine?

View 3 Replies

Send Text To Another PC In The Network?

Nov 22, 2009

i want to send Text over network to another pc. The text should be seen in a MessageBox.What technique could i use? Is UDPClient the right thing?

View 1 Replies

Forms :: Send A File Over The Network?

Sep 4, 2010

I ahve tried using the

My.Computer.Network.UploadFile("C:UsersPhillipDesktop est.txt", "http://10.0.0.2/c:/text.txt", "my username, "mypassword")
but it does not work...whats the proper format for entering a location to a computer over the network?Also... whats a way to send a file to a computer over the internet such as my friends computer... The reason I am doing this is because I plan to make some programs that run based on text files and a basic example of this is a chat program... but I do plan for other things as well...

EDIT:Used this

My.Computer.Network.UploadFile("C:UsersPhillipDesktop est.txt", "\PHILIPADAMS-PCUSERSPhilip Adams ext.txt", "myusername", "mypass")

and it worked... now how can I send over the internet... Also is there another way i can send over the network like using the IP instead of computer name?Also how do I send it to other computers?

View 5 Replies

How To Send File Between PC's On Local Network By Using PC Name

Jan 24, 2012

Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click

Dim FileToCopy As String
Dim NewCopy As String
FileToCopy = "C:Users????DesktopfileName"
NewCopy = "C:Users???Desktop
ewfileName"

[Code]...

View 2 Replies

How To Send Variable Arrays Via Network

Mar 7, 2009

I am really new to .net, I've got the basics to a game down, I need to be able to send variable arrays between programs, I am aiming for local network first, then I'll tackle internet. Does .net have any simple way of doing this? Was difficult in vb 6. It needs to be fast so both machines get the same view of the game.

View 5 Replies

Send A Character To A Network Printer?

Oct 14, 2010

I need to create an exe in VS2010 with VB that does the same thing as a simple command line. The reason is related to debugging. I can type ECHO ~ > \WIN7MMF25$ in a command window on a W2K8R2E server and it will send the ~ character to the shared "printer" on the Win7 PC. Actually, the device is a cash drawer connected to LPT1 that pops open when it sees a ~ character.

Anyway, I created a CMD file with that command, saved it, fired it, and the cash drawer on the Win7 PC opens. However, when I try to call that command file from our ERP application, it doesn't work (it does work if the remote PC is XP, though - just not if it is Win7 or Vista).

Anyway, I was hoping if I created a simple EXE and called THAT from the ERP software, perhaps whatever issue is bugging us will not bug us anymore.

View 5 Replies

Send An Object Over A Network Stream

Oct 18, 2010

So i'm still goofing around with this chat app thing. Current when a user sends a message it sends to all clients connected. The server stores all clients and their IPs in a hash table, so what i want to do is each time a client joins, the server will broadcast the updated hashtable to each client. I know i can make a mess and get the server to broadcast each row of the hash table as a string but i think this way would be cleaner, either that or send the client object instead of the whole hash table.

[Code]...

View 3 Replies

Send Voice From Headphone Through A Network?

Dec 30, 2010

I am new to VB.NET and I need to develope an application that will enable me capture voice(Probabily from headset) and send it to another listener over a network.

View 1 Replies

Handle Message Responses Over (async) Network Communication?

Jul 19, 2009

I'm writing an app that sends messages over a network to another PC that processes the message and sends back a reply (e.g. a boolean or some other data). My network communication subs (based on WCF) just give me the ability to send a message to the other PC and process any received messages.The issue is that any response received is processed by my designated network message event handler sub, but I have no way of feeding it back to the sub that called for the original message to be sent.

[Code]...

View 1 Replies

Network Stream - Send / Receive Text

Sep 17, 2010

I've solved part of the problem, but something I've just realised is the information just isn't getting through and EVERY example I find uses a Console type application and what about us people who don't wanna develop a Console application? I don't but nooooo they don't seem to understand that at MS and put one example which uses exactly that.

[Code]...

View 4 Replies

Send A XML Serialized Class Over A Network Stream?

Oct 13, 2009

I'm trying to send a XML serialized class over a network stream

the send is working

Dim IP As Net.IPAddress = System.Net.IPAddress.Parse(IPAddress)
Dim IPE As New Net.IPEndPoint(IP, 10003)
Dim TCPClient As New Net.Sockets.TcpClient

[Code]....

I always get an error {"Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host."} The XMLFile has the xml document in it most of the time and I can go on and everything works but 1 out of every 5 times it doesn't work at all and the XMLFile contains nothing ..

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

Share, Send And Receive Files Over Network?

Feb 3, 2008

I'm working on a network chat for my office I want to add a way for users to share files or be able to send and receive file.

View 7 Replies

Create A Program That Will Send Data Across Network To Another Computer?

Mar 23, 2011

I want to create a program that will send data across my network to another computer. The data will be taken and used as sort of a command for the computer to load a webpage, or whatever I decide to do with it. I was familiar with the winsock control in Vb6.

View 2 Replies

Send A Personalized Form Created In .NET To Another Network Computer?

Aug 9, 2010

I have created multiple forms in VB.NET that need to be sent out in emergency situations. For example, the Fire form will instruct employees that they need to evacuate the building, the Tornado form will instruct employees that they need to go to the basement, etc. I have the forms created where they will display over my own computer when I run the application. I have also figured out how to get the list of computers from Active Directory. Now I am stuck. How do I make the form display on another network computer? Does anyone know how to do this?

View 2 Replies

Taking A Screenshot As A System.Drawing.Bitmap And Send It Thorough A Network?

Nov 18, 2010

I'm taking a screenshot as a System.Drawing.Bitmap and trying to send it through a network as a byte array.If I take the original screenshot and simply save it to disk, it's about 200Kb.Instead I'm saving it to a memorystream so I can write that back to a Byte Array and it's coming out over 6Mb.

[code]...

View 2 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 : 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







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