สวัสดีทุกคนที่เข้ามาอ่านนะครับ พอดีปีนี้เป็นปีจบผมเลยจะทำโปรเจ็คเกี่ยวกับโปรแกรมแต่ปัญหามันอยู่ต้องที่ ไม่สามารถ กดเปิดไฟล์รูปมได้ ก่อนหน้านี้สามารถกดเปิดไฟล์รูปได้ รันโปรแกรมได้ปกติ แต่พอวันต่อมาไม่รู้ทำไมก็ไม่ได้ ไม่รู้ว่าไปกดโดนอะไรหรือป่าว วอนผู้ อาวุโส หรือผู้รู้ช่วยลูกช้างด้วย ขอบคุณครับ
นี้คือโคดไฟล์รูปภาพครับ
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
Try
OpenFileDialog1.Filter = ("ไฟล์รูปภาพ JPEG,GIF,PNG,BMP|*.jpg;*.gif;*.png;*.bmp")
If OpenFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then
PictureBox1.Image = Image.FromFile(OpenFileDialog1.FileName)
End If
Catch ex As Exception
MessageBox.Show("อาจเกิดปัญหาไม่คลาดคิด กรุณาติดต่อ ผู้พัฒนา 095-886-3945", "ERROR!!!!", MessageBoxButtons.OK, MessageBoxIcon.Error)
End Try
End Sub
---------------------------------------------------------------------------------------------------------------------------------------------------
โคด ERROR ครับ มันจะขึ้นหน้าต่างมาก่อนนะครับ
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
ใครมีวีธีแก้ บอกได้นะครัย