9/21/2011
BCS2413SAD LAB (interface design)
Berikut adalah cara memaparkan gambar(dalam picturebox) dari senarai (listbox). Menggunakan Visual Basic.NET Windows Application.
Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged
If ListBox1.SelectedIndex = 0 Then
PictureBox1.Load("c:\image1.jpg")
End If
If ListBox1.SelectedIndex = 1 Then
PictureBox1.Load("c:\image2.jpg")
End If
If ListBox1.SelectedIndex = 2 Then
PictureBox1.Load("c:\image3.jpg")
End If
'note: 3 image (di beri nama image1.jpg, image2.jpg dan image3.jpg ) di simpan dalam root c:
Subscribe to:
Post Comments (Atom)
Cara download Installer windows 10 dalam format ISO
1. Jika anda bercadang untuk download windows 10 melalui website rasmi windows - pilihan untuk download dalam format ISO tidak di berikan. ...
-
ANSWERS TO CHAPTER EXERCISES (CHAPTER 8) Review Questions 1. List and describe various types of output, including technolog...
-
Based on real life scenario on any local company/ organization which you are very familiar, define the problem that could be addressed thr...
-
A. Response to the following statements by circling either T (TRUE) or F (FALSE). [10M] I. 1. Java enables users...
No comments:
Post a Comment