VS 2008 Send A Simple Text File To A Client From The Server?
Feb 16, 2010
I am Really Interested in Learning How to Code in Vb With Client and Servers.What should I use Tcp/Ip,Winsock? any Good Tutorials or Examples. How do I send a Simple Text file to A Client from the Server?
View 1 Replies
ADVERTISEMENT
May 9, 2009
how to create a client/server... But I couldn't... I don't want anything fancy. Just want the client to send the server 4 numbers, depending on the user's choice; after that, the server would turn off the pc, restart it, etc. It all depends on the number received. Is there a rather "simple" way to do it? If it's not to much trouble you could use Atheist's example. (Btw I don't understand the code and, yes, I've checked on [URL])
View 9 Replies
Jun 27, 2011
Hey guys, I am trying to send data from client to server (encrypted) and the string sent from the client is not the same as recieved from the server. I've been killing my brain for hours to get this to work but I cant manage. Im converting everything to Base64 string.
Client:
Public Sub SendMessage(ByVal msg As String)
Try
SyncLock myclient.GetStream
sw = New IO.StreamWriter(myclient.GetStream)
[code]....
View 4 Replies
Jan 21, 2009
Instead of the send message text box and message display text box, I have replaced it with RichTextBox for text formatting (bold/italics/underline/font/color). The problem I am facing is when I format the text and click on send, then the text displayed on the message display box (txtMessageHistory) is unformatted. [Code] Rest of the code of client is related to formatting of the rich text boxes that is not relevant to my problem. I just need to transfer the formatted text from client to server and then back to the client the same way and display the message with text formatting.
View 13 Replies
Apr 30, 2010
I want to send a image file from server to client?i am using this code for sending but i can't send the image....... and i also need some receiving code.
1.Public Sub SendImage(ByVal sndImg As String)
2.Try
3.Dim ns As System.Net.Sockets.NetworkStream
4.Dim client As System.Net.Sockets.TcpClient
[code].....
View 3 Replies
Dec 1, 2008
I have been reading through Atheists posts in regards to client-server and TCP client/server connection's. But how do i go about writing a program with 1 client and server where the client side creates a text file.Once the server sees there is a text file it connects and downloads it to itself or the client pushes the text file to the server.Once on the server i will read the text file and put its info into a sql db.
View 14 Replies
Jul 15, 2009
i have been working on a chat program Server side and client side i have most of the features i was asked to put in but then once i got most of the bugs out i noticed something the server admin could send whispers and alerts to single users but then when you try do do it on the client side it wont work so i looked through it all and found my issue the user list on the client is only a list of the names in server hash table so i was wondering how do i send the hashtable and all of its data E.G. user connection information to the client so that it can send commands to individual users like the server side can
vb
Public clients As New Hashtable()
' This subroutine checks to see if username already exists in the clients
' Hashtable. If it does, send a REFUSE message, otherwise confirm with a JOIN.
[code]....
i tried to send the hashtable over the same method used to send the user names to the client but it cannot convert the hashtable to a string so that wont work so my question is How do i send the hash table to the user from the server then display the username on the client ??
View 39 Replies
Oct 4, 2009
Im trying to make my client send the users Account and IP to the server. And the server puts them on a list box?
View 3 Replies
Feb 2, 2011
I am facing problem in asynchronous socket communication.
1)I wanted to perform connect(from client to server) operation on enter button and send the data whatever client want to send and disconnect from server. And again client should get connect to server whenever client wanted to send data. this is the mechanism.
i.e how to reuse the socket.
2)Again Server should able to send the data to client.
View 5 Replies
Sep 19, 2009
I have three computers in my house. I want to control them, like put to sleep, shutdown, display msgbox and so on. I want something very simple.
The server should have a window so i can write, something like: "Basement: shutdown". The client should not show. When the client receive its name and ": shutdown" it will then shutdown.
I have seen a bit on the 101 Samples for Visual Basic 2005 and "UsingSockets", but it don't have a server-form.
View 11 Replies
Nov 18, 2010
I'm trying to learn how to do some very simple client-server application programming.
Basically, I want to make a program (the server) that listens and waits, and when a commend is sent it will run a batch file or execute a line of code.
The client will just ask for the ip and send the command when a button is pushed.
Shouldn't be too hard right? So what are some good resources that you've used to get started?
View 1 Replies
Sep 27, 2010
I was wanting to make a simple client-server program.I saw some code for it and it was easy to understand but it was with winsock.
The program is:
Client: Clicks button.
Server: Recieves Text written in clients textbox.
Is there a reasonably easy way to do this?Maybe Net.Sockets or something similar?
View 3 Replies
Jul 4, 2009
I have got the server app an the Client app Both Working to what i can see But My issue is i was only asked 4 days ago if i could add a Private msg and Whisper Feature as well as admin controls I have Done what i could to it then realised i have no idea how to only send the data to the selected client.
View 14 Replies
Aug 20, 2010
I have programmed a chat application in VB but as soon as I send any data from a client the server will send it to all. It should send a reply only to a particular client. This is the function I have used.
[Code]...
View 1 Replies
Dec 30, 2009
How to to send a message between two pcs using Client/Server?
I am using Microsoft Visual Basic 2008 Express Edition
I want to make a very simple program, when pressing a button in computer A to send a message "Hello world" and received by a computer B.
View 2 Replies
Feb 19, 2012
What's the best way to do this without using FTP?
The client would need to be able to communicate with the server for several simple tasks, such as checking if the file on the client is different from the file on the server. Or issue a "create folder" command. And of course the file transfer itself.[code]...
View 1 Replies
Oct 1, 2009
Now i need to send separate packets from the server to the client.For the client I am using usual Tcp but for the server I am using Winsock Control. [code]...
View 5 Replies
Aug 10, 2010
I am trying to send an Arraylist over to my server to broadcast to all other clients but I am not sure after serializing it, how do I proceed to send across. [code]....
View 1 Replies
Jun 21, 2012
I have three client PCs and one local server (actually a pc- Using windows 7 Ultimate on it).
In the server pc I have XAMPP installed and I am running an application developed using PHP on it. There I have the following PHP variables[code]...
View 1 Replies
Sep 21, 2011
In our project we've decided to put an exam generator using vb.net and after generate you can send it to client computer/students. *server computer/teacher will the one who will use exam generator and send it to the client computer/student*student will recieve it and then send it back again to the server computer/teacher*teachers will going to generate an exam depends on the type of exam, so i think im going to make it a wizard type environment
View 14 Replies
Dec 23, 2009
I have this Quiz software that lets you create online multiple choice quizzes which are great for studying (I am in grad school and I'm trying to use everything I can to learn). So the Quiz software is great but it only lets you input questions by hand, one by one. I took a look at the .xml file that the quiz program spits out and came up with the idea to try and make a converter so that I can import many questions at once. I was hoping to try and solve this limitation by doing the following:
Take a .doc that say a tutor gives us with a bunch of practice questions, and then take that into Crimson Editor, and then format it so the question is on line 1, the multiple choice answers are on lines 3,4,5, and 6, (for the next question, the question would be on line 11, and the answers on lines 13, 14, 15, and 16, and so on) and then take that saved .txt file into my program, hit the generate button, and it will spit out the .xml file, and then import that into the quiz software to generate the online quiz.
Here is an attached screenshot of my program layout so far:
I figured out how to open a text file by watching simple youtube tutorials, but I don't know how to have it generate the stuff and have it show up in the bottom text box. I know how to do the coding to convert the txt to proper xml code but I don't know how to be able to save the contents of the bottom text window to an xml file.
View 1 Replies
Aug 18, 2009
Im using the code from [URL] as a starter, most of the code is the same. the chat system works fine but on the client a added a disconnect button "clientSocket.Close()" and as soon as i click that i get errors, on the client, this is the code...
Private Sub getMessage()
For infiniteCounter = 1 To 2
[CODE]...
And this line...
serverStream.Read(inStream, 0, buffSize)
gives me "Unable to read data from the transport connection: A blocking operation was interrupted by a call to WSACancelBlockingCall."
Now im talking the server, after the client clicks disconnect or closes by task manager, looses connection, etc the server crashes and gives me.
View 5 Replies
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
Aug 31, 2008
So ive looked everywhere but every example i find doesnt work on visual studio 05 and doesnt convert properly. I simply want to send info from one computer to another through direct connection. if anyone could point me in the right direction it would really be helpful. most stuff i find seems to be more complicated than what im looking for.
then just one other question. both computers will be going through a router. as long as i have the port im using forwarded on the hosts side, that shouldnt be a problem, right?
View 1 Replies
May 9, 2010
I am trying to read/write a simple text file in net 2008 but can't, as yet, get it to work. This is how I use to do it in VB6
Code:
MyStr = App.Path & "DataData.txt"
Open MtyStr For Input As #1
[code]....
View 11 Replies
Aug 18, 2011
I'm currently "trying" to make an app that gets a certain text from the client and sends it to a server and the server sorts it out every text that he gets from the client into a different label every time he gets a text from a client. For example :
Client1 sends certain text to Server and server puts it in label1.text
Client2 Sends different text to Server and server puts it in label2.text
Client3 sends different text than 1 and 2 to Server and server puts it in label3.text
and so on.
View 3 Replies
Aug 10, 2009
Multi-User Chat Program (Server & Client) with Main Server?
View 1 Replies
Apr 6, 2012
Case : I'm creating an application (desktop application) with VB.NET (actually windows form), and using SQL Server Express 2008 for its database.
[Code]...
View 1 Replies
May 23, 2011
Can I send an object from client-side javascript to server-side code via ASP.NET ?
View 5 Replies
Jul 4, 2010
Im trying to make a simple send key system on my project but it dosent send to the window in in why ?
SendKeys.Send(X)
My.Computer.Keyboard.SendKeys(X)
View 11 Replies