การโปรแกรม
by Phaitoon Yaemprasuan
1. (What is Visual Basic?)
2. (VB-programming : Exercise 1. Calendar/Time)
3. (VB-programming : Exercise 2. Pizza Order)
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.
by Phaitoon Yaemprasuan
Special Experienced Teacher
Information and Communication Technology Strand
2. (VB-programming : Exercise 1. Calendar/Time)
3. (VB-programming : Exercise 2. Pizza Order)
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.
วิชวลเบสิก เป็นเครื่องมือของเราในการสร้างแอ็ปปลิเคชัน (โปรแกรมประยุกต์) ที่ทำงานภายใต้ระบบปฏิบัติการ Windows ซึ่งแอ็ปปลิเคชันที่ได้จะมีรูปแบบการติดต่อกับผู้ใช้เป็นกราฟิก (GUI : Graphic User Interface)
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.
วิชวลเบสิก จะใช้ Event (เหตุการณ์) เป็นตัวขับเคลื่อนคำสั่ง (event-driven) หมายความว่า โค้ดของโปรแกรม จะยังไม่ทำอะไร (idle) จนกว่ามันจะถูกเรียกให้ตอบสนองต่อ event (เช่น การคลิกเมาส์ การกดปุ่ม การเลือกเมนู ฯลฯ) นั่นคือ จะไม่มีอะไรเกิดขึ้นจนกว่า event จะถูกตรวจพบ เมื่อนั้นแหละ code ของโปรแกรมก็จะตอบสนองต่อ event นั้นๆ ในลักษณะของโปรแกรมย่อยๆ หรือโมดุล (event procedure)
How to program with Visual Basic?
จะโปรแกรมด้วยวิชวลเบสิกอย่างไร
Steps in Developing Application ขั้นตอนการพัฒนาแอ็ปปลิเคชัน
There are three primary steps involved in building a Visual Basic application:
มีขั้นตอนหลักๆ 3 ขั้นตอน ที่เกี่ยวข้องกับการสร้างแอ็ปปลิเคชันด้วยวิชวลเบสิก
1. Draw the user interface ออกแบบส่วนติดต่อกับผู้ใช้
2. Assign propertiesto controls กำหนดคุณสมบัติให้กับคอนโทรล
3. Attach codeto controls ผูกติด code เข้ากับคอนโทรล












































