1 / 1

ใบงานที่ 4 Shape คำสั่ง ให้นักเรียนเขียนโปรแกรมสุ่มรูปทรงให้หุ่นยนต์ ดังนี้

ใบงานที่ 4 Shape คำสั่ง ให้นักเรียนเขียนโปรแกรมสุ่มรูปทรงให้หุ่นยนต์ ดังนี้. ชื่อ - นามสกุล.....................เลขที่.......ห้อง ม. 3/…. ตัวอย่าง Shape7.Shape = ( Rnd * 5) Shape7.FillColor = QBColor ( Rnd * 15) Shape7.FillStyle = ( Rnd * 7)

Download Presentation

ใบงานที่ 4 Shape คำสั่ง ให้นักเรียนเขียนโปรแกรมสุ่มรูปทรงให้หุ่นยนต์ ดังนี้

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ใบงานที่ 4 Shape คำสั่ง ให้นักเรียนเขียนโปรแกรมสุ่มรูปทรงให้หุ่นยนต์ ดังนี้ ชื่อ-นามสกุล.....................เลขที่.......ห้อง ม. 3/… ตัวอย่าง Shape7.Shape = (Rnd * 5) Shape7.FillColor = QBColor(Rnd * 15) Shape7.FillStyle = (Rnd * 7) Shape7.BorderColor = QBColor(Rnd * 15) 1. ให้นักเรียนสร้างฟอร์ม ด้วยเครื่องมือ Command Button, และ Shape ดังรูป 2. คำสั่งในการจัดการกับ Shape คือ Shape1.Shape = (Rnd * 5) สุ่ม Shape 5 shape Shape1.FillColor = QBColor(Rnd * 15) สุ่มสี 15 สี Shape1.FillStyle = (Rnd * 7) สุ่ม รูปแบบการใส่สี 7 แบบ Shape1.BorderColor = QBColor(Rnd * 15) สุ่มสี 15 สี 3. ให้นักเรียน เขียนคำสั่ง สุ่ม Shape ตามปุ่มที่กำหนด โดยเปลี่ยน Shape1 เป็น Shape ของแต่ละส่วนของหุ่นยนต์ (คลิกที่ Shape แล้วดูที่ Properties) 4. ชื่อไฟล์ คือ ห้อง-เลขที่-ชื่อ-shape.exe 5. ส่งงานที่ teacher1/upload วิชา การเขียนโปรแกรมคอมพิวเตอร์ ง 30106 ครูผู้สอน มิสนงลักษณ์,มิสเพ็ญศรี

More Related