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


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

How To Send Arrays To A Function

Feb 27, 2012

How can i send arrays to a function?

example i have an array with 400 elements containing random numbers how can i send those to a function, say to add 1 to each them?

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

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

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

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

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

Variable Length Multidimensional Arrays?

Mar 2, 2009

Is it possible to have a 2 dimensional array of a type struct such that the size of the last dimension can vary by element of the first?eg:-structure mydatadim param1 as integerdim param2 as byteend structuredim main_array(100,10) as mydataThen at anytime change the size of the last dimension like...redim main_array(10, 5)redim main_array(15,7)leaving all other array entrys' last dimension unchanged and independent??VB2005 starter

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

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

Declare Fixed Length Variable Arrays In Structure?

May 25, 2012

How do I declare a fixed length variable array?[code]...

View 1 Replies

Declaring Fixed Length Variable Arrays In Structure?

May 25, 2012

How do I declare a fixed length variable arra

Structure MyInformation
<VBFixedString(4),System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices.UnmanagedType.ByValTStr,SizeConst:=4)> Public ReturnStatus As String

[code]....

View 2 Replies

Dynamic Variable Size Multidimensional Multitype Arrays?

Oct 11, 2010

i am in the process of learning myself VB.net (2010 dotnet 4 )And am a litte confused in whats the best way to program what can be called an array.i want to have an array that looks like this,

{{"aap", 1}, {"noot", 2}, {"mies", 3, "boom"}, {"vuur", 4, 7}}
now i tried to declare

[code].....

View 9 Replies

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

Multi-Dimensional Arrays - Code To Set Array Values And Store Them In A Variable

Aug 7, 2010

I have this code to set array values and store them in a variable,

Dim productName As String()
Dim productPrice As String()
Dim productCategory As String()

[CODE]...

How do you get the variable values to output like this?

<input type="text" value="Chang Beverages $19.00" id="Chang" /><br />
<input type="text" value="Ipoh Coffee Beverages $46.00" id="Ipoh Coffee" /><br />
<input type="text" value="Gula Malacca Condiments $19.45" id="Gula Malacca" /><br />

View 2 Replies

Forms :: Arrays And Radio Buttons - Determine Which Button Is Selected And Assign It To A Variable

May 15, 2009

I am having 3 radio buttons and a button The codes should be added to the button_click event, when ever the radio button is selected and the button is click then, The codes should determine which button is selected and assign it to a variable. Create a two parallel 1-dim arrays and populate it with the data below:

[Code]...

View 10 Replies

Send A Variable From Form1 To Form2?

Jul 28, 2009

I have looked around and I can not find what I am looking for. I would like to send a variable from Form1 to Form2. I have found out how to send I text box from form1 to form2

How can I send a var from From1 to From2?

View 2 Replies







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