
Runtime Error 372 คืออะไร?
Runtime Error 372 เกิดจากคอมพิวเตอร์โหลดคอนโทรล imagelist จากชุดซอฟต์แวร์ไม่ได้ ไฟล์สำคัญของ Windows ทำงานไม่ถูกต้อง ต้องแก้ไขทันที
Run-time error 372:
Failed to load control 'ImageList' from mscomctl.ocx. Your version of mscomctl.ocx may be outdated.
Make sure you are using the version of the control that was provided with your application.
สาเหตุของ Runtime Error 372
ปัญหานี้เกิดหากคอนโทรล ImageList รวมไอคอนที่มีสีมากกว่าที่ Color depth ของ Windows Desktop รองรับได้
วิธีแก้ไข Runtime Error 372
ขั้นตอนที่ 1 - ตั้งค่า Color Depth ของ Windows
สาเหตุหลักคือการตั้งค่า Color Depth ของคอมพิวเตอร์
- แก้ไขไอคอนให้ใช้ Color depth ต่ำกว่า (ใช้ 8-bit color แทน 16-bit, 24-bit, หรือ 32-bit) แล้วคอมไพล์แอปพลิเคชัน Visual Basic ใหม่ด้วย Color depth ต่ำกว่า
- เพิ่ม Color depth บนคอมพิวเตอร์ที่รันแอปพลิเคชัน:
- บน Windows Desktop คลิกขวา Properties
- คลิกแท็บ Settings
- ภายใต้ Color Quality เลือกจำนวนสีแสดงผลที่สูงกว่า
- คลิก Apply แล้ว OK
ขั้นตอนที่ 2 - ทำความสะอาด Registry
Registry เป็นสาเหตุหลักของ Error 372 เราแนะนำ RegAce System Suite เพื่อสแกนและแก้ไขปัญหา