วันพฤหัสบดีที่ 4 กรกฎาคม พ.ศ. 2556

Programming with Visual Basic 6.0

Programming  with Visual Basic 6.0

What is Visual Basic?
Visual Basic is a tool that allows us to develop Windows (Graphic User Interface - GUI) applications.  The applications have a familiar appearance to the user.

Visual Basic is event-driven, meaning code remains idle until it is called upon to respond to some event (e.g. mouse clicking, button pressing, menu selection, ...).  Nothing happens until an event is detected.  Once an event is detected, the code corresponding to that event (event procedure) is executed.  

Stop Watch Application

1 .At the "Start-up Menu" of our Windows Desktop, let's find where "Microsoft Visual Studio 6.0" is, and click on it. Then we can see some shortcuts to the applications of the software suite, and "Microsoft Visual Basic6.0" is one of them and it is also our "target software" right now, let's select it.

2. We now at the main screen of Visual Basic 6.0 with its "New Project" window. Let's click on the "New" tab and select "Standard EXE" icon.

3. Before we go on, let's consider the components of the toolbar of Visual Basic 6.0.  Properties window, Run and Save project are what we have to focus on now.

4 .Controls are the genius tools that can be attached by any codes that can control any events such as clicking mouse or pressing key. Now the "Command Button" and the "Label" are the controls that we are going to use.

5. Visual Basic programming begins with a form which has been named "Form1" by default. Visual Basic form simulates itself as platform which can receive many kinds of objects that created by the controls. Any object has its properties that has been shown in the properties window.

6 .Here we go on creating a design job like the following picture. 
    -  Using the "Command Button" control to draw the three sequence command buttons, Command1, Command2 and Command3.
   -  Using the "Label" control to draw the six sequence labels, Label1,
Label2, Label3, Label4, Label5 and Label6

7.Click on "Form1", we can see its properties, rename it with "frmStopWatch" (frm is a pefix which comes from "form"). And change its caption to "Stop Watch Application".

8. Click on "Command1", yes we are about to specify the properties of this object. Rename it with "cmdStart" (cmd is a prefix which comes from "command button") and also refill its caption with "&Start Timing" (& is a prefix of the key letter that a user can press on this key together with the "alt" key instead of click on this command button).

9 .Do it the same way as the previous step.


10 .Do it the same way as the previous step.

11 .Change only the captions of Label1, Label2 and Label3 according to the following picture.

12. Change the properties of the other last three labels, "Label4", "Label5" and "Label6" by renaming them to "lblStart", "lblEnd" and "lblElapsed" and erase their captions until they are blank.

13. Now we have just already designed and configured all of related objects, the next step of us is coding our program. Let's click on the menu-bar at the "View" command tab, then select the "Code" sub-command, the view-code window will show up. Yes, we are going to enter our source codes of our application here.

14. The first set of source codes is about the declarations. There will be the "(General)" at the left-top of the view-code window and the "(Declarations)" at the right-top. We have to type four lines of our following source codes.

15. This step is about attaching our source code to a control object. The "cmdStart" is a command button we are going to attach the source code. Let's double click on this command button, yes, this action could bring us to a module or subprogram that could be driven by an event, _click ( ), that means this subprogram could work when this command button was clicked on.
What is about this source code?  It begins with assigning the recent time value (Now) to the variable "StartTime".  Then the method "Caption" stipulates that the label "lblStart" can show up data from the variable "startTime" with the "hh:mm:ss:" format.

16 .This step is similar to the previous but it turns to the "cmdEnd" command button. But it creates the expression which assigns the variable "ElapsedTime" with the difference of the variable "EndTine" and the variable "StartTine".

17 .This is the end of application with the only amazing word "End"

18 .Congratulation to our tough project!. This is the output of our input and process. Yes, it is the "Stop Watch Application" of us.  

19 .We have to make our project to an independent application.  Click on the "File" command at the menubar then select the "Make..to..EXE" subcommand.   


By   Tanunya  Sophon  m.2/8 no.35
















วันเสาร์ที่ 22 มิถุนายน พ.ศ. 2556

Folder and Printer Sharing

1. FOLDER SHARING


Be sure we have to specify what folder that we want to share? 



                                                            "BOOK" is the folder of us to be shared.

Make a right clicking with the folder, the dialogue box appears. Select the "Sharing" tab and the "Advanced Sharing" button


                                        Now the folder has never been shared yet (Not Shared)

Properties window of the folder appears and we should select to share it with others. Now we can see the maximum number of users to simultaneously enter to the folder is 20. Then we can click on the "Permission" button.

                               Tick the check-box, and we can change the share name or ignore it.

After clicking on the permission button, the Permissions window shows up, you can add any user e.g. "student" and you can change the permission type of the user.

                                                We can add user/ specify his permission level.

Finally click on the "Apply" button, the folder now has been shared.





2. PRINTER SHARING
Click the "Start button" of Windows7 desktop, the pop-up menu appears, then select "Devices and Printers", the target printer of us will be appeared.


Make a right click on the printer icon, the select menu will show up, then select "Printers properties" option.  Then we can operate sharing easily.

Click on the "Sharing tab", and we can rename the sharing printer.



BY: Tanunya Sophon 






Home Network

What/How About Our Home Network is?

 I have known of my computer classes that the Internet connection at their homes is of TOT provider. Yes, my internet service provider (ISP) is TOT too. What/how is my home network?  The modem-router is the main device of the network because it plays many roles as of the followings : -
   1) to simulate itself like a server computer
   2) to act as a hub/switch of the wired connection
   3) to be an access point sending packets of the wireless connection
   4) to play as an ADSL modem connecting Internet

   5) to be a router managing the how-to connect to other devices

