Thaiio.com

Thaiio is the best of PC interfacing Electronic Hardware and Devices resource.

Today , 2007
April 29th, 2008

Programming in Visual Basic to control through network part 5

From sending file in the section 1, about how to code programming. In this section, will be development program by using original chat program of VB Winsock Chat in the section 3 to add 3 controls, 2 Text Box and one Command Button because in the section of listening from Server and Connect from Client have codes and I had already explained , if you have any question, click here.

Creating form and programming

1. Begin open file Visual Basic Project first, after that choose chat program in the section 3 click download Source Code Program Chat. When finishing, open Form of program that will appear like the picture. It is addition for get Path File and button Send File, or adding code 2 procedures. In the section about coding program in the section 1, so I won’t explain again. You just copy Code according to procedure that is set. I write to explain like this.

 

Source Code and Description

In this part, you must copy to paste in program that has 3 parts,
1. SendData function
2. Send button (Command1_Click)
3.Procedure Winsock_Arrival()

How to use program for sending file.

1. After doing file as EXE, then open program to 2 programs, click connect button in order to set value of winsock. The Client side must be clicked to choose status of the computer as client, for Server, choose Server in the part of Client, must fill value Server ในส่วนของ Client and Port number. The computer that send and get must Sharing directrory first in experiment. For this program in another Windows, choose status of computer as Server, then fill port number that match with client side. After that, push Listen   button. For client side, push Connect button. If there aren’t any problems, will have message that successful connection.

 

Click downloads source code of all programs here

The learning outcome of this article
1.    To know how to program by using Visual Basic to connect through TCP/IP by Winsock.
2.    To apply basic about managing data file to use sending file via TCP/IP.
3.    To understand principle of working of Event and Function of Winsock.

April 29th, 2008

Programming in Visual Basic to control through network part 4

We have got to know the contents about sending message through TCP/IP. So, we may understand how to use Winsock to connect via TCP/IP. So now, we program in order to send via data, so, we have to firstly make understanding by dividing data file into 2 types in the following.
•    Sequential File
•    Random File
In this content, we mention how to manage file as Random File that has more advantage than Sequential File. It can be quickly opened by not arranging data as Sequential File and enter to Record.  Read the rest of this entry »

|
Interior Accessories Shop free xxx cheapest viagra in uk cheap viagra viagra rise levitra alternative levitra vs viagra soft tabs cheapest online cialis 24 hour delivery canadian rx drugs bigtits i made free pornstars drunken asian girls BIGNATURALS big fat booty lessons in blow jobs porn fuck free porn videos free anal old mom video milfs amateur blowjob cheapest online diazepam 24 hour delivery cheap levitra rx pills buy lorazepam cheap cialis buy cheapest generic valium purchase new report female zyban order oxazepam prescription cheapest generic xanax viagra order herbal klipal for woman levitra buy drugs online buy herbal tramadol cialis soft tabs levitra cialis best herbal viagra soft tabs uk cialis buy viagra on line viagra levitra women buy cialis online without prescription natural levitra substitutes cheapest generic viagra cyber pharmacy propecia viagra soft tabs studies women
Close
E-mail It