Be sure, most of our home network is hybrid. One is wired while another is  wireless. Although a home network is not complex, but its system is so smart and its Internet connection is so clever with the ADSL technology. The superstar is a "modem-router", the genius device.

                                                  The composition of any home network

TP :  Unshielded Twisted Pair cables are so common in any computer rooms  of our school. The UTP cable is caped with a connector which is called RJ-45. The RJ-45 connector will be inserted into the LAN port of any Ethernet card/router/switch/hub. (The RJ-11 connector of the phone line is smaller than RJ-45).


What is ADSL? (www.wikipedia.org) : It is "Asymmetric Digital Subscriber Line" technology. This is a data communications technology that enables faster data transmission over copper telephone lines than a conventional modem can provide. (Modem is a device that manages the joint communication between the phone and the computer.)

My Home 

"IPCONFIG" command to see what/how my home PC/modem-router IPaddress configuration by typing the 

... 192.168.1.1  is the IPaddress (IP) of my modem-router
... 192.168.1.106  is the IPaddress (IP) of my PC, configured by the modem-rounter 

ฺBy: Tanunya Sophon m.2/8 No.35



Computer Network

What is Computer Network? Why?
    If any computer is not connected to others it is called "a stand-alone machine".  Today if anyone uses any stand-alone machine , he must be considered a stranger because the world today is of computer networks. A network machine can send/receive packets (bits of data per second) to/from any other machines e.g. Internet.  Our computers/tablet PCs/smart phones can never be alone anymore. Yes, they have been connected to their networks both local (e.g. the networks in our school) and global (e.g. Internet). We can share our resources such as  files, printers etc. to each other through our local area network (LAN) or we can exchange our data through the wide area network (WAN) like Internet.








                                                     Computer Network classified by Area Width





         Types of Network Topology



                                                               Star/Extended Star Topology




               The Server-Client Network What/How






What/How of the Network in Computer Classroom?

Because the operating software (OS) of all computers in classroom is Windows7, so any who use them, those machines, should better understand how they work, especially how to use the network of them.

Our computers in computer classroom are connected together with the UTP (unshielded twisted pair) cables. Why? Because the unshielded cables are lower cost than the shielded cables which have been used in the signal noisy areas e.g.  airports, factories, etc. The style of their connection is "Star Topology" which each machine has its own cable which connects directly to the hub/switch.  A hub/switch is the center point of cables (both devices are similar to each other but a switch is more clever than a hub) . Well our network is called Local Area Network (LAN). Any LAN must has its workgroup name which required by the Operating System (OS) of each computer, Windows7 .



If we consider only the "computer-workgroup LAN", it is a peer-to-peer network that every machine is independent from each other but shares its files/folders/printers to its peers. On the other hand, when this workgroup connects to the server computer of "the School Media Center", it must be a client-server network.

What is about the client-server network? It means that the server computer of "the Media Center" is the manager/boss of other computers which are only the clients. The server computer has been installed with the operating-software-for-server such as Windows2003server/Windows2008server , Linux or  Unix, which can manage the client computers of the network. The clients have to obey the server because the latter has the power to control/ban the former. Yes, the clients can never control/manage the server.


Every machine in the network is required to have its unique "hostname" and "IP address".  Only the server computer has the "static IP-address" while the IP addresses of the client computers are "dynamic" specified/controlled by the sever. If the user of any client computer specify the static IP address himself, the server computer can never share the Internet connection because the "IP address conflict"problem could be occurred easily. Then the alien client will be kicked off /faded away from the network simultaneously. Yes, the server computer is the "Internet gateway" of the network.

OK., after selecting the "Local Area Network" option, the "Local Area Network Connection Status" window appears. You can see its speed of packets transmission (100 Mbps) , bytes of the sent/received packets.




Then, when you click on the "Properties" button, another window shows. To find and select the "Internet Protocol Version) option, you can see its IPaddress has been obtained automatically by the gateway/server computer (of the School Media Center).






By : Tanunya    Sophon   m.2/8 no.35

วันจันทร์ที่ 17 มิถุนายน พ.ศ. 2556

How to create a blog

Instruction media

1. After you had signed in Google Mail Service and then you had your own Gmail, well, you are now the one who can ask for your blog creation with www.blogger.com using your Gmail.


2. After entering your Gmail with its password, the "Welcome Screen" of Blogger appears and confirms that you have just passed its regulation. Now you can either add your profile details or skip to the next step.


3. See "New Blog" and click, wow, to create your blog any way 


4. Yeah!, you have to fill some fields related to your new blog e.g.   title, address and  template. But you can pass this task easily. Or you can skip it. (Because you can change these options any time)

===> Correct, then when it was confirmed that the blocks.
5. You can select "Settings Option" to change the style/template of your blog anyway and anytime.

6. Well, you can start your post now.  See the sample below.
7.  When you select the option "View Blog", your blog with your post will appears like the following.


Prepared by Name Tanunya  Sophon m.2/8 no.35


 school kanchanpisekwittayalai  suphanburi.

วันอาทิตย์ที่ 16 มิถุนายน พ.ศ. 2556

My School


My school



My school.name kanchanpisekwittayalai  suphanburi.

 color school  colors Blue gold.


Unique identity.


We chanted slogans every day.

                                                                 School building




My school has a Student  m.1-m.6

Building Our main me 3  Building.

wide school


school Beauty





Prepared by Name Tanunya  Sophon m.2/8 no.35

 school kanchanpisekwittayalai  suphanburi